aboutsummaryrefslogtreecommitdiff
path: root/node_modules/resolve-dir
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/resolve-dir
parenta0247c6a3fd6a09a41a7e35a3441324c4dcb58be (diff)
downloadwallet-core-abd94a7f5a50f43c797a11b53549ae48fff667c3.tar.xz
add node_modules to address #4364
Diffstat (limited to 'node_modules/resolve-dir')
-rw-r--r--node_modules/resolve-dir/LICENSE21
-rw-r--r--node_modules/resolve-dir/README.md88
-rw-r--r--node_modules/resolve-dir/index.js22
-rw-r--r--node_modules/resolve-dir/package.json140
4 files changed, 271 insertions, 0 deletions
diff --git a/node_modules/resolve-dir/LICENSE b/node_modules/resolve-dir/LICENSE
new file mode 100644
index 000000000..652517172
--- /dev/null
+++ b/node_modules/resolve-dir/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2015-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/resolve-dir/README.md b/node_modules/resolve-dir/README.md
new file mode 100644
index 000000000..220178dbd
--- /dev/null
+++ b/node_modules/resolve-dir/README.md
@@ -0,0 +1,88 @@
+# resolve-dir [![NPM version](https://img.shields.io/npm/v/resolve-dir.svg?style=flat)](https://www.npmjs.com/package/resolve-dir) [![NPM downloads](https://img.shields.io/npm/dm/resolve-dir.svg?style=flat)](https://npmjs.org/package/resolve-dir) [![Build Status](https://img.shields.io/travis/jonschlinkert/resolve-dir.svg?style=flat)](https://travis-ci.org/jonschlinkert/resolve-dir)
+
+Resolve a directory that is either local, global or in the user's home directory.
+
+## Install
+
+Install with [npm](https://www.npmjs.com/):
+
+```sh
+$ npm install --save resolve-dir
+```
+
+## Usage
+
+```js
+var resolve = require('resolve-dir');
+```
+
+Returns a local directory path unchanged
+
+```js
+resolve('a')
+//=> 'a'
+```
+
+Resolves the path to user home
+
+```js
+resolve('~')
+//=> '/Users/jonschlinkert'
+resolve('~/foo')
+//=> '/Users/jonschlinkert/foo'
+```
+
+Resolves the path to global npm modules
+
+```js
+resolve('@')
+//=> '/usr/local/lib/node_modules'
+resolve('@/foo')
+//=> '/usr/local/lib/node_modules/foo'
+```
+
+## About
+
+### Related projects
+
+* [expand-tilde](https://www.npmjs.com/package/expand-tilde): Bash-like tilde expansion for node.js. Expands a leading tilde in a file path to the… [more](https://github.com/jonschlinkert/expand-tilde) | [homepage](https://github.com/jonschlinkert/expand-tilde "Bash-like tilde expansion for node.js. Expands a leading tilde in a file path to the user home directory, or `~+` to the cwd.")
+* [findup-sync](https://www.npmjs.com/package/findup-sync): Find the first file matching a given pattern in the current directory or the nearest… [more](https://github.com/cowboy/node-findup-sync) | [homepage](https://github.com/cowboy/node-findup-sync "Find the first file matching a given pattern in the current directory or the nearest ancestor directory.")
+* [resolve-modules](https://www.npmjs.com/package/resolve-modules): Resolves local and global npm modules that match specified patterns, and returns a configuration object… [more](https://github.com/jonschlinkert/resolve-modules) | [homepage](https://github.com/jonschlinkert/resolve-modules "Resolves local and global npm modules that match specified patterns, and returns a configuration object for each resolved module.")
+
+### Contributing
+
+Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
+
+### Building docs
+
+_(This document was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme) (a [verb](https://github.com/verbose/verb) generator), please don't edit the readme directly. Any changes to the readme must be made in [.verb.md](.verb.md).)_
+
+To generate the readme and API documentation with [verb](https://github.com/verbose/verb):
+
+```sh
+$ npm install -g verb verb-generate-readme && 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/resolve-dir/blob/master/LICENSE).
+
+***
+
+_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.1.28, on July 29, 2016._ \ No newline at end of file
diff --git a/node_modules/resolve-dir/index.js b/node_modules/resolve-dir/index.js
new file mode 100644
index 000000000..3fe536603
--- /dev/null
+++ b/node_modules/resolve-dir/index.js
@@ -0,0 +1,22 @@
+/*!
+ * resolve-dir <https://github.com/jonschlinkert/resolve-dir>
+ *
+ * Copyright (c) 2015, Jon Schlinkert.
+ * Licensed under the MIT License.
+ */
+
+'use strict';
+
+var path = require('path');
+var expand = require('expand-tilde');
+var gm = require('global-modules');
+
+module.exports = function resolveDir(dir) {
+ if (dir.charAt(0) === '~') {
+ dir = expand(dir);
+ }
+ if (dir.charAt(0) === '@') {
+ dir = path.join(gm, dir.slice(1));
+ }
+ return dir;
+};
diff --git a/node_modules/resolve-dir/package.json b/node_modules/resolve-dir/package.json
new file mode 100644
index 000000000..c60e16fd9
--- /dev/null
+++ b/node_modules/resolve-dir/package.json
@@ -0,0 +1,140 @@
+{
+ "_args": [
+ [
+ {
+ "raw": "resolve-dir@^0.1.0",
+ "scope": null,
+ "escapedName": "resolve-dir",
+ "name": "resolve-dir",
+ "rawSpec": "^0.1.0",
+ "spec": ">=0.1.0 <0.2.0",
+ "type": "range"
+ },
+ "/home/dold/repos/taler/wallet-webex/node_modules/findup-sync"
+ ]
+ ],
+ "_from": "resolve-dir@>=0.1.0 <0.2.0",
+ "_id": "resolve-dir@0.1.1",
+ "_inCache": true,
+ "_location": "/resolve-dir",
+ "_nodeVersion": "6.3.0",
+ "_npmOperationalInternal": {
+ "host": "packages-16-east.internal.npmjs.com",
+ "tmp": "tmp/resolve-dir-0.1.1.tgz_1469811619883_0.7320640422403812"
+ },
+ "_npmUser": {
+ "name": "jonschlinkert",
+ "email": "github@sellside.com"
+ },
+ "_npmVersion": "3.10.3",
+ "_phantomChildren": {},
+ "_requested": {
+ "raw": "resolve-dir@^0.1.0",
+ "scope": null,
+ "escapedName": "resolve-dir",
+ "name": "resolve-dir",
+ "rawSpec": "^0.1.0",
+ "spec": ">=0.1.0 <0.2.0",
+ "type": "range"
+ },
+ "_requiredBy": [
+ "/findup-sync"
+ ],
+ "_resolved": "https://registry.npmjs.org/resolve-dir/-/resolve-dir-0.1.1.tgz",
+ "_shasum": "b219259a5602fac5c5c496ad894a6e8cc430261e",
+ "_shrinkwrap": null,
+ "_spec": "resolve-dir@^0.1.0",
+ "_where": "/home/dold/repos/taler/wallet-webex/node_modules/findup-sync",
+ "author": {
+ "name": "Jon Schlinkert",
+ "url": "https://github.com/jonschlinkert"
+ },
+ "bugs": {
+ "url": "https://github.com/jonschlinkert/resolve-dir/issues"
+ },
+ "dependencies": {
+ "expand-tilde": "^1.2.2",
+ "global-modules": "^0.2.3"
+ },
+ "description": "Resolve a directory that is either local, global or in the user's home directory.",
+ "devDependencies": {
+ "gulp-format-md": "^0.1.9",
+ "mocha": "^2.5.3"
+ },
+ "directories": {},
+ "dist": {
+ "shasum": "b219259a5602fac5c5c496ad894a6e8cc430261e",
+ "tarball": "https://registry.npmjs.org/resolve-dir/-/resolve-dir-0.1.1.tgz"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ },
+ "files": [
+ "index.js",
+ "LICENSE",
+ "README.md"
+ ],
+ "gitHead": "a9ba6b37227d5b708c3606bc97ff62b1a679ef56",
+ "homepage": "https://github.com/jonschlinkert/resolve-dir",
+ "keywords": [
+ "dir",
+ "directory",
+ "expansion",
+ "file",
+ "filepath",
+ "fp",
+ "global",
+ "home",
+ "modules",
+ "npm",
+ "path",
+ "resolve",
+ "tilde",
+ "user",
+ "user-home",
+ "userhome"
+ ],
+ "license": "MIT",
+ "main": "index.js",
+ "maintainers": [
+ {
+ "name": "jonschlinkert",
+ "email": "github@sellside.com"
+ }
+ ],
+ "name": "resolve-dir",
+ "optionalDependencies": {},
+ "readme": "ERROR: No README data found!",
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/jonschlinkert/resolve-dir.git"
+ },
+ "scripts": {
+ "test": "mocha"
+ },
+ "verb": {
+ "toc": false,
+ "layout": "default",
+ "tasks": [
+ "readme"
+ ],
+ "plugins": [
+ "gulp-format-md"
+ ],
+ "related": {
+ "list": [
+ "findup-sync",
+ "expand-tilde",
+ "resolve-modules"
+ ]
+ },
+ "reflinks": [
+ "verb",
+ "verb-generate-readme"
+ ],
+ "lint": {
+ "reflinks": true
+ }
+ },
+ "version": "0.1.1"
+}