summaryrefslogtreecommitdiffstats
path: root/node_modules/path-exists
diff options
context:
space:
mode:
authorGravatar Piotr Russ <mail@pruss.it> 2020-11-18 23:26:45 +0100
committerGravatar Piotr Russ <mail@pruss.it> 2020-11-18 23:26:45 +0100
commit81ddf9b700bc48a1f8e472209f080f9c1d9a9b09 (patch)
tree8b959d50c5a614cbf9fcb346ed556140374d4b6d /node_modules/path-exists
parent1870f3fdf43707a15fda0f609a021f516f45eb63 (diff)
downloadwebsite_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.tar.gz
website_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.tar.bz2
website_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.zip
rm node_modules
Diffstat (limited to 'node_modules/path-exists')
-rw-r--r--node_modules/path-exists/index.js17
-rw-r--r--node_modules/path-exists/license21
-rw-r--r--node_modules/path-exists/package.json75
-rw-r--r--node_modules/path-exists/readme.md50
4 files changed, 0 insertions, 163 deletions
diff --git a/node_modules/path-exists/index.js b/node_modules/path-exists/index.js
deleted file mode 100644
index 16ae60a..0000000
--- a/node_modules/path-exists/index.js
+++ /dev/null
@@ -1,17 +0,0 @@
-'use strict';
-const fs = require('fs');
-
-module.exports = fp => new Promise(resolve => {
- fs.access(fp, err => {
- resolve(!err);
- });
-});
-
-module.exports.sync = fp => {
- try {
- fs.accessSync(fp);
- return true;
- } catch (err) {
- return false;
- }
-};
diff --git a/node_modules/path-exists/license b/node_modules/path-exists/license
deleted file mode 100644
index 654d0bf..0000000
--- a/node_modules/path-exists/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-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-exists/package.json b/node_modules/path-exists/package.json
deleted file mode 100644
index 22fdeb8..0000000
--- a/node_modules/path-exists/package.json
+++ /dev/null
@@ -1,75 +0,0 @@
-{
- "_from": "path-exists@^3.0.0",
- "_id": "path-exists@3.0.0",
- "_inBundle": false,
- "_integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=",
- "_location": "/path-exists",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "path-exists@^3.0.0",
- "name": "path-exists",
- "escapedName": "path-exists",
- "rawSpec": "^3.0.0",
- "saveSpec": null,
- "fetchSpec": "^3.0.0"
- },
- "_requiredBy": [
- "/import-local/locate-path",
- "/locate-path",
- "/terser-webpack-plugin/locate-path",
- "/yargs/locate-path"
- ],
- "_resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz",
- "_shasum": "ce0ebeaa5f78cb18925ea7d810d7b59b010fd515",
- "_spec": "path-exists@^3.0.0",
- "_where": "/home/pruss/Dev/3-minute-website/node_modules/locate-path",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/path-exists/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "Check if a path exists",
- "devDependencies": {
- "ava": "*",
- "xo": "*"
- },
- "engines": {
- "node": ">=4"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/sindresorhus/path-exists#readme",
- "keywords": [
- "path",
- "exists",
- "exist",
- "file",
- "filepath",
- "fs",
- "filesystem",
- "file-system",
- "access",
- "stat"
- ],
- "license": "MIT",
- "name": "path-exists",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/path-exists.git"
- },
- "scripts": {
- "test": "xo && ava"
- },
- "version": "3.0.0",
- "xo": {
- "esnext": true
- }
-}
diff --git a/node_modules/path-exists/readme.md b/node_modules/path-exists/readme.md
deleted file mode 100644
index 1b65fa7..0000000
--- a/node_modules/path-exists/readme.md
+++ /dev/null
@@ -1,50 +0,0 @@
-# path-exists [![Build Status](https://travis-ci.org/sindresorhus/path-exists.svg?branch=master)](https://travis-ci.org/sindresorhus/path-exists)
-
-> Check if a path exists
-
-Because [`fs.exists()`](https://nodejs.org/api/fs.html#fs_fs_exists_path_callback) is being [deprecated](https://github.com/iojs/io.js/issues/103), but there's still a genuine use-case of being able to check if a path exists for other purposes than doing IO with it.
-
-Never use this before handling a file though:
-
-> In particular, checking if a file exists before opening it is an anti-pattern that leaves you vulnerable to race conditions: another process may remove the file between the calls to `fs.exists()` and `fs.open()`. Just open the file and handle the error when it's not there.
-
-
-## Install
-
-```
-$ npm install --save path-exists
-```
-
-
-## Usage
-
-```js
-// foo.js
-const pathExists = require('path-exists');
-
-pathExists('foo.js').then(exists => {
- console.log(exists);
- //=> true
-});
-```
-
-
-## API
-
-### pathExists(path)
-
-Returns a promise for a boolean of whether the path exists.
-
-### pathExists.sync(path)
-
-Returns a boolean of whether the path exists.
-
-
-## Related
-
-- [path-exists-cli](https://github.com/sindresorhus/path-exists-cli) - CLI for this module
-
-
-## License
-
-MIT © [Sindre Sorhus](https://sindresorhus.com)