summaryrefslogtreecommitdiffstats
path: root/node_modules/crypto-random-string
diff options
context:
space:
mode:
authorGravatar Piotr Russ <mail@pruss.it> 2020-11-18 23:26:45 +0100
committerGravatar Piotr Russ <mail@pruss.it> 2020-11-18 23:26:45 +0100
commit81ddf9b700bc48a1f8e472209f080f9c1d9a9b09 (patch)
tree8b959d50c5a614cbf9fcb346ed556140374d4b6d /node_modules/crypto-random-string
parent1870f3fdf43707a15fda0f609a021f516f45eb63 (diff)
downloadwebsite_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.tar.gz
website_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.tar.bz2
website_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.zip
rm node_modules
Diffstat (limited to 'node_modules/crypto-random-string')
-rw-r--r--node_modules/crypto-random-string/index.js10
-rw-r--r--node_modules/crypto-random-string/license21
-rw-r--r--node_modules/crypto-random-string/package.json75
-rw-r--r--node_modules/crypto-random-string/readme.md49
4 files changed, 0 insertions, 155 deletions
diff --git a/node_modules/crypto-random-string/index.js b/node_modules/crypto-random-string/index.js
deleted file mode 100644
index ceaf65b..0000000
--- a/node_modules/crypto-random-string/index.js
+++ /dev/null
@@ -1,10 +0,0 @@
-'use strict';
-const crypto = require('crypto');
-
-module.exports = len => {
- if (!Number.isFinite(len)) {
- throw new TypeError('Expected a finite number');
- }
-
- return crypto.randomBytes(Math.ceil(len / 2)).toString('hex').slice(0, len);
-};
diff --git a/node_modules/crypto-random-string/license b/node_modules/crypto-random-string/license
deleted file mode 100644
index 654d0bf..0000000
--- a/node_modules/crypto-random-string/license
+++ /dev/null
@@ -1,21 +0,0 @@
-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.
diff --git a/node_modules/crypto-random-string/package.json b/node_modules/crypto-random-string/package.json
deleted file mode 100644
index 9f11429..0000000
--- a/node_modules/crypto-random-string/package.json
+++ /dev/null
@@ -1,75 +0,0 @@
-{
- "_from": "crypto-random-string@^1.0.0",
- "_id": "crypto-random-string@1.0.0",
- "_inBundle": false,
- "_integrity": "sha1-ojD2T1aDEOFJgAmUB5DsmVRbyn4=",
- "_location": "/crypto-random-string",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "crypto-random-string@^1.0.0",
- "name": "crypto-random-string",
- "escapedName": "crypto-random-string",
- "rawSpec": "^1.0.0",
- "saveSpec": null,
- "fetchSpec": "^1.0.0"
- },
- "_requiredBy": [
- "/unique-string"
- ],
- "_resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-1.0.0.tgz",
- "_shasum": "a230f64f568310e1498009940790ec99545bca7e",
- "_spec": "crypto-random-string@^1.0.0",
- "_where": "/home/pruss/Dev/3-minute-website/node_modules/unique-string",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/crypto-random-string/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "Generate a cryptographically strong random string",
- "devDependencies": {
- "ava": "*",
- "xo": "*"
- },
- "engines": {
- "node": ">=4"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/sindresorhus/crypto-random-string#readme",
- "keywords": [
- "random",
- "string",
- "str",
- "rand",
- "text",
- "id",
- "identifier",
- "slug",
- "salt",
- "crypto",
- "strong",
- "secure",
- "hex"
- ],
- "license": "MIT",
- "name": "crypto-random-string",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/crypto-random-string.git"
- },
- "scripts": {
- "test": "xo && ava"
- },
- "version": "1.0.0",
- "xo": {
- "esnext": true
- }
-}
diff --git a/node_modules/crypto-random-string/readme.md b/node_modules/crypto-random-string/readme.md
deleted file mode 100644
index dab5a2e..0000000
--- a/node_modules/crypto-random-string/readme.md
+++ /dev/null
@@ -1,49 +0,0 @@
-# crypto-random-string [![Build Status](https://travis-ci.org/sindresorhus/crypto-random-string.svg?branch=master)](https://travis-ci.org/sindresorhus/crypto-random-string)
-
-> Generate a [cryptographically strong](https://en.m.wikipedia.org/wiki/Strong_cryptography) random string
-
-Can be useful for creating an identifier, slug, salt, fixture, etc.
-
-
-## Install
-
-```
-$ npm install --save crypto-random-string
-```
-
-
-## Usage
-
-```js
-const cryptoRandomString = require('crypto-random-string');
-
-cryptoRandomString(10);
-//=> '2cf05d94db'
-```
-
-
-## API
-
-### cryptoRandomString(length)
-
-#### length
-
-Type: `number`
-
-Length of the returned string.
-
-
-## Related
-
-- [random-int](https://github.com/sindresorhus/random-int) - Generate a random integer
-- [random-float](https://github.com/sindresorhus/random-float) - Generate a random float
-- [random-item](https://github.com/sindresorhus/random-item) - Get a random item from an array
-- [random-boolean](https://github.com/arthurvr/random-boolean) - Get a random boolean
-- [random-obj-key](https://github.com/sindresorhus/random-obj-key) - Get a random key from an object
-- [random-obj-prop](https://github.com/sindresorhus/random-obj-prop) - Get a random property from an object
-- [unique-random](https://github.com/sindresorhus/unique-random) - Generate random numbers that are consecutively unique
-
-
-## License
-
-MIT © [Sindre Sorhus](https://sindresorhus.com)