diff options
author | Rebecca Turner <me@re-becca.org> | 2015-05-22 11:33:46 +0300 |
---|---|---|
committer | Rebecca Turner <me@re-becca.org> | 2015-06-26 03:27:03 +0300 |
commit | d3c858ce4cfb3aee515bb299eb034fe1b5e44344 (patch) | |
tree | e7714c839934a729b68038f4c7dc5ec3ed877638 /node_modules/unique-filename | |
parent | 24564b9654528d23c726cf9ea82b1aef2044b692 (diff) |
deps: deduplicate npm@3 style
Diffstat (limited to 'node_modules/unique-filename')
6 files changed, 59 insertions, 107 deletions
diff --git a/node_modules/unique-filename/node_modules/unique-slug/.npmignore b/node_modules/unique-filename/node_modules/unique-slug/.npmignore deleted file mode 100644 index 1ab9fa63f..000000000 --- a/node_modules/unique-filename/node_modules/unique-slug/.npmignore +++ /dev/null @@ -1,5 +0,0 @@ -*~ -.#* -DEADJOE - -node_modules diff --git a/node_modules/unique-filename/node_modules/unique-slug/README.md b/node_modules/unique-filename/node_modules/unique-slug/README.md deleted file mode 100644 index 978f69b72..000000000 --- a/node_modules/unique-filename/node_modules/unique-slug/README.md +++ /dev/null @@ -1,20 +0,0 @@ -unique-slug -=========== - -Generate a unique character string suitible for use in files and URLs. - -``` -var uniqueSlug = require('unique-slug') - -var randomSlug = uniqueSlug() -var fileSlug = uniqueSlug('/etc/passwd') -``` - -### uniqueSlug(*str*) → String (32 chars) - -If *str* is passed in then the return value will be its md5 digest in -hex. - -If *str* is not passed in, it will be 16 bytes coverted into 32 hex -characters, generated by `crypto.pseudoRandomBytes`. - diff --git a/node_modules/unique-filename/node_modules/unique-slug/index.js b/node_modules/unique-filename/node_modules/unique-slug/index.js deleted file mode 100644 index 747cf6d06..000000000 --- a/node_modules/unique-filename/node_modules/unique-slug/index.js +++ /dev/null @@ -1,15 +0,0 @@ -'use strict' -var crypto = require('crypto') - -module.exports = function (uniq) { - if (uniq) { - var hash = crypto.createHash('md5') - hash.update(uniq) - return hash.digest('hex') - } else { - // Safe because w/o a callback because this interface can - // neither block nor error (by contrast with randomBytes - // which will throw an exception without enough entropy) - return crypto.pseudoRandomBytes(16).toString('hex') - } -} diff --git a/node_modules/unique-filename/node_modules/unique-slug/package.json b/node_modules/unique-filename/node_modules/unique-slug/package.json deleted file mode 100644 index d4d76fcdb..000000000 --- a/node_modules/unique-filename/node_modules/unique-slug/package.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "name": "unique-slug", - "version": "1.0.0", - "description": "Generate a unique character string suitible for use in files and URLs.", - "main": "index.js", - "scripts": { - "test": "standard && tap test" - }, - "keywords": [], - "author": { - "name": "Rebecca Turner", - "email": "me@re-becca.org", - "url": "http://re-becca.org" - }, - "license": "ISC", - "devDependencies": { - "standard": "^3.7.3", - "tap": "^1.0.0" - }, - "repository": { - "type": "git", - "url": "git://github.com/iarna/unique-slug.git" - }, - "readme": "unique-slug\n===========\n\nGenerate a unique character string suitible for use in files and URLs.\n\n```\nvar uniqueSlug = require('unique-slug')\n\nvar randomSlug = uniqueSlug()\nvar fileSlug = uniqueSlug('/etc/passwd')\n```\n\n### uniqueSlug(*str*) → String (32 chars)\n\nIf *str* is passed in then the return value will be its md5 digest in\nhex.\n\nIf *str* is not passed in, it will be 16 bytes coverted into 32 hex\ncharacters, generated by `crypto.pseudoRandomBytes`.\n\n", - "readmeFilename": "README.md", - "gitHead": "024b3bd3c0184550702c93f088822e3f38da5c17", - "bugs": { - "url": "https://github.com/iarna/unique-slug/issues" - }, - "homepage": "https://github.com/iarna/unique-slug", - "_id": "unique-slug@1.0.0", - "_shasum": "4459d12416f576cc091a3deb19939ec99c735626", - "_from": "unique-slug@>=1.0.0 <2.0.0" -} diff --git a/node_modules/unique-filename/node_modules/unique-slug/test/index.js b/node_modules/unique-filename/node_modules/unique-slug/test/index.js deleted file mode 100644 index 6866678ed..000000000 --- a/node_modules/unique-filename/node_modules/unique-slug/test/index.js +++ /dev/null @@ -1,13 +0,0 @@ -'use strict' -var t = require('tap') -var uniqueSlug = require('../index.js') - -t.plan(5) -var slugA = uniqueSlug() -t.is(slugA.length, 32, 'random slugs are 32 chars') -t.notEqual(slugA, uniqueSlug(), "two slugs aren't the same") -var base = '/path/to/thingy' -var slugB = uniqueSlug(base) -t.is(slugB.length, 32, 'string based slugs are 32 chars') -t.is(slugB, uniqueSlug(base), 'two string based slugs, from the same string are the same') -t.notEqual(slugB, uniqueSlug(slugA), 'two string based slongs, from diff strings are different') diff --git a/node_modules/unique-filename/package.json b/node_modules/unique-filename/package.json index b44501226..2b3f9a1b6 100644 --- a/node_modules/unique-filename/package.json +++ b/node_modules/unique-filename/package.json @@ -1,37 +1,76 @@ { - "name": "unique-filename", - "version": "1.0.0", - "description": "Generate a unique filename for use in temporary directories or caches.", - "main": "index.js", - "scripts": { - "test": "standard && tap test" + "_args": [ + [ + "unique-filename@~1.0.0", + "/Users/rebecca/code/npm" + ] + ], + "_from": "unique-filename@>=1.0.0 <1.1.0", + "_id": "unique-filename@1.0.0", + "_inCache": true, + "_location": "/unique-filename", + "_nodeVersion": "1.6.2", + "_npmUser": { + "email": "me@re-becca.org", + "name": "iarna" }, - "repository": { - "type": "git", - "url": "https://github.com/iarna/unique-filename.git" + "_npmVersion": "2.7.6", + "_phantomChildren": {}, + "_requested": { + "name": "unique-filename", + "raw": "unique-filename@~1.0.0", + "rawSpec": "~1.0.0", + "scope": null, + "spec": ">=1.0.0 <1.1.0", + "type": "range" }, - "keywords": [], + "_requiredBy": [ + "/" + ], + "_shasum": "0bee4219e192e86da3c4ffc0cc6e054d8634eab9", + "_shrinkwrap": null, + "_spec": "unique-filename@~1.0.0", + "_where": "/Users/rebecca/code/npm", "author": { - "name": "Rebecca Turner", "email": "me@re-becca.org", + "name": "Rebecca Turner", "url": "http://re-becca.org/" }, - "license": "ISC", "bugs": { "url": "https://github.com/iarna/unique-filename/issues" }, - "homepage": "https://github.com/iarna/unique-filename", + "dependencies": { + "unique-slug": "^1.0.0" + }, + "description": "Generate a unique filename for use in temporary directories or caches.", "devDependencies": { "standard": "^3.7.3", "tap": "^1.0.0" }, - "dependencies": { - "unique-slug": "^1.0.0" + "directories": {}, + "dist": { + "shasum": "0bee4219e192e86da3c4ffc0cc6e054d8634eab9", + "tarball": "http://registry.npmjs.org/unique-filename/-/unique-filename-1.0.0.tgz" }, - "readme": "unique-filename\n===============\n\nGenerate a unique filename for use in temporary directories or caches.\n\n```\nvar uniqueFilename = require('unique-filename')\n\n// returns something like: /tmp/912ec803b2ce49e4a541068d495ab570\nvar randomTmpfile = uniqueFilename(os.tmpdir())\n\n// returns something like: /tmp/my-test-912ec803b2ce49e4a541068d495ab570\nvar randomPrefixedTmpfile = uniqueFilename(os.tmpdir(), 'my-test')\n\nvar uniqueTmpfile = uniqueFilename('/tmp', 'testing', '/my/thing/to/uniq/on')\n```\n\n### uniqueFilename(*dir*, *fileprefix*, *uniqstr*) → String\n\nReturns the full path of a unique filename that looks like:\n`dir/prefix-912ec803b2ce49e4a541068d495ab570`\nor `dir/912ec803b2ce49e4a541068d495ab570`\n\n*dir* – The path you want the filename in. `os.tmpdir()` is a good choice for this.\n\n*fileprefix* – A string to append prior to the unique part of the filename.\nThe parameter is required if *uniqstr* is also passed in but is otherwise\noptional and can be `undefined`/`null`/`''`. If present and not empty\nthen this string plus a hyphen are prepended to the unique part.\n\n*uniqstr* – Optional, if not passed the unique part of the resulting\nfilename will be random. If passed in it will be generated from this string\nin a reproducable way.\n", - "readmeFilename": "README.md", "gitHead": "935739361f6ecc7b613c5daf66a57b67938796d4", - "_id": "unique-filename@1.0.0", - "_shasum": "0bee4219e192e86da3c4ffc0cc6e054d8634eab9", - "_from": "unique-filename@*" + "homepage": "https://github.com/iarna/unique-filename", + "keywords": [], + "license": "ISC", + "main": "index.js", + "maintainers": [ + { + "name": "iarna", + "email": "me@re-becca.org" + } + ], + "name": "unique-filename", + "optionalDependencies": {}, + "repository": { + "type": "git", + "url": "https://github.com/iarna/unique-filename.git" + }, + "scripts": { + "test": "standard && tap test" + }, + "version": "1.0.0" } |