1
0
mirror of https://github.com/S2-/securerandomstring.git synced 2025-08-03 02:40:04 +02:00

Improve Readme and code stylign

* Alphabetic options added into Readme.md
* Add empty space after 'if' in new option validation
This commit is contained in:
Sandro Ariel Gómez Araya
2017-11-24 10:21:32 -03:00
parent a1174300a8
commit 31839fea0b
2 changed files with 15 additions and 2 deletions

View File

@@ -34,7 +34,19 @@ srs({length: 256}, function(err, sr) {
console.log(sr);
});
```
### Options: alphabetic
Optionally, you can specify a 'alphabetic' option to get a alphabetical chars only.
```javascript
// sync
var result = srs({alphabetic: true});
// async
srs({alphabetic: true}, function(err, sr) {
console.log(sr);
});
```
## Error handling