aboutsummaryrefslogtreecommitdiff
path: root/node_modules/fs-exists-sync
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/fs-exists-sync
parenta0247c6a3fd6a09a41a7e35a3441324c4dcb58be (diff)
downloadwallet-core-abd94a7f5a50f43c797a11b53549ae48fff667c3.tar.xz
add node_modules to address #4364
Diffstat (limited to 'node_modules/fs-exists-sync')
-rw-r--r--node_modules/fs-exists-sync/LICENSE21
-rw-r--r--node_modules/fs-exists-sync/README.md92
-rw-r--r--node_modules/fs-exists-sync/index.js18
-rw-r--r--node_modules/fs-exists-sync/package.json137
4 files changed, 268 insertions, 0 deletions
diff --git a/node_modules/fs-exists-sync/LICENSE b/node_modules/fs-exists-sync/LICENSE
new file mode 100644
index 000000000..e28e60323
--- /dev/null
+++ b/node_modules/fs-exists-sync/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/fs-exists-sync/README.md b/node_modules/fs-exists-sync/README.md
new file mode 100644
index 000000000..60c429c4d
--- /dev/null
+++ b/node_modules/fs-exists-sync/README.md
@@ -0,0 +1,92 @@
+# fs-exists-sync [![NPM version](https://img.shields.io/npm/v/fs-exists-sync.svg?style=flat)](https://www.npmjs.com/package/fs-exists-sync) [![NPM downloads](https://img.shields.io/npm/dm/fs-exists-sync.svg?style=flat)](https://npmjs.org/package/fs-exists-sync) [![Build Status](https://img.shields.io/travis/jonschlinkert/fs-exists-sync.svg?style=flat)](https://travis-ci.org/jonschlinkert/fs-exists-sync)
+
+> Drop-in replacement for `fs.existsSync` with zero dependencies. Other libs I found either have crucial differences from fs.existsSync, or unnecessary dependencies. See README.md for more info.
+
+## Install
+Install with [npm](https://www.npmjs.com/):
+
+```sh
+$ npm install fs-exists-sync --save
+```
+
+## Usage
+
+```js
+var exists = require('fs-exists-sync');
+
+console.log(exists('.'));
+//=> true
+console.log(exists(process.cwd()));
+//=> true
+console.log(exists('README.md'));
+//=> true
+console.log(exists('foo.txt'));
+//=> false
+console.log(exists(''));
+//=> false
+console.log(exists());
+//=> false
+```
+
+## Why another "exists" lib?
+
+I just want a _simple replacement for `fs.existsSync`_. Here is what I found:
+
+- [path-exists][]: Has dependencies to support a promises API
+- [fs-exists][]: async only
+- [file-exists][]: returns `false` if the path exists but is a directory.
+- [exists][]: nothing to do with `fs`.
+
+## API
+
+## 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): Pollyfill for node.js `path.parse`, parses a filepath into an object. | [homepage](https://github.com/jonschlinkert/parse-filepath)
+* [try-open](https://www.npmjs.com/package/try-open): Tries to open a file using fs.openSync (only necessary with sync), fails gracefully if the… [more](https://www.npmjs.com/package/try-open) | [homepage](https://github.com/jonschlinkert/try-open)
+
+## Contributing
+Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/fs-exists-sync/issues/new).
+
+## Building docs
+Generate readme and API documentation with [verb][]:
+
+```sh
+$ npm install verb && npm run docs
+```
+
+Or, if [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/fs-exists-sync/blob/master/LICENSE).
+
+***
+
+_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on April 09, 2016._
+
+[verb]: https://github.com/verbose/verb
+[path-exists]: https://github.com/sindresorhus/path-exists
+[fs-exists]: https://github.com/meryn/fs-exists
+[file-exists]: https://github.com/scottcorgan/file-exists
+[exists]: https://github.com/tjmehta/exists
+
diff --git a/node_modules/fs-exists-sync/index.js b/node_modules/fs-exists-sync/index.js
new file mode 100644
index 000000000..b7f00c7de
--- /dev/null
+++ b/node_modules/fs-exists-sync/index.js
@@ -0,0 +1,18 @@
+/*!
+ * fs-exists-sync (https://github.com/jonschlinkert/fs-exists-sync)
+ *
+ * Copyright (c) 2016, Jon Schlinkert.
+ * Licensed under the MIT License.
+ */
+
+'use strict';
+
+var fs = require('fs');
+
+module.exports = function(filepath) {
+ try {
+ (fs.accessSync || fs.statSync)(filepath);
+ return true;
+ } catch (err) {}
+ return false;
+};
diff --git a/node_modules/fs-exists-sync/package.json b/node_modules/fs-exists-sync/package.json
new file mode 100644
index 000000000..55d000d47
--- /dev/null
+++ b/node_modules/fs-exists-sync/package.json
@@ -0,0 +1,137 @@
+{
+ "_args": [
+ [
+ {
+ "raw": "fs-exists-sync@^0.1.0",
+ "scope": null,
+ "escapedName": "fs-exists-sync",
+ "name": "fs-exists-sync",
+ "rawSpec": "^0.1.0",
+ "spec": ">=0.1.0 <0.2.0",
+ "type": "range"
+ },
+ "/home/dold/repos/taler/wallet-webex/node_modules/detect-file"
+ ]
+ ],
+ "_from": "fs-exists-sync@>=0.1.0 <0.2.0",
+ "_id": "fs-exists-sync@0.1.0",
+ "_inCache": true,
+ "_location": "/fs-exists-sync",
+ "_nodeVersion": "5.5.0",
+ "_npmOperationalInternal": {
+ "host": "packages-16-east.internal.npmjs.com",
+ "tmp": "tmp/fs-exists-sync-0.1.0.tgz_1460202025245_0.6282676137052476"
+ },
+ "_npmUser": {
+ "name": "jonschlinkert",
+ "email": "github@sellside.com"
+ },
+ "_npmVersion": "3.6.0",
+ "_phantomChildren": {},
+ "_requested": {
+ "raw": "fs-exists-sync@^0.1.0",
+ "scope": null,
+ "escapedName": "fs-exists-sync",
+ "name": "fs-exists-sync",
+ "rawSpec": "^0.1.0",
+ "spec": ">=0.1.0 <0.2.0",
+ "type": "range"
+ },
+ "_requiredBy": [
+ "/detect-file"
+ ],
+ "_resolved": "https://registry.npmjs.org/fs-exists-sync/-/fs-exists-sync-0.1.0.tgz",
+ "_shasum": "982d6893af918e72d08dec9e8673ff2b5a8d6add",
+ "_shrinkwrap": null,
+ "_spec": "fs-exists-sync@^0.1.0",
+ "_where": "/home/dold/repos/taler/wallet-webex/node_modules/detect-file",
+ "author": {
+ "name": "Jon Schlinkert",
+ "url": "https://github.com/jonschlinkert"
+ },
+ "bugs": {
+ "url": "https://github.com/jonschlinkert/fs-exists-sync/issues"
+ },
+ "dependencies": {},
+ "description": "Drop-in replacement for `fs.existsSync` with zero dependencies. Other libs I found either have crucial differences from fs.existsSync, or unnecessary dependencies. See README.md for more info.",
+ "devDependencies": {
+ "gulp-format-md": "^0.1.7",
+ "mocha": "^2.4.5"
+ },
+ "directories": {},
+ "dist": {
+ "shasum": "982d6893af918e72d08dec9e8673ff2b5a8d6add",
+ "tarball": "https://registry.npmjs.org/fs-exists-sync/-/fs-exists-sync-0.1.0.tgz"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ },
+ "files": [
+ "index.js"
+ ],
+ "gitHead": "3b44654977775bac2d1151520c9b6257249a6374",
+ "homepage": "https://github.com/jonschlinkert/fs-exists-sync",
+ "keywords": [
+ "access",
+ "check",
+ "exist",
+ "exists",
+ "file",
+ "file-system",
+ "filepath",
+ "filesystem",
+ "fs",
+ "is-file",
+ "isfile",
+ "path",
+ "stat",
+ "sync"
+ ],
+ "license": "MIT",
+ "main": "index.js",
+ "maintainers": [
+ {
+ "name": "jonschlinkert",
+ "email": "github@sellside.com"
+ }
+ ],
+ "name": "fs-exists-sync",
+ "optionalDependencies": {},
+ "readme": "ERROR: No README data found!",
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/jonschlinkert/fs-exists-sync.git"
+ },
+ "scripts": {
+ "test": "mocha"
+ },
+ "verb": {
+ "layout": "default",
+ "plugins": [
+ "gulp-format-md"
+ ],
+ "reflinks": [
+ "verb",
+ "path-exists",
+ "fs-exists",
+ "file-exists",
+ "exists"
+ ],
+ "related": {
+ "list": [
+ "try-open",
+ "parse-filepath",
+ "is-absolute"
+ ]
+ },
+ "run": true,
+ "toc": false,
+ "tasks": [
+ "readme"
+ ],
+ "lint": {
+ "reflinks": true
+ }
+ },
+ "version": "0.1.0"
+}