Updated the files.
This commit is contained in:
parent
1553e6b971
commit
753967d4f5
23418 changed files with 3784666 additions and 0 deletions
5
my-app/node_modules/unique-filename/LICENSE
generated
vendored
Executable file
5
my-app/node_modules/unique-filename/LICENSE
generated
vendored
Executable file
|
@ -0,0 +1,5 @@
|
|||
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.
|
34
my-app/node_modules/unique-filename/README.md
generated
vendored
Executable file
34
my-app/node_modules/unique-filename/README.md
generated
vendored
Executable file
|
@ -0,0 +1,34 @@
|
|||
unique-filename
|
||||
===============
|
||||
|
||||
Generate a unique filename for use in temporary directories or caches.
|
||||
|
||||
```js
|
||||
const uniqueFilename = require('unique-filename')
|
||||
|
||||
// returns something like: '/tmp/c5b28f47'
|
||||
const randomTmpfile = uniqueFilename(os.tmpdir())
|
||||
|
||||
// returns something like: '/tmp/my-test-51a7b48d'
|
||||
const randomPrefixedTmpfile = uniqueFilename(os.tmpdir(), 'my-test')
|
||||
|
||||
// returns something like: '/my-tmp-dir/testing-7ddd44c0'
|
||||
const uniqueTmpfile = uniqueFilename('/my-tmp-dir', '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 reproducible way.
|
7
my-app/node_modules/unique-filename/lib/index.js
generated
vendored
Executable file
7
my-app/node_modules/unique-filename/lib/index.js
generated
vendored
Executable file
|
@ -0,0 +1,7 @@
|
|||
var path = require('path')
|
||||
|
||||
var uniqueSlug = require('unique-slug')
|
||||
|
||||
module.exports = function (filepath, prefix, uniq) {
|
||||
return path.join(filepath, (prefix ? prefix + '-' : '') + uniqueSlug(uniq))
|
||||
}
|
51
my-app/node_modules/unique-filename/package.json
generated
vendored
Executable file
51
my-app/node_modules/unique-filename/package.json
generated
vendored
Executable file
|
@ -0,0 +1,51 @@
|
|||
{
|
||||
"name": "unique-filename",
|
||||
"version": "3.0.0",
|
||||
"description": "Generate a unique filename for use in temporary directories or caches.",
|
||||
"main": "lib/index.js",
|
||||
"scripts": {
|
||||
"test": "tap",
|
||||
"lint": "eslint \"**/*.js\"",
|
||||
"postlint": "template-oss-check",
|
||||
"template-oss-apply": "template-oss-apply --force",
|
||||
"lintfix": "npm run lint -- --fix",
|
||||
"snap": "tap",
|
||||
"posttest": "npm run lint"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/npm/unique-filename.git"
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "GitHub Inc.",
|
||||
"license": "ISC",
|
||||
"bugs": {
|
||||
"url": "https://github.com/iarna/unique-filename/issues"
|
||||
},
|
||||
"homepage": "https://github.com/iarna/unique-filename",
|
||||
"devDependencies": {
|
||||
"@npmcli/eslint-config": "^4.0.0",
|
||||
"@npmcli/template-oss": "4.5.1",
|
||||
"tap": "^16.3.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"unique-slug": "^4.0.0"
|
||||
},
|
||||
"files": [
|
||||
"bin/",
|
||||
"lib/"
|
||||
],
|
||||
"engines": {
|
||||
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
|
||||
},
|
||||
"templateOSS": {
|
||||
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
|
||||
"version": "4.5.1"
|
||||
},
|
||||
"tap": {
|
||||
"nyc-arg": [
|
||||
"--exclude",
|
||||
"tap-snapshots/**"
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue