UNPKG

@zkochan/pnpm

Version:

Fast, disk space efficient package manager

89 lines (88 loc) 3.56 kB
{ "_args": [ [ { "raw": "unique-filename@^1.1.0", "scope": null, "escapedName": "unique-filename", "name": "unique-filename", "rawSpec": "^1.1.0", "spec": ">=1.1.0 <2.0.0", "type": "range" }, "/home/zkochan/src/pnpm/packages/pnpm/node_modules/cacache" ] ], "_from": "unique-filename@>=1.1.0 <2.0.0", "_id": "unique-filename@1.1.0", "_inCache": true, "_location": "/unique-filename", "_nodeVersion": "4.2.2", "_npmUser": { "name": "iarna", "email": "me@re-becca.org" }, "_npmVersion": "2.14.13", "_phantomChildren": {}, "_requested": { "raw": "unique-filename@^1.1.0", "scope": null, "escapedName": "unique-filename", "name": "unique-filename", "rawSpec": "^1.1.0", "spec": ">=1.1.0 <2.0.0", "type": "range" }, "_requiredBy": [ "/cacache" ], "_resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-1.1.0.tgz", "_shasum": "d05f2fe4032560871f30e93cbe735eea201514f3", "_shrinkwrap": null, "_spec": "unique-filename@^1.1.0", "_where": "/home/zkochan/src/pnpm/packages/pnpm/node_modules/cacache", "author": { "name": "Rebecca Turner", "email": "me@re-becca.org", "url": "http://re-becca.org/" }, "bugs": { "url": "https://github.com/iarna/unique-filename/issues" }, "dependencies": { "unique-slug": "^2.0.0" }, "description": "Generate a unique filename for use in temporary directories or caches.", "devDependencies": { "standard": "^5.4.1", "tap": "^2.3.1" }, "directories": {}, "dist": { "shasum": "d05f2fe4032560871f30e93cbe735eea201514f3", "tarball": "https://registry.npmjs.org/unique-filename/-/unique-filename-1.1.0.tgz" }, "gitHead": "cb31644c71f842258a8019e0e6ef8f2b8533a5c0", "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": {}, "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-7ddd44c0`\nor `dir/7ddd44c0`\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", "repository": { "type": "git", "url": "git+https://github.com/iarna/unique-filename.git" }, "scripts": { "test": "standard && tap test" }, "version": "1.1.0" }