File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 31
31
32
32
** typescript-monads** helps you write safer code by using abstractions over dubious program state and control flow.
33
33
34
- # Installation
34
+ # Getting Started
35
35
36
+ ## Node or as a module
36
37
``` bash
37
38
npm install typescript-monads
38
39
```
39
40
41
+ ## Browser
42
+ ``` html
43
+ <head >
44
+ <script src =" https://unpkg.com/typescript-monads" ></script >
45
+ <!-- or use a specific version to avoid a redirect -->
46
+ <script src =" https://unpkg.com/typescript-monads@3.5.3/index.js" ></script >
47
+ </head >
48
+ ```
49
+
50
+ ``` js
51
+ var someRemoteValue;
52
+ typescriptMonads .maybe (someRemoteValue).tapSome (console .log )
53
+ ```
54
+
40
55
# Usage
41
56
42
57
* [ Maybe] ( #maybe )
Original file line number Diff line number Diff line change 24
24
"dist" : " ts-node ./scripts/publish-prep.ts" ,
25
25
"lint" : " tslint --project tsconfig.json --config tslint.json" ,
26
26
"build" : " tsc -p tsconfig.build.json && npm run rollup && uglifyjs dist/index.js -o dist/index.min.js --source-map" ,
27
- "rollup" : " rollup dist/index.js -o dist/index.js --format umd --name \" typescript-monads \" -m"
27
+ "rollup" : " rollup dist/index.js -o dist/index.js --format umd --name \" typescriptMonads \" -m"
28
28
},
29
29
"release" : {
30
30
"pkgRoot" : " dist"
You can’t perform that action at this time.
0 commit comments