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
12
node_modules/is-npm/index.d.ts
generated
vendored
Normal file
12
node_modules/is-npm/index.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
/**
|
||||
* Check if your code is running as an [npm](https://docs.npmjs.com/misc/scripts) or [yarn](https://yarnpkg.com/lang/en/docs/cli/run/) script.
|
||||
*
|
||||
* @example
|
||||
*
|
||||
* import {isNpm} from 'isNpm';
|
||||
*
|
||||
* if (isNpm) {
|
||||
* console.log('Running as a npm script!');
|
||||
* }
|
||||
*/
|
||||
export const isNpm: boolean;
|
9
node_modules/is-npm/index.js
generated
vendored
Normal file
9
node_modules/is-npm/index.js
generated
vendored
Normal file
|
@ -0,0 +1,9 @@
|
|||
'use strict';
|
||||
|
||||
const isNpm =
|
||||
'npm_config_username' in process.env ||
|
||||
'npm_package_name' in process.env ||
|
||||
'npm_config_heading' in process.env;
|
||||
|
||||
// TODO: This named export should be replaced by a default export as soon as we move to ES modules
|
||||
exports.isNpm = isNpm;
|
9
node_modules/is-npm/license
generated
vendored
Normal file
9
node_modules/is-npm/license
generated
vendored
Normal file
|
@ -0,0 +1,9 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
69
node_modules/is-npm/package.json
generated
vendored
Normal file
69
node_modules/is-npm/package.json
generated
vendored
Normal file
|
@ -0,0 +1,69 @@
|
|||
{
|
||||
"_from": "is-npm@^3.0.0",
|
||||
"_id": "is-npm@3.0.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-wsigDr1Kkschp2opC4G3yA6r9EgVA6NjRpWzIi9axXqeIaAATPRJc4uLujXe3Nd9uO8KoDyA4MD6aZSeXTADhA==",
|
||||
"_location": "/is-npm",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "is-npm@^3.0.0",
|
||||
"name": "is-npm",
|
||||
"escapedName": "is-npm",
|
||||
"rawSpec": "^3.0.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^3.0.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/update-notifier"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/is-npm/-/is-npm-3.0.0.tgz",
|
||||
"_shasum": "ec9147bfb629c43f494cf67936a961edec7e8053",
|
||||
"_spec": "is-npm@^3.0.0",
|
||||
"_where": "/home/shimataro/projects/actions/ssh-key-action/node_modules/update-notifier",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"url": "sindresorhus.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/sindresorhus/is-npm/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"deprecated": false,
|
||||
"description": "Check if your code is running as an npm script",
|
||||
"devDependencies": {
|
||||
"ava": "^1.3.1",
|
||||
"tsd-check": "^0.3.0",
|
||||
"xo": "^0.24.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=8"
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
"index.d.ts"
|
||||
],
|
||||
"homepage": "https://github.com/sindresorhus/is-npm#readme",
|
||||
"keywords": [
|
||||
"npm",
|
||||
"is",
|
||||
"check",
|
||||
"detect",
|
||||
"env",
|
||||
"environment",
|
||||
"run",
|
||||
"script"
|
||||
],
|
||||
"license": "MIT",
|
||||
"name": "is-npm",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/sindresorhus/is-npm.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "xo && ava && tsd-check"
|
||||
},
|
||||
"version": "3.0.0"
|
||||
}
|
33
node_modules/is-npm/readme.md
generated
vendored
Normal file
33
node_modules/is-npm/readme.md
generated
vendored
Normal file
|
@ -0,0 +1,33 @@
|
|||
# is-npm [](https://travis-ci.org/sindresorhus/is-npm)
|
||||
|
||||
> Check if your code is running as an [npm](https://docs.npmjs.com/misc/scripts) or [yarn](https://yarnpkg.com/lang/en/docs/cli/run/) script
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install is-npm
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
const {isNpm} = require('is-npm');
|
||||
|
||||
console.log(isNpm);
|
||||
```
|
||||
|
||||
```sh
|
||||
$ node foo.js
|
||||
#=> false
|
||||
$ npm run foo
|
||||
#=> true
|
||||
$ yarn run foo
|
||||
#=> true
|
||||
```
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Sindre Sorhus](https://sindresorhus.com)
|
Loading…
Add table
Add a link
Reference in a new issue