mirror of
https://github.com/shimataro/ssh-key-action.git
synced 2025-06-19 22:52:10 +10:00
* first action! (#1)
This commit is contained in:
parent
8deacc95b1
commit
ace1e6a69a
3750 changed files with 1155519 additions and 0 deletions
10
node_modules/unique-slug/.travis.yml
generated
vendored
Normal file
10
node_modules/unique-slug/.travis.yml
generated
vendored
Normal file
|
@ -0,0 +1,10 @@
|
|||
language: node_js
|
||||
sudo: false
|
||||
before_install:
|
||||
- "npm -g install npm"
|
||||
node_js:
|
||||
- "6"
|
||||
- "8"
|
||||
- "10"
|
||||
- "lts/*"
|
||||
- "node"
|
15
node_modules/unique-slug/LICENSE
generated
vendored
Normal file
15
node_modules/unique-slug/LICENSE
generated
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
The ISC License
|
||||
|
||||
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.
|
19
node_modules/unique-slug/README.md
generated
vendored
Normal file
19
node_modules/unique-slug/README.md
generated
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
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 (8 chars)
|
||||
|
||||
If *str* is passed in then the return value will be its murmur hash in
|
||||
hex.
|
||||
|
||||
If *str* is not passed in, it will be 4 randomly generated bytes
|
||||
converted into 8 hexadecimal characters.
|
11
node_modules/unique-slug/index.js
generated
vendored
Normal file
11
node_modules/unique-slug/index.js
generated
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
'use strict'
|
||||
var MurmurHash3 = require('imurmurhash')
|
||||
|
||||
module.exports = function (uniq) {
|
||||
if (uniq) {
|
||||
var hash = new MurmurHash3(uniq)
|
||||
return ('00000000' + hash.result().toString(16)).substr(-8)
|
||||
} else {
|
||||
return (Math.random().toString(16) + '0000000').substr(2, 8)
|
||||
}
|
||||
}
|
56
node_modules/unique-slug/package.json
generated
vendored
Normal file
56
node_modules/unique-slug/package.json
generated
vendored
Normal file
|
@ -0,0 +1,56 @@
|
|||
{
|
||||
"_from": "unique-slug@^2.0.0",
|
||||
"_id": "unique-slug@2.0.2",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-zoWr9ObaxALD3DOPfjPSqxt4fnZiWblxHIgeWqW8x7UqDzEtHEQLzji2cuJYQFCU6KmoJikOYAZlrTHHebjx2w==",
|
||||
"_location": "/unique-slug",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "unique-slug@^2.0.0",
|
||||
"name": "unique-slug",
|
||||
"escapedName": "unique-slug",
|
||||
"rawSpec": "^2.0.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^2.0.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/unique-filename"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/unique-slug/-/unique-slug-2.0.2.tgz",
|
||||
"_shasum": "baabce91083fc64e945b0f3ad613e264f7cd4e6c",
|
||||
"_spec": "unique-slug@^2.0.0",
|
||||
"_where": "/home/shimataro/projects/actions/ssh-key-action/node_modules/unique-filename",
|
||||
"author": {
|
||||
"name": "Rebecca Turner",
|
||||
"email": "me@re-becca.org",
|
||||
"url": "http://re-becca.org"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/iarna/unique-slug/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
"imurmurhash": "^0.1.4"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "Generate a unique character string suitible for use in files and URLs.",
|
||||
"devDependencies": {
|
||||
"standard": "^12.0.1",
|
||||
"tap": "^12.7.0"
|
||||
},
|
||||
"homepage": "https://github.com/iarna/unique-slug#readme",
|
||||
"keywords": [],
|
||||
"license": "ISC",
|
||||
"main": "index.js",
|
||||
"name": "unique-slug",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/iarna/unique-slug.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "standard && tap --coverage test"
|
||||
},
|
||||
"version": "2.0.2"
|
||||
}
|
13
node_modules/unique-slug/test/index.js
generated
vendored
Normal file
13
node_modules/unique-slug/test/index.js
generated
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
'use strict'
|
||||
var t = require('tap')
|
||||
var uniqueSlug = require('../index.js')
|
||||
|
||||
t.plan(5)
|
||||
var slugA = uniqueSlug()
|
||||
t.is(slugA.length, 8, 'random slugs are 8 chars')
|
||||
t.notEqual(slugA, uniqueSlug(), "two slugs aren't the same")
|
||||
var base = '/path/to/thingy'
|
||||
var slugB = uniqueSlug(base)
|
||||
t.is(slugB.length, 8, 'string based slugs are 8 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')
|
Loading…
Add table
Add a link
Reference in a new issue