/home/lnzliplg/public_html/unique-filename.tar
index.js 0000644 00000000327 15173070127 0006216 0 ustar 00 'use strict'
var path = require('path')
var uniqueSlug = require('unique-slug')
module.exports = function (filepath, prefix, uniq) {
return path.join(filepath, (prefix ? prefix + '-' : '') + uniqueSlug(uniq))
}
README.md 0000644 00000002266 15173070127 0006034 0 ustar 00 unique-filename
===============
Generate a unique filename for use in temporary directories or caches.
```
var uniqueFilename = require('unique-filename')
// returns something like: /tmp/912ec803b2ce49e4a541068d495ab570
var randomTmpfile = uniqueFilename(os.tmpdir())
// returns something like: /tmp/my-test-912ec803b2ce49e4a541068d495ab570
var randomPrefixedTmpfile = uniqueFilename(os.tmpdir(), 'my-test')
var uniqueTmpfile = uniqueFilename('/tmp', 'testing', '/my/thing/to/uniq/on')
```
### uniqueFilename(*dir*, *fileprefix*, *uniqstr*) → String
Returns the full path of a unique filename that looks like:
`dir/prefix-7ddd44c0`
or `dir/7ddd44c0`
*dir* – The path you want the filename in. `os.tmpdir()` is a good choice for this.
*fileprefix* – A string to append prior to the unique part of the filename.
The parameter is required if *uniqstr* is also passed in but is otherwise
optional and can be `undefined`/`null`/`''`. If present and not empty
then this string plus a hyphen are prepended to the unique part.
*uniqstr* – Optional, if not passed the unique part of the resulting
filename will be random. If passed in it will be generated from this string
in a reproducable way.
package.json 0000644 00000003051 15173070127 0007034 0 ustar 00 {
"_from": "unique-filename@1.1.1",
"_id": "unique-filename@1.1.1",
"_inBundle": false,
"_integrity": "sha512-Vmp0jIp2ln35UTXuryvjzkjGdRyf9b2lTXuSYUiPmzRcl3FDtYqAwOnTJkAngD9SWhnoJzDbTKwaOrZ+STtxNQ==",
"_location": "/unique-filename",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "unique-filename@1.1.1",
"name": "unique-filename",
"escapedName": "unique-filename",
"rawSpec": "1.1.1",
"saveSpec": null,
"fetchSpec": "1.1.1"
},
"_requiredBy": [
"#USER",
"/"
],
"_resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-1.1.1.tgz",
"_shasum": "1d69769369ada0583103a1e6ae87681b56573230",
"_spec": "unique-filename@1.1.1",
"_where": "/Users/aeschright/code/cli",
"author": {
"name": "Rebecca Turner",
"email": "me@re-becca.org",
"url": "http://re-becca.org/"
},
"bugs": {
"url": "https://github.com/iarna/unique-filename/issues"
},
"bundleDependencies": false,
"dependencies": {
"unique-slug": "^2.0.0"
},
"deprecated": false,
"description": "Generate a unique filename for use in temporary directories or caches.",
"devDependencies": {
"standard": "^5.4.1",
"tap": "^2.3.1"
},
"homepage": "https://github.com/iarna/unique-filename",
"keywords": [],
"license": "ISC",
"main": "index.js",
"name": "unique-filename",
"repository": {
"type": "git",
"url": "git+https://github.com/iarna/unique-filename.git"
},
"scripts": {
"test": "standard && tap test"
},
"version": "1.1.1"
}
LICENSE 0000644 00000001315 15173070127 0005554 0 ustar 00 Copyright npm, Inc
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
coverage/sort-arrow-sprite.png 0000644 00000000321 15173070127 0012467 0 ustar 00 �PNG
IHDR �F�3 tEXtSoftware Adobe ImageReadyq�e<