aboutsummaryrefslogtreecommitdiff
path: root/node_modules/path-root
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/path-root
parenta0247c6a3fd6a09a41a7e35a3441324c4dcb58be (diff)
downloadwallet-core-abd94a7f5a50f43c797a11b53549ae48fff667c3.tar.xz
add node_modules to address #4364
Diffstat (limited to 'node_modules/path-root')
-rw-r--r--node_modules/path-root/LICENSE21
-rw-r--r--node_modules/path-root/README.md94
-rw-r--r--node_modules/path-root/index.js21
-rw-r--r--node_modules/path-root/package.json124
4 files changed, 260 insertions, 0 deletions
diff --git a/node_modules/path-root/LICENSE b/node_modules/path-root/LICENSE
new file mode 100644
index 000000000..e28e60323
--- /dev/null
+++ b/node_modules/path-root/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 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.
diff --git a/node_modules/path-root/README.md b/node_modules/path-root/README.md
new file mode 100644
index 000000000..aa3c86166
--- /dev/null
+++ b/node_modules/path-root/README.md
@@ -0,0 +1,94 @@
+# path-root [![NPM version](https://img.shields.io/npm/v/path-root.svg?style=flat)](https://www.npmjs.com/package/path-root) [![NPM downloads](https://img.shields.io/npm/dm/path-root.svg?style=flat)](https://npmjs.org/package/path-root) [![Build Status](https://img.shields.io/travis/jonschlinkert/path-root.svg?style=flat)](https://travis-ci.org/jonschlinkert/path-root)
+
+> Get the root of a posix or windows filepath.
+
+You might also be interested in [parse-filepath](https://github.com/jonschlinkert/parse-filepath).
+
+## Install
+
+Install with [npm](https://www.npmjs.com/):
+
+```sh
+$ npm install path-root --save
+```
+
+## Usage
+
+```js
+var pathRoot = require('path-root');
+```
+
+**Examples**
+
+```js
+pathRoot('\\\\server\\share\\abc');
+//=> '\\\\server\\share\\'
+
+pathRoot('\\\\server foo\\some folder\\base-file.js');
+//=> '\\\\server foo\\some folder\\'
+
+pathRoot('\\\\?\\UNC\\server\\share');
+//=> '\\\\?\\UNC\\'
+
+pathRoot('foo/bar/baz.js');
+//=> ''
+
+pathRoot('c:\\foo\\bar\\baz.js');
+//=> 'c:\\'
+
+pathRoot('\\\\slslslsl\\admin$\\system32');
+//=> '\\\\slslslsl\\admin$\\'
+
+pathRoot('/foo/bar/baz.js');
+//=> '/'
+```
+
+## 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)
+* [parse-filepath](https://www.npmjs.com/package/parse-filepath): Parse a filepath into an object. Falls back on the native node.js `path.parse` method if… [more](https://www.npmjs.com/package/parse-filepath) | [homepage](https://github.com/jonschlinkert/parse-filepath)
+* [path-root-regex](https://www.npmjs.com/package/path-root-regex): Regular expression for getting the root of a posix or windows filepath. | [homepage](https://github.com/regexhq/path-root-regex)
+
+## Contributing
+
+Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/path-root/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/path-root/blob/master/LICENSE).
+
+***
+
+_This file was generated by [verb](https://github.com/verbose/verb), v, on March 29, 2016._ \ No newline at end of file
diff --git a/node_modules/path-root/index.js b/node_modules/path-root/index.js
new file mode 100644
index 000000000..8e141babc
--- /dev/null
+++ b/node_modules/path-root/index.js
@@ -0,0 +1,21 @@
+/*!
+ * path-root <https://github.com/jonschlinkert/path-root>
+ *
+ * Copyright (c) 2016, Jon Schlinkert.
+ * Licensed under the MIT License.
+ */
+
+'use strict';
+
+var pathRootRegex = require('path-root-regex');
+
+module.exports = function(filepath) {
+ if (typeof filepath !== 'string') {
+ throw new TypeError('expected a string');
+ }
+
+ var match = pathRootRegex().exec(filepath);
+ if (match) {
+ return match[0];
+ }
+};
diff --git a/node_modules/path-root/package.json b/node_modules/path-root/package.json
new file mode 100644
index 000000000..57692e4cc
--- /dev/null
+++ b/node_modules/path-root/package.json
@@ -0,0 +1,124 @@
+{
+ "_args": [
+ [
+ {
+ "raw": "path-root@^0.1.1",
+ "scope": null,
+ "escapedName": "path-root",
+ "name": "path-root",
+ "rawSpec": "^0.1.1",
+ "spec": ">=0.1.1 <0.2.0",
+ "type": "range"
+ },
+ "/home/dold/repos/taler/wallet-webex/node_modules/parse-filepath"
+ ]
+ ],
+ "_from": "path-root@>=0.1.1 <0.2.0",
+ "_id": "path-root@0.1.1",
+ "_inCache": true,
+ "_location": "/path-root",
+ "_nodeVersion": "5.5.0",
+ "_npmOperationalInternal": {
+ "host": "packages-16-east.internal.npmjs.com",
+ "tmp": "tmp/path-root-0.1.1.tgz_1459235666528_0.13938825554214418"
+ },
+ "_npmUser": {
+ "name": "jonschlinkert",
+ "email": "github@sellside.com"
+ },
+ "_npmVersion": "3.6.0",
+ "_phantomChildren": {},
+ "_requested": {
+ "raw": "path-root@^0.1.1",
+ "scope": null,
+ "escapedName": "path-root",
+ "name": "path-root",
+ "rawSpec": "^0.1.1",
+ "spec": ">=0.1.1 <0.2.0",
+ "type": "range"
+ },
+ "_requiredBy": [
+ "/parse-filepath"
+ ],
+ "_resolved": "https://registry.npmjs.org/path-root/-/path-root-0.1.1.tgz",
+ "_shasum": "9a4a6814cac1c0cd73360a95f32083c8ea4745b7",
+ "_shrinkwrap": null,
+ "_spec": "path-root@^0.1.1",
+ "_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/path-root/issues"
+ },
+ "dependencies": {
+ "path-root-regex": "^0.1.0"
+ },
+ "description": "Get the root of a posix or windows filepath.",
+ "devDependencies": {
+ "gulp-format-md": "^0.1.7",
+ "mocha": "^2.4.5"
+ },
+ "directories": {},
+ "dist": {
+ "shasum": "9a4a6814cac1c0cd73360a95f32083c8ea4745b7",
+ "tarball": "https://registry.npmjs.org/path-root/-/path-root-0.1.1.tgz"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ },
+ "files": [
+ "index.js"
+ ],
+ "gitHead": "2f1a3929dece0f8bb645b8eb6123dd53f05cd503",
+ "homepage": "https://github.com/jonschlinkert/path-root",
+ "keywords": [
+ "path",
+ "root"
+ ],
+ "license": "MIT",
+ "main": "index.js",
+ "maintainers": [
+ {
+ "name": "jonschlinkert",
+ "email": "github@sellside.com"
+ }
+ ],
+ "name": "path-root",
+ "optionalDependencies": {},
+ "readme": "ERROR: No README data found!",
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/jonschlinkert/path-root.git"
+ },
+ "scripts": {
+ "test": "mocha"
+ },
+ "verb": {
+ "run": true,
+ "toc": false,
+ "layout": "default",
+ "tasks": [
+ "readme"
+ ],
+ "plugins": [
+ "gulp-format-md"
+ ],
+ "related": {
+ "highlight": "parse-filepath",
+ "list": [
+ "path-root-regex",
+ "parse-filepath",
+ "is-absolute"
+ ]
+ },
+ "reflinks": [
+ "verb"
+ ],
+ "lint": {
+ "reflinks": true
+ }
+ },
+ "version": "0.1.1"
+}