mirror of
https://github.com/S2-/securerandomstring.git
synced 2025-08-02 10:20:05 +02:00
make urlsafe the default
This commit is contained in:
@@ -7,6 +7,8 @@ function srs(options, cb) {
|
||||
} else {
|
||||
options = options || {};
|
||||
}
|
||||
options.urlsafe = typeof(options.urlsafe) === 'boolean' ? options.urlsafe : true;
|
||||
|
||||
var length = options['length'] || 32;
|
||||
|
||||
// async path
|
||||
|
Reference in New Issue
Block a user