mirror of
https://github.com/rad1o/server.git
synced 2026-03-08 11:06:52 +01:00
35 lines
682 B
Markdown
Executable File
35 lines
682 B
Markdown
Executable File
# node-randomstring
|
|
|
|
[](https://travis-ci.org/klughammer/node-randomstring) [](https://github.com/klughammer/node-randomstring)
|
|
|
|
## Installation
|
|
|
|
To install randomstring, use [npm](http://github.com/npm/npm):
|
|
|
|
```
|
|
npm install randomstring
|
|
```
|
|
|
|
## Usage
|
|
|
|
```javascript
|
|
var randomstring = require("randomstring");
|
|
|
|
randomstring.generate();
|
|
// >> "XwPp9xazJ0ku5CZnlmgAx2Dld8SHkAeT"
|
|
|
|
randomstring.generate(7);
|
|
// >> "xqm5wXX"
|
|
```
|
|
|
|
## Tests
|
|
|
|
```
|
|
npm install
|
|
npm test
|
|
```
|
|
|
|
## LICENSE
|
|
|
|
node-randomstring is licensed under the MIT license.
|