yeet
This commit is contained in:
4
node_modules/unique-string/index.js
generated
vendored
Normal file
4
node_modules/unique-string/index.js
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
'use strict';
|
||||
const cryptoRandomString = require('crypto-random-string');
|
||||
|
||||
module.exports = () => cryptoRandomString(32);
|
21
node_modules/unique-string/license
generated
vendored
Normal file
21
node_modules/unique-string/license
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
44
node_modules/unique-string/package.json
generated
vendored
Normal file
44
node_modules/unique-string/package.json
generated
vendored
Normal file
@ -0,0 +1,44 @@
|
||||
{
|
||||
"name": "unique-string",
|
||||
"version": "1.0.0",
|
||||
"description": "Generate a unique random string",
|
||||
"license": "MIT",
|
||||
"repository": "sindresorhus/unique-string",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"url": "sindresorhus.com"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=4"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "xo && ava"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"keywords": [
|
||||
"unique",
|
||||
"string",
|
||||
"random",
|
||||
"uniq",
|
||||
"str",
|
||||
"rand",
|
||||
"text",
|
||||
"id",
|
||||
"identifier",
|
||||
"slug",
|
||||
"hex"
|
||||
],
|
||||
"dependencies": {
|
||||
"crypto-random-string": "^1.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"ava": "*",
|
||||
"xo": "*"
|
||||
},
|
||||
"xo": {
|
||||
"esnext": true
|
||||
}
|
||||
}
|
32
node_modules/unique-string/readme.md
generated
vendored
Normal file
32
node_modules/unique-string/readme.md
generated
vendored
Normal file
@ -0,0 +1,32 @@
|
||||
# unique-string [](https://travis-ci.org/sindresorhus/unique-string)
|
||||
|
||||
> Generate a unique random string
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install --save unique-string
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
const uniqueString = require('unique-string');
|
||||
|
||||
uniqueString();
|
||||
//=> 'b4de2a49c8ffa3fbee04446f045483b2'
|
||||
```
|
||||
|
||||
|
||||
## API
|
||||
|
||||
### uniqueString()
|
||||
|
||||
Returns a 32 character unique string. Matches the length of MD5, which is [unique enough](http://stackoverflow.com/a/2444336/64949) for non-crypto purposes.
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Sindre Sorhus](https://sindresorhus.com)
|
Reference in New Issue
Block a user