Skip to content

Commit f9e6c41

Browse files
fix: remove hyphen from global export (#37)
1 parent cd37ae3 commit f9e6c41

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,27 @@
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
3738
npm 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)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
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"

0 commit comments

Comments
 (0)