Skip to content

Commit

Permalink
More clear alphabet size limit
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Oct 21, 2017
1 parent 02e2780 commit 9796c48
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ var generate = require('nanoid/generate')
model.id = generate('1234567890abcdef', 10) //=> "4f90d13a42"
```

The alphabet must contain less than 256 symbols.
Only alphabets with less than 256 symbols are supported.


### Custom Random Bytes Generator

Expand Down Expand Up @@ -139,6 +140,7 @@ var url = require('nanoid/url')
format(random, url, 10) //=> "93ce_Ltuub"
```


## Other Programming Languages

* [Go](https://github.com/matoous/go-nanoid)
Expand Down

0 comments on commit 9796c48

Please sign in to comment.