mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2025-05-20 05:14:44 +00:00
.
This commit is contained in:
parent
a004f0ae58
commit
fc725ba36b
7280 changed files with 19 additions and 1796407 deletions
21
node_modules/is-directory/LICENSE
generated
vendored
21
node_modules/is-directory/LICENSE
generated
vendored
|
@ -1,21 +0,0 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2014-2016, Jon Schlinkert.
|
||||
|
||||
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.
|
76
node_modules/is-directory/README.md
generated
vendored
76
node_modules/is-directory/README.md
generated
vendored
|
@ -1,76 +0,0 @@
|
|||
# is-directory [](https://www.npmjs.com/package/is-directory) [](https://npmjs.org/package/is-directory) [](https://travis-ci.org/jonschlinkert/is-directory)
|
||||
|
||||
Returns true if a filepath exists on the file system and it's directory.
|
||||
|
||||
## Install
|
||||
|
||||
Install with [npm](https://www.npmjs.com/):
|
||||
|
||||
```sh
|
||||
$ npm install is-directory --save
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var isDirectory = require('is-directory');
|
||||
|
||||
isDirectory('node_modules', function(err, dir) {
|
||||
if (err) throw err;
|
||||
console.log(dir);
|
||||
//=> true
|
||||
});
|
||||
|
||||
isDirectory.sync('README.md');
|
||||
//=> false
|
||||
```
|
||||
|
||||
## Related projects
|
||||
|
||||
You might also be interested in these projects:
|
||||
|
||||
* [is-absolute](https://www.npmjs.com/package/is-absolute): Polyfill for node.js `path.isAbolute`. Returns true if a file path is absolute. | [homepage](https://github.com/jonschlinkert/is-absolute)
|
||||
* [is-glob](https://www.npmjs.com/package/is-glob): Returns `true` if the given string looks like a glob pattern or an extglob pattern.… [more](https://www.npmjs.com/package/is-glob) | [homepage](https://github.com/jonschlinkert/is-glob)
|
||||
* [is-relative](https://www.npmjs.com/package/is-relative): Returns `true` if the path appears to be relative. | [homepage](https://github.com/jonschlinkert/is-relative)
|
||||
|
||||
## Contributing
|
||||
|
||||
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/is-directory/issues/new).
|
||||
|
||||
## Building docs
|
||||
|
||||
Generate readme and API documentation with [verb](https://github.com/verbose/verb):
|
||||
|
||||
```sh
|
||||
$ npm install verb && npm run docs
|
||||
```
|
||||
|
||||
Or, if [verb](https://github.com/verbose/verb) is installed globally:
|
||||
|
||||
```sh
|
||||
$ verb
|
||||
```
|
||||
|
||||
## Running tests
|
||||
|
||||
Install dev dependencies:
|
||||
|
||||
```sh
|
||||
$ npm install -d && npm test
|
||||
```
|
||||
|
||||
## Author
|
||||
|
||||
**Jon Schlinkert**
|
||||
|
||||
* [github/jonschlinkert](https://github.com/jonschlinkert)
|
||||
* [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
|
||||
|
||||
## License
|
||||
|
||||
Copyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert).
|
||||
Released under the [MIT license](https://github.com/jonschlinkert/is-directory/blob/master/LICENSE).
|
||||
|
||||
***
|
||||
|
||||
_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on May 21, 2016._
|
65
node_modules/is-directory/index.js
generated
vendored
65
node_modules/is-directory/index.js
generated
vendored
|
@ -1,65 +0,0 @@
|
|||
/*!
|
||||
* is-directory <https://github.com/jonschlinkert/is-directory>
|
||||
*
|
||||
* Copyright (c) 2014-2015, Jon Schlinkert.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
var fs = require('fs');
|
||||
|
||||
/**
|
||||
* async
|
||||
*/
|
||||
|
||||
function isDirectory(filepath, cb) {
|
||||
if (typeof cb !== 'function') {
|
||||
throw new Error('expected a callback function');
|
||||
}
|
||||
|
||||
if (typeof filepath !== 'string') {
|
||||
cb(new Error('expected filepath to be a string'));
|
||||
return;
|
||||
}
|
||||
|
||||
fs.stat(filepath, function(err, stats) {
|
||||
if (err) {
|
||||
if (err.code === 'ENOENT') {
|
||||
cb(null, false);
|
||||
return;
|
||||
}
|
||||
cb(err);
|
||||
return;
|
||||
}
|
||||
cb(null, stats.isDirectory());
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* sync
|
||||
*/
|
||||
|
||||
isDirectory.sync = function isDirectorySync(filepath) {
|
||||
if (typeof filepath !== 'string') {
|
||||
throw new Error('expected filepath to be a string');
|
||||
}
|
||||
|
||||
try {
|
||||
var stat = fs.statSync(filepath);
|
||||
return stat.isDirectory();
|
||||
} catch (err) {
|
||||
if (err.code === 'ENOENT') {
|
||||
return false;
|
||||
} else {
|
||||
throw err;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
};
|
||||
|
||||
/**
|
||||
* Expose `isDirectory`
|
||||
*/
|
||||
|
||||
module.exports = isDirectory;
|
100
node_modules/is-directory/package.json
generated
vendored
100
node_modules/is-directory/package.json
generated
vendored
|
@ -1,100 +0,0 @@
|
|||
{
|
||||
"_args": [
|
||||
[
|
||||
"is-directory@0.3.1",
|
||||
"/Users/eric/repos/actions/setup-node"
|
||||
]
|
||||
],
|
||||
"_development": true,
|
||||
"_from": "is-directory@0.3.1",
|
||||
"_id": "is-directory@0.3.1",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-YTObbyR1/Hcv2cnYP1yFddwVSuE=",
|
||||
"_location": "/is-directory",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "is-directory@0.3.1",
|
||||
"name": "is-directory",
|
||||
"escapedName": "is-directory",
|
||||
"rawSpec": "0.3.1",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "0.3.1"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/cosmiconfig"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/is-directory/-/is-directory-0.3.1.tgz",
|
||||
"_spec": "0.3.1",
|
||||
"_where": "/Users/eric/repos/actions/setup-node",
|
||||
"author": {
|
||||
"name": "Jon Schlinkert",
|
||||
"url": "https://github.com/jonschlinkert"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/jonschlinkert/is-directory/issues"
|
||||
},
|
||||
"description": "Returns true if a filepath exists on the file system and it's directory.",
|
||||
"devDependencies": {
|
||||
"gulp-format-md": "^0.1.9",
|
||||
"mocha": "^2.4.5"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"homepage": "https://github.com/jonschlinkert/is-directory",
|
||||
"keywords": [
|
||||
"dir",
|
||||
"directories",
|
||||
"directory",
|
||||
"dirs",
|
||||
"file",
|
||||
"filepath",
|
||||
"files",
|
||||
"fp",
|
||||
"fs",
|
||||
"node",
|
||||
"node.js",
|
||||
"path",
|
||||
"paths",
|
||||
"system"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"name": "is-directory",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/jonschlinkert/is-directory.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "mocha"
|
||||
},
|
||||
"verb": {
|
||||
"toc": false,
|
||||
"layout": "default",
|
||||
"tasks": [
|
||||
"readme"
|
||||
],
|
||||
"plugins": [
|
||||
"gulp-format-md"
|
||||
],
|
||||
"related": {
|
||||
"list": [
|
||||
"is-glob",
|
||||
"is-relative",
|
||||
"is-absolute"
|
||||
]
|
||||
},
|
||||
"lint": {
|
||||
"reflinks": true
|
||||
},
|
||||
"reflinks": [
|
||||
"verb"
|
||||
]
|
||||
},
|
||||
"version": "0.3.1"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue