Skip to content

Commit 5e76a8c

Browse files
committed
Update readme
1 parent f45529c commit 5e76a8c

1 file changed

Lines changed: 11 additions & 10 deletions

File tree

README.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,22 @@ Instead, herein is proposed ULID:
3030
- No special characters (URL safe)
3131
- Monotonic sort order (correctly detects and handles the same millisecond)
3232

33-
## Installation
33+
## Use in the browser
34+
35+
```html
36+
<script src="https://unpkg.com/ulid@${VERSION_NUMBER}/dist/index.umd.js"></script>
37+
<script>
38+
ULID.ulid()
39+
</script>
40+
```
41+
42+
## Install with NPM
3443

3544
```
3645
npm install --save ulid
3746
```
3847

39-
## Import
48+
### Import
4049

4150
**TypeScript, ES6+, Babel, Webpack, Rollup, etc.. environments**
4251
```javascript
@@ -59,14 +68,6 @@ define(['ULID'] , function (ULID) {
5968
});
6069
```
6170

62-
**Browser**
63-
```html
64-
<script src="/path/to/ulid.js"></script>
65-
<script>
66-
ULID.ulid()
67-
</script>
68-
```
69-
7071
## Usage
7172

7273
To generate a ULID, simply run the function!

0 commit comments

Comments
 (0)