{ "_id": "unique-filename", "_rev": "21-583d19b84cd34086d9f2726bc41365bb", "name": "unique-filename", "description": "Generate a unique filename for use in temporary directories or caches.", "dist-tags": { "latest": "1.1.1" }, "versions": { "1.0.0": { "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" }, "repository": { "type": "git", "url": "https://github.com/iarna/unique-filename.git" }, "keywords": [], "author": { "name": "Rebecca Turner", "email": "me@re-becca.org", "url": "http://re-becca.org/" }, "license": "ISC", "bugs": { "url": "https://github.com/iarna/unique-filename/issues" }, "homepage": "https://github.com/iarna/unique-filename", "devDependencies": { "standard": "^3.7.3", "tap": "^1.0.0" }, "dependencies": { "unique-slug": "^1.0.0" }, "gitHead": "935739361f6ecc7b613c5daf66a57b67938796d4", "_id": "unique-filename@1.0.0", "_shasum": "0bee4219e192e86da3c4ffc0cc6e054d8634eab9", "_from": ".", "_npmVersion": "2.7.6", "_nodeVersion": "1.6.2", "_npmUser": { "name": "iarna", "email": "me@re-becca.org" }, "maintainers": [ { "name": "iarna", "email": "me@re-becca.org" } ], "dist": { "shasum": "0bee4219e192e86da3c4ffc0cc6e054d8634eab9", "tarball": "https://registry.npmjs.org/unique-filename/-/unique-filename-1.0.0.tgz" }, "directories": {} }, "1.1.0": { "name": "unique-filename", "version": "1.1.0", "description": "Generate a unique filename for use in temporary directories or caches.", "main": "index.js", "scripts": { "test": "standard && tap test" }, "repository": { "type": "git", "url": "git+https://github.com/iarna/unique-filename.git" }, "keywords": [], "author": { "name": "Rebecca Turner", "email": "me@re-becca.org", "url": "http://re-becca.org/" }, "license": "ISC", "bugs": { "url": "https://github.com/iarna/unique-filename/issues" }, "homepage": "https://github.com/iarna/unique-filename", "devDependencies": { "standard": "^5.4.1", "tap": "^2.3.1" }, "dependencies": { "unique-slug": "^2.0.0" }, "gitHead": "cb31644c71f842258a8019e0e6ef8f2b8533a5c0", "_id": "unique-filename@1.1.0", "_shasum": "d05f2fe4032560871f30e93cbe735eea201514f3", "_from": ".", "_npmVersion": "2.14.13", "_nodeVersion": "4.2.2", "_npmUser": { "name": "iarna", "email": "me@re-becca.org" }, "dist": { "shasum": "d05f2fe4032560871f30e93cbe735eea201514f3", "tarball": "https://registry.npmjs.org/unique-filename/-/unique-filename-1.1.0.tgz" }, "maintainers": [ { "name": "iarna", "email": "me@re-becca.org" } ], "directories": {} }, "1.1.1": { "name": "unique-filename", "version": "1.1.1", "description": "Generate a unique filename for use in temporary directories or caches.", "main": "index.js", "scripts": { "test": "standard && tap test" }, "repository": { "type": "git", "url": "git+https://github.com/iarna/unique-filename.git" }, "keywords": [], "author": { "name": "Rebecca Turner", "email": "me@re-becca.org", "url": "http://re-becca.org/" }, "license": "ISC", "bugs": { "url": "https://github.com/iarna/unique-filename/issues" }, "homepage": "https://github.com/iarna/unique-filename", "devDependencies": { "standard": "^5.4.1", "tap": "^2.3.1" }, "dependencies": { "unique-slug": "^2.0.0" }, "gitHead": "3653bb94c8ae4497636f0767e0a35eb442b27d9f", "_id": "unique-filename@1.1.1", "_npmVersion": "6.4.1", "_nodeVersion": "10.10.0", "_npmUser": { "name": "iarna", "email": "me@re-becca.org" }, "dist": { "integrity": "sha512-Vmp0jIp2ln35UTXuryvjzkjGdRyf9b2lTXuSYUiPmzRcl3FDtYqAwOnTJkAngD9SWhnoJzDbTKwaOrZ+STtxNQ==", "shasum": "1d69769369ada0583103a1e6ae87681b56573230", "tarball": "https://registry.npmjs.org/unique-filename/-/unique-filename-1.1.1.tgz", "fileCount": 15, "unpackedSize": 41421, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbo83nCRA9TVsSAnZWagAAGUIP/RHKLBFB/61Nc2H7LVQj\n6aGrKRjQ+ZkQCGQODloPtfU8nQ94IJ7ZaD1ArcdDWu6oP2k5xJFsDKd/zxyQ\nPMPuAwkNDVZ4ndmRbKJ2Fzxq8B4eN20Q7t9PyvHWS2x8WOE1zzeLwDeBZI1f\nK8EUaTcaAj5du6TKUbnqVzqi5K2deWovlvDBPbFMqm84nO07Zbu50t0wHqDi\nIja76zlA8o2UiY2X4I044h8dV3n7wLF/yJoj7DPgcr+jrHY2R4BP/zMyjkZh\nRHiB+50TCHXUuvfnxmeoVNhAqnrUGVw4FE1NBRgVqgl1SX5KKhZO0XRRVMAN\nCN1dxQOoXFnLT4TZp8jgCQdtRkrTH/Um4Alz0gOPf39KTU96DFm+XmoTJGKK\nI2p7GsnC8zroAktlpXSuEJZp8sG9+35k9kdda/pQO8GjVPPUsA2E4US4iIpU\nAQUptUfNLIYHzYADJqEriiWjw4/ZH2spyvq4e4jPReQWq/P3flhqv+CPYrX2\n/hGTtopd5TfEwYAUxtMUZKXBh3RNnFr6Q2NPnUD+gddSyEdee+6nheaB9B7e\nYJaPyQ8/noK8NaWNUTnLV3/pkjT9BpDHduEvL0uGvc5jkH/DSPYGqSE0D6+s\n5xNHocG6mKADtl2qTXVEwoqZldEPc7x5trUxukSSJGGREImNwGgN1/faKeEj\nUHiH\r\n=/EXC\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "name": "iarna", "email": "me@re-becca.org" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/unique-filename_1.1.1_1537461734124_0.8229183281578927" }, "_hasShrinkwrap": false } }, "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", "maintainers": [ { "email": "quitlahok@gmail.com", "name": "nlf" }, { "email": "ruyadorno@hotmail.com", "name": "ruyadorno" }, { "email": "darcy@darcyclarke.me", "name": "darcyclarke" }, { "email": "i@izs.me", "name": "isaacs" } ], "time": { "modified": "2020-10-19T13:51:11.820Z", "created": "2015-05-07T23:12:09.667Z", "1.0.0": "2015-05-07T23:12:09.667Z", "1.1.0": "2015-12-03T23:00:37.437Z", "1.1.1": "2018-09-20T16:42:14.396Z" }, "homepage": "https://github.com/iarna/unique-filename", "keywords": [], "repository": { "type": "git", "url": "git+https://github.com/iarna/unique-filename.git" }, "author": { "name": "Rebecca Turner", "email": "me@re-becca.org", "url": "http://re-becca.org/" }, "bugs": { "url": "https://github.com/iarna/unique-filename/issues" }, "license": "ISC", "readmeFilename": "README.md", "users": { "mattmcfarland": true, "iarna": true, "shiva127": true } }