aboutsummaryrefslogtreecommitdiff
path: root/node_modules/is-dotfile
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-10-10 03:43:44 +0200
committerFlorian Dold <florian.dold@gmail.com>2016-10-10 03:43:44 +0200
commitabd94a7f5a50f43c797a11b53549ae48fff667c3 (patch)
treeab8ed457f65cdd72e13e0571d2975729428f1551 /node_modules/is-dotfile
parenta0247c6a3fd6a09a41a7e35a3441324c4dcb58be (diff)
downloadwallet-core-abd94a7f5a50f43c797a11b53549ae48fff667c3.tar.xz
add node_modules to address #4364
Diffstat (limited to 'node_modules/is-dotfile')
-rw-r--r--node_modules/is-dotfile/LICENSE21
-rw-r--r--node_modules/is-dotfile/README.md74
-rw-r--r--node_modules/is-dotfile/index.js15
-rw-r--r--node_modules/is-dotfile/package.json116
4 files changed, 226 insertions, 0 deletions
diff --git a/node_modules/is-dotfile/LICENSE b/node_modules/is-dotfile/LICENSE
new file mode 100644
index 000000000..33754daec
--- /dev/null
+++ b/node_modules/is-dotfile/LICENSE
@@ -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.
diff --git a/node_modules/is-dotfile/README.md b/node_modules/is-dotfile/README.md
new file mode 100644
index 000000000..d17b55ccb
--- /dev/null
+++ b/node_modules/is-dotfile/README.md
@@ -0,0 +1,74 @@
+# is-dotfile [![NPM version](https://badge.fury.io/js/is-dotfile.svg)](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._ \ No newline at end of file
diff --git a/node_modules/is-dotfile/index.js b/node_modules/is-dotfile/index.js
new file mode 100644
index 000000000..5a0a0caa8
--- /dev/null
+++ b/node_modules/is-dotfile/index.js
@@ -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;
+};
diff --git a/node_modules/is-dotfile/package.json b/node_modules/is-dotfile/package.json
new file mode 100644
index 000000000..89f9e21f3
--- /dev/null
+++ b/node_modules/is-dotfile/package.json
@@ -0,0 +1,116 @@
+{
+ "_args": [
+ [
+ {
+ "raw": "is-dotfile@^1.0.0",
+ "scope": null,
+ "escapedName": "is-dotfile",
+ "name": "is-dotfile",
+ "rawSpec": "^1.0.0",
+ "spec": ">=1.0.0 <2.0.0",
+ "type": "range"
+ },
+ "/home/dold/repos/taler/wallet-webex/node_modules/parse-glob"
+ ]
+ ],
+ "_from": "is-dotfile@>=1.0.0 <2.0.0",
+ "_id": "is-dotfile@1.0.2",
+ "_inCache": true,
+ "_location": "/is-dotfile",
+ "_nodeVersion": "4.2.1",
+ "_npmUser": {
+ "name": "jonschlinkert",
+ "email": "github@sellside.com"
+ },
+ "_npmVersion": "2.14.7",
+ "_phantomChildren": {},
+ "_requested": {
+ "raw": "is-dotfile@^1.0.0",
+ "scope": null,
+ "escapedName": "is-dotfile",
+ "name": "is-dotfile",
+ "rawSpec": "^1.0.0",
+ "spec": ">=1.0.0 <2.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": "/home/dold/repos/taler/wallet-webex/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",
+ "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": {},
+ "readme": "ERROR: No README data found!",
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/jonschlinkert/is-dotfile.git"
+ },
+ "scripts": {
+ "test": "mocha"
+ },
+ "verb": {
+ "related": {
+ "list": [
+ "has-glob",
+ "is-glob",
+ "dotfile-regex",
+ "is-dotdir"
+ ]
+ }
+ },
+ "version": "1.0.2"
+}