aboutsummaryrefslogtreecommitdiff
path: root/node_modules/is-absolute
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-absolute
parenta0247c6a3fd6a09a41a7e35a3441324c4dcb58be (diff)
downloadwallet-core-abd94a7f5a50f43c797a11b53549ae48fff667c3.tar.xz
add node_modules to address #4364
Diffstat (limited to 'node_modules/is-absolute')
-rw-r--r--node_modules/is-absolute/LICENSE21
-rw-r--r--node_modules/is-absolute/README.md109
-rw-r--r--node_modules/is-absolute/index.js47
-rw-r--r--node_modules/is-absolute/node_modules/is-windows/LICENSE21
-rw-r--r--node_modules/is-absolute/node_modules/is-windows/README.md56
-rw-r--r--node_modules/is-absolute/node_modules/is-windows/index.js22
-rw-r--r--node_modules/is-absolute/node_modules/is-windows/package.json114
-rw-r--r--node_modules/is-absolute/package.json155
8 files changed, 545 insertions, 0 deletions
diff --git a/node_modules/is-absolute/LICENSE b/node_modules/is-absolute/LICENSE
new file mode 100644
index 000000000..aa6889f64
--- /dev/null
+++ b/node_modules/is-absolute/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014-2016, Jon Schlinkert.Copyright (c) 2009-2016, TJ Holowaychuk.
+
+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-absolute/README.md b/node_modules/is-absolute/README.md
new file mode 100644
index 000000000..c630424e6
--- /dev/null
+++ b/node_modules/is-absolute/README.md
@@ -0,0 +1,109 @@
+# is-absolute [![NPM version](https://img.shields.io/npm/v/is-absolute.svg?style=flat)](https://www.npmjs.com/package/is-absolute) [![NPM downloads](https://img.shields.io/npm/dm/is-absolute.svg?style=flat)](https://npmjs.org/package/is-absolute) [![Build Status](https://img.shields.io/travis/jonschlinkert/is-absolute.svg?style=flat)](https://travis-ci.org/jonschlinkert/is-absolute)
+
+> Polyfill for node.js `path.isAbolute`. Returns true if a file path is absolute.
+
+## Install
+
+Install with [npm](https://www.npmjs.com/):
+
+```sh
+$ npm install is-absolute --save
+```
+
+Originally based on the `isAbsolute` utility method in [express](https://github.com/visionmedia/express).
+
+## Usage
+
+```js
+var isAbsolute = require('is-absolute');
+
+isAbsolute('a/b/c.js');
+//=> 'false'
+isAbsolute('/a/b/c.js');
+//=> 'true'
+```
+
+**Explicitly test windows paths**
+
+```js
+isAbsolute.posix('/foo/bar');
+isAbsolute.posix('/user/docs/Letter.txt');
+//=> true
+
+isAbsolute.posix('foo/bar');
+//=> false
+```
+
+**Explicitly test windows paths**
+
+```js
+var isAbsolute = require('is-absolute');
+
+isAbsolute.win32('c:\\');
+isAbsolute.win32('//C://user\\docs\\Letter.txt');
+isAbsolute.win32('\\\\unc\\share');
+isAbsolute.win32('\\\\unc\\share\\foo');
+isAbsolute.win32('\\\\unc\\share\\foo\\');
+isAbsolute.win32('\\\\unc\\share\\foo\\bar');
+isAbsolute.win32('\\\\unc\\share\\foo\\bar\\');
+isAbsolute.win32('\\\\unc\\share\\foo\\bar\\baz');
+//=> true
+
+isAbsolute.win32('a:foo/a/b/c/d');
+isAbsolute.win32(':\\');
+isAbsolute.win32('foo\\bar\\baz');
+isAbsolute.win32('foo\\bar\\baz\\');
+//=> false
+```
+
+## Related projects
+
+You might also be interested in these projects:
+
+* [is-dotfile](https://www.npmjs.com/package/is-dotfile): Return true if a file path is (or has) a dotfile. Returns false if the… [more](https://www.npmjs.com/package/is-dotfile) | [homepage](https://github.com/jonschlinkert/is-dotfile)
+* [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)
+* [is-unc-path](https://www.npmjs.com/package/is-unc-path): Returns true if a filepath is a windows UNC file path. | [homepage](https://github.com/jonschlinkert/is-unc-path)
+* [is-valid-glob](https://www.npmjs.com/package/is-valid-glob): Return true if a value is a valid glob pattern or patterns. | [homepage](https://github.com/jonschlinkert/is-valid-glob)
+
+## Contributing
+
+Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/is-absolute/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-absolute/blob/master/LICENSE).
+
+***
+
+_This file was generated by [verb](https://github.com/verbose/verb), v, on April 02, 2016._ \ No newline at end of file
diff --git a/node_modules/is-absolute/index.js b/node_modules/is-absolute/index.js
new file mode 100644
index 000000000..06d67311e
--- /dev/null
+++ b/node_modules/is-absolute/index.js
@@ -0,0 +1,47 @@
+'use strict';
+
+var isRelative = require('is-relative');
+var isWindows = require('is-windows');
+
+/**
+ * Expose `isAbsolute`
+ */
+
+module.exports = isAbsolute;
+
+/**
+ * Returns true if a file path is absolute.
+ *
+ * @param {String} `fp`
+ * @return {Boolean}
+ */
+
+function isAbsolute(fp) {
+ if (typeof fp !== 'string') {
+ throw new TypeError('isAbsolute expects a string.');
+ }
+ return isWindows() ? isAbsolute.win32(fp) : isAbsolute.posix(fp);
+}
+
+/**
+ * Test posix paths.
+ */
+
+isAbsolute.posix = function posixPath(fp) {
+ return fp.charAt(0) === '/';
+};
+
+/**
+ * Test windows paths.
+ */
+
+isAbsolute.win32 = function win32(fp) {
+ if (/[a-z]/i.test(fp.charAt(0)) && fp.charAt(1) === ':' && fp.charAt(2) === '\\') {
+ return true;
+ }
+ // Microsoft Azure absolute filepath
+ if (fp.slice(0, 2) === '\\\\') {
+ return true;
+ }
+ return !isRelative(fp);
+};
diff --git a/node_modules/is-absolute/node_modules/is-windows/LICENSE b/node_modules/is-absolute/node_modules/is-windows/LICENSE
new file mode 100644
index 000000000..65f90aca8
--- /dev/null
+++ b/node_modules/is-absolute/node_modules/is-windows/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-absolute/node_modules/is-windows/README.md b/node_modules/is-absolute/node_modules/is-windows/README.md
new file mode 100644
index 000000000..f83101ba0
--- /dev/null
+++ b/node_modules/is-absolute/node_modules/is-windows/README.md
@@ -0,0 +1,56 @@
+# is-windows [![NPM version](https://img.shields.io/npm/v/is-windows.svg)](https://www.npmjs.com/package/is-windows) [![Build Status](https://img.shields.io/travis/jonschlinkert/is-windows.svg)](https://travis-ci.org/jonschlinkert/is-windows)
+
+> Returns true if the platform is windwows.
+
+## Install
+
+Install with [npm](https://www.npmjs.com/)
+
+```sh
+$ npm i is-windows --save
+```
+
+## Usage
+
+```js
+var isWindows = require('is-windows');
+
+isWindows();
+//=> returns true if the platform is windows
+```
+
+## Related projects
+
+* [is-absolute](https://www.npmjs.com/package/is-absolute): 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)
+* [isobject](https://www.npmjs.com/package/isobject): Returns true if the value is an object and not an array or null. | [homepage](https://github.com/jonschlinkert/isobject)
+* [window-size](https://www.npmjs.com/package/window-size): Reliable way to to get the height and width of the terminal/console in a node.js… [more](https://www.npmjs.com/package/window-size) | [homepage](https://github.com/jonschlinkert/window-size)
+
+## 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-windows/issues/new).
+
+## Author
+
+**Jon Schlinkert**
+
+* [github/jonschlinkert](https://github.com/jonschlinkert)
+* [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
+
+## License
+
+Copyright © 2015 [Jon Schlinkert](https://github.com/jonschlinkert)
+Released under the MIT license.
+
+***
+
+_This file was generated by [verb](https://github.com/verbose/verb) on December 20, 2015._ \ No newline at end of file
diff --git a/node_modules/is-absolute/node_modules/is-windows/index.js b/node_modules/is-absolute/node_modules/is-windows/index.js
new file mode 100644
index 000000000..5921b613b
--- /dev/null
+++ b/node_modules/is-absolute/node_modules/is-windows/index.js
@@ -0,0 +1,22 @@
+/*! is-windows v0.1.0 | MIT LICENSE (c) 2015 | https://github.com/jonschlinkert/is-windows */
+(function (root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD
+ define(factory);
+ } else if (typeof exports === 'object') {
+ // Node.js
+ module.exports = factory;
+ } else {
+ // Browser
+ root.isWindows = factory();
+ }
+}(this, function () {
+ 'use strict';
+
+ return (function isWindows() {
+ if (typeof process === 'undefined' || !process) {
+ return false;
+ }
+ return process.platform === 'win32';
+ }());
+}));
diff --git a/node_modules/is-absolute/node_modules/is-windows/package.json b/node_modules/is-absolute/node_modules/is-windows/package.json
new file mode 100644
index 000000000..a9fa7d6df
--- /dev/null
+++ b/node_modules/is-absolute/node_modules/is-windows/package.json
@@ -0,0 +1,114 @@
+{
+ "_args": [
+ [
+ {
+ "raw": "is-windows@^0.1.1",
+ "scope": null,
+ "escapedName": "is-windows",
+ "name": "is-windows",
+ "rawSpec": "^0.1.1",
+ "spec": ">=0.1.1 <0.2.0",
+ "type": "range"
+ },
+ "/home/dold/repos/taler/wallet-webex/node_modules/is-absolute"
+ ]
+ ],
+ "_from": "is-windows@>=0.1.1 <0.2.0",
+ "_id": "is-windows@0.1.1",
+ "_inCache": true,
+ "_location": "/is-absolute/is-windows",
+ "_nodeVersion": "5.0.0",
+ "_npmUser": {
+ "name": "jonschlinkert",
+ "email": "github@sellside.com"
+ },
+ "_npmVersion": "3.3.6",
+ "_phantomChildren": {},
+ "_requested": {
+ "raw": "is-windows@^0.1.1",
+ "scope": null,
+ "escapedName": "is-windows",
+ "name": "is-windows",
+ "rawSpec": "^0.1.1",
+ "spec": ">=0.1.1 <0.2.0",
+ "type": "range"
+ },
+ "_requiredBy": [
+ "/is-absolute"
+ ],
+ "_resolved": "https://registry.npmjs.org/is-windows/-/is-windows-0.1.1.tgz",
+ "_shasum": "be310715431cfabccc54ab3951210fa0b6d01abe",
+ "_shrinkwrap": null,
+ "_spec": "is-windows@^0.1.1",
+ "_where": "/home/dold/repos/taler/wallet-webex/node_modules/is-absolute",
+ "author": {
+ "name": "Jon Schlinkert",
+ "url": "https://github.com/jonschlinkert"
+ },
+ "bugs": {
+ "url": "https://github.com/jonschlinkert/is-windows/issues"
+ },
+ "dependencies": {},
+ "description": "Returns true if the platform is windwows.",
+ "devDependencies": {
+ "mocha": "*"
+ },
+ "directories": {},
+ "dist": {
+ "shasum": "be310715431cfabccc54ab3951210fa0b6d01abe",
+ "tarball": "https://registry.npmjs.org/is-windows/-/is-windows-0.1.1.tgz"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ },
+ "files": [
+ "index.js"
+ ],
+ "gitHead": "b3799aec243e4b6102f74d694c7b484b5ea867e0",
+ "homepage": "https://github.com/jonschlinkert/is-windows",
+ "keywords": [
+ "check",
+ "is",
+ "is-windows",
+ "nix",
+ "platform",
+ "process",
+ "unix",
+ "win",
+ "win32",
+ "windows"
+ ],
+ "license": "MIT",
+ "main": "index.js",
+ "maintainers": [
+ {
+ "name": "jonschlinkert",
+ "email": "github@sellside.com"
+ }
+ ],
+ "name": "is-windows",
+ "optionalDependencies": {},
+ "readme": "ERROR: No README data found!",
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/jonschlinkert/is-windows.git"
+ },
+ "scripts": {
+ "test": "mocha"
+ },
+ "verb": {
+ "related": {
+ "list": [
+ "is-absolute",
+ "is-glob",
+ "is-relative",
+ "isobject",
+ "window-size"
+ ]
+ },
+ "plugins": [
+ "gulp-format-md"
+ ]
+ },
+ "version": "0.1.1"
+}
diff --git a/node_modules/is-absolute/package.json b/node_modules/is-absolute/package.json
new file mode 100644
index 000000000..7458998c4
--- /dev/null
+++ b/node_modules/is-absolute/package.json
@@ -0,0 +1,155 @@
+{
+ "_args": [
+ [
+ {
+ "raw": "is-absolute@^0.2.3",
+ "scope": null,
+ "escapedName": "is-absolute",
+ "name": "is-absolute",
+ "rawSpec": "^0.2.3",
+ "spec": ">=0.2.3 <0.3.0",
+ "type": "range"
+ },
+ "/home/dold/repos/taler/wallet-webex/node_modules/parse-filepath"
+ ]
+ ],
+ "_from": "is-absolute@>=0.2.3 <0.3.0",
+ "_id": "is-absolute@0.2.5",
+ "_inCache": true,
+ "_location": "/is-absolute",
+ "_nodeVersion": "5.5.0",
+ "_npmOperationalInternal": {
+ "host": "packages-12-west.internal.npmjs.com",
+ "tmp": "tmp/is-absolute-0.2.5.tgz_1459583078360_0.9947122586891055"
+ },
+ "_npmUser": {
+ "name": "jonschlinkert",
+ "email": "github@sellside.com"
+ },
+ "_npmVersion": "3.6.0",
+ "_phantomChildren": {},
+ "_requested": {
+ "raw": "is-absolute@^0.2.3",
+ "scope": null,
+ "escapedName": "is-absolute",
+ "name": "is-absolute",
+ "rawSpec": "^0.2.3",
+ "spec": ">=0.2.3 <0.3.0",
+ "type": "range"
+ },
+ "_requiredBy": [
+ "/parse-filepath"
+ ],
+ "_resolved": "https://registry.npmjs.org/is-absolute/-/is-absolute-0.2.5.tgz",
+ "_shasum": "994142b9f468d27c14fbf0cd30fe77db934ca76d",
+ "_shrinkwrap": null,
+ "_spec": "is-absolute@^0.2.3",
+ "_where": "/home/dold/repos/taler/wallet-webex/node_modules/parse-filepath",
+ "author": {
+ "name": "Jon Schlinkert",
+ "url": "https://github.com/jonschlinkert"
+ },
+ "bugs": {
+ "url": "https://github.com/jonschlinkert/is-absolute/issues"
+ },
+ "dependencies": {
+ "is-relative": "^0.2.1",
+ "is-windows": "^0.1.1"
+ },
+ "description": "Polyfill for node.js `path.isAbolute`. Returns true if a file path is absolute.",
+ "devDependencies": {
+ "gulp-format-md": "^0.1.7",
+ "mocha": "^2.4.5"
+ },
+ "directories": {},
+ "dist": {
+ "shasum": "994142b9f468d27c14fbf0cd30fe77db934ca76d",
+ "tarball": "https://registry.npmjs.org/is-absolute/-/is-absolute-0.2.5.tgz"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ },
+ "files": [
+ "index.js"
+ ],
+ "gitHead": "f1bc6d441f094ac5d3ec88efe5954e6ab4558b6b",
+ "homepage": "https://github.com/jonschlinkert/is-absolute",
+ "keywords": [
+ "absolute",
+ "built",
+ "built-in",
+ "check",
+ "core",
+ "detect",
+ "dir",
+ "file",
+ "filepath",
+ "is",
+ "is-absolute",
+ "isabsolute",
+ "normalize",
+ "path",
+ "path-absolute",
+ "path-is-absolute",
+ "paths",
+ "polyfill",
+ "relative",
+ "resolve",
+ "shim",
+ "slash",
+ "slashes",
+ "uri",
+ "url",
+ "util",
+ "utils"
+ ],
+ "license": "MIT",
+ "main": "index.js",
+ "maintainers": [
+ {
+ "name": "jonschlinkert",
+ "email": "github@sellside.com"
+ },
+ {
+ "name": "doowb",
+ "email": "brian.woodward@gmail.com"
+ }
+ ],
+ "name": "is-absolute",
+ "optionalDependencies": {},
+ "readme": "ERROR: No README data found!",
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/jonschlinkert/is-absolute.git"
+ },
+ "scripts": {
+ "test": "mocha"
+ },
+ "verb": {
+ "run": true,
+ "toc": false,
+ "layout": "default",
+ "tasks": [
+ "readme"
+ ],
+ "plugins": [
+ "gulp-format-md"
+ ],
+ "related": {
+ "list": [
+ "is-dotfile",
+ "is-glob",
+ "is-relative",
+ "is-unc-path",
+ "is-valid-glob"
+ ]
+ },
+ "reflinks": [
+ "verb"
+ ],
+ "lint": {
+ "reflinks": true
+ }
+ },
+ "version": "0.2.5"
+}