Template Upload
This commit is contained in:
21
node_modules/is-dotfile/LICENSE
generated
vendored
Normal file
21
node_modules/is-dotfile/LICENSE
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2015 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.
|
74
node_modules/is-dotfile/README.md
generated
vendored
Normal file
74
node_modules/is-dotfile/README.md
generated
vendored
Normal file
@ -0,0 +1,74 @@
|
||||
# is-dotfile [](http://badge.fury.io/js/is-dotfile)
|
||||
|
||||
> Return true if a file path is (or has) a dotfile. Returns false if the path is a dot directory.
|
||||
|
||||
## Install
|
||||
|
||||
Install with [npm](https://www.npmjs.com/)
|
||||
|
||||
```sh
|
||||
$ npm i is-dotfile --save
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var isDotfile = require('is-dotfile');
|
||||
```
|
||||
|
||||
**false**
|
||||
|
||||
All of the following return `false`:
|
||||
|
||||
```js
|
||||
isDotfile('a/b/c.js');
|
||||
isDotfile('/.git/foo');
|
||||
isDotfile('a/b/c/.git/foo');
|
||||
//=> false
|
||||
```
|
||||
|
||||
**true**
|
||||
|
||||
All of the following return `true`:
|
||||
|
||||
```js
|
||||
isDotfile('a/b/.gitignore');
|
||||
isDotfile('.gitignore');
|
||||
isDotfile('/.gitignore');
|
||||
//=> true
|
||||
```
|
||||
|
||||
## Related projects
|
||||
|
||||
* [dotfile-regex](https://www.npmjs.com/package/dotfile-regex): Regular expresson for matching dotfiles. | [homepage](https://github.com/regexps/dotfile-regex)
|
||||
* [has-glob](https://www.npmjs.com/package/has-glob): Returns `true` if an array has a glob pattern. | [homepage](https://github.com/jonschlinkert/has-glob)
|
||||
* [is-dotdir](https://www.npmjs.com/package/is-dotdir): Returns true if a path is a dot-directory. | [homepage](https://github.com/jonschlinkert/is-dotdir)
|
||||
* [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)
|
||||
|
||||
## Running tests
|
||||
|
||||
Install dev dependencies:
|
||||
|
||||
```sh
|
||||
$ npm i -d && npm test
|
||||
```
|
||||
|
||||
## Contributing
|
||||
|
||||
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/is-dotfile/issues/new).
|
||||
|
||||
## Authors
|
||||
|
||||
**Jon Schlinkert**
|
||||
|
||||
+ [github/jonschlinkert](https://github.com/jonschlinkert)
|
||||
+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
|
||||
|
||||
## License
|
||||
|
||||
Copyright © 2015 Jon Schlinkert
|
||||
Released under the MIT license.
|
||||
|
||||
***
|
||||
|
||||
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on October 20, 2015._
|
15
node_modules/is-dotfile/index.js
generated
vendored
Normal file
15
node_modules/is-dotfile/index.js
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
/*!
|
||||
* is-dotfile <https://github.com/regexps/is-dotfile>
|
||||
*
|
||||
* Copyright (c) 2015 Jon Schlinkert, contributors.
|
||||
* Licensed under the MIT license.
|
||||
*/
|
||||
|
||||
module.exports = function(str) {
|
||||
if (str.charCodeAt(0) === 46 /* . */ && str.indexOf('/', 1) === -1) {
|
||||
return true;
|
||||
}
|
||||
|
||||
var last = str.lastIndexOf('/');
|
||||
return last !== -1 ? str.charCodeAt(last + 1) === 46 /* . */ : false;
|
||||
};
|
107
node_modules/is-dotfile/package.json
generated
vendored
Normal file
107
node_modules/is-dotfile/package.json
generated
vendored
Normal file
@ -0,0 +1,107 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"is-dotfile@^1.0.0",
|
||||
"C:\\Users\\x2mjbyrn\\Source\\Repos\\Skeleton\\node_modules\\parse-glob"
|
||||
]
|
||||
],
|
||||
"_from": "is-dotfile@>=1.0.0-0 <2.0.0-0",
|
||||
"_id": "is-dotfile@1.0.2",
|
||||
"_inCache": true,
|
||||
"_location": "/is-dotfile",
|
||||
"_nodeVersion": "4.2.1",
|
||||
"_npmUser": {
|
||||
"email": "github@sellside.com",
|
||||
"name": "jonschlinkert"
|
||||
},
|
||||
"_npmVersion": "2.14.7",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"name": "is-dotfile",
|
||||
"raw": "is-dotfile@^1.0.0",
|
||||
"rawSpec": "^1.0.0",
|
||||
"scope": null,
|
||||
"spec": ">=1.0.0-0 <2.0.0-0",
|
||||
"type": "range"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/parse-glob"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/is-dotfile/-/is-dotfile-1.0.2.tgz",
|
||||
"_shasum": "2c132383f39199f8edc268ca01b9b007d205cc4d",
|
||||
"_shrinkwrap": null,
|
||||
"_spec": "is-dotfile@^1.0.0",
|
||||
"_where": "C:\\Users\\x2mjbyrn\\Source\\Repos\\Skeleton\\node_modules\\parse-glob",
|
||||
"author": {
|
||||
"name": "Jon Schlinkert",
|
||||
"url": "https://github.com/jonschlinkert"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/jonschlinkert/is-dotfile/issues"
|
||||
},
|
||||
"dependencies": {},
|
||||
"description": "Return true if a file path is (or has) a dotfile. Returns false if the path is a dot directory.",
|
||||
"devDependencies": {
|
||||
"benchmarked": "^0.1.3",
|
||||
"dotfile-regex": "^0.1.2",
|
||||
"mocha": "*"
|
||||
},
|
||||
"directories": {},
|
||||
"dist": {
|
||||
"shasum": "2c132383f39199f8edc268ca01b9b007d205cc4d",
|
||||
"tarball": "https://registry.npmjs.org/is-dotfile/-/is-dotfile-1.0.2.tgz"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"gitHead": "df258600b0afa6403a2a840f2ec486c9d350492f",
|
||||
"homepage": "https://github.com/jonschlinkert/is-dotfile",
|
||||
"installable": true,
|
||||
"keywords": [
|
||||
"detect",
|
||||
"dot",
|
||||
"dotfile",
|
||||
"expression",
|
||||
"file",
|
||||
"filepath",
|
||||
"find",
|
||||
"fs",
|
||||
"is",
|
||||
"match",
|
||||
"path",
|
||||
"regex",
|
||||
"regexp",
|
||||
"regular"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"maintainers": [
|
||||
{
|
||||
"name": "jonschlinkert",
|
||||
"email": "github@sellside.com"
|
||||
}
|
||||
],
|
||||
"name": "is-dotfile",
|
||||
"optionalDependencies": {},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/jonschlinkert/is-dotfile.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "mocha"
|
||||
},
|
||||
"verb": {
|
||||
"related": {
|
||||
"list": [
|
||||
"dotfile-regex",
|
||||
"has-glob",
|
||||
"is-dotdir",
|
||||
"is-glob"
|
||||
]
|
||||
}
|
||||
},
|
||||
"version": "1.0.2"
|
||||
}
|
Reference in New Issue
Block a user