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 3131
3232** typescript-monads** helps you write safer code by using abstractions over dubious program state and control flow.
3333
34- # Installation
34+ # Getting Started
3535
36+ ## Node or as a module
3637``` bash
3738npm install typescript-monads
3839```
3940
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+
4055# Usage
4156
4257* [ Maybe] ( #maybe )
Original file line number Diff line number Diff line change 2424 "dist" : " ts-node ./scripts/publish-prep.ts" ,
2525 "lint" : " tslint --project tsconfig.json --config tslint.json" ,
2626 "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"
2828 },
2929 "release" : {
3030 "pkgRoot" : " dist"
You can’t perform that action at this time.
0 commit comments