summaryrefslogtreecommitdiffstats
path: root/node_modules/file-uri-to-path
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/file-uri-to-path
parent1870f3fdf43707a15fda0f609a021f516f45eb63 (diff)
downloadwebsite_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.tar.gz
website_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.tar.bz2
website_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.zip
rm node_modules
Diffstat (limited to 'node_modules/file-uri-to-path')
-rw-r--r--node_modules/file-uri-to-path/.npmignore1
-rw-r--r--node_modules/file-uri-to-path/.travis.yml30
-rw-r--r--node_modules/file-uri-to-path/History.md21
-rw-r--r--node_modules/file-uri-to-path/LICENSE20
-rw-r--r--node_modules/file-uri-to-path/README.md74
-rw-r--r--node_modules/file-uri-to-path/index.d.ts2
-rw-r--r--node_modules/file-uri-to-path/index.js66
-rw-r--r--node_modules/file-uri-to-path/package.json61
-rw-r--r--node_modules/file-uri-to-path/test/test.js24
-rw-r--r--node_modules/file-uri-to-path/test/tests.json13
10 files changed, 0 insertions, 312 deletions
diff --git a/node_modules/file-uri-to-path/.npmignore b/node_modules/file-uri-to-path/.npmignore
deleted file mode 100644
index 07e6e47..0000000
--- a/node_modules/file-uri-to-path/.npmignore
+++ /dev/null
@@ -1 +0,0 @@
-/node_modules
diff --git a/node_modules/file-uri-to-path/.travis.yml b/node_modules/file-uri-to-path/.travis.yml
deleted file mode 100644
index 016bb6e..0000000
--- a/node_modules/file-uri-to-path/.travis.yml
+++ /dev/null
@@ -1,30 +0,0 @@
-sudo: false
-
-language: node_js
-
-node_js:
- - "0.8"
- - "0.10"
- - "0.12"
- - "1"
- - "2"
- - "3"
- - "4"
- - "5"
- - "6"
- - "7"
- - "8"
-
-install:
- - PATH="`npm bin`:`npm bin -g`:$PATH"
- # Node 0.8 comes with a too obsolete npm
- - if [[ "`node --version`" =~ ^v0\.8\. ]]; then npm install -g npm@1.4.28 ; fi
- # Install dependencies and build
- - npm install
-
-script:
- # Output useful info for debugging
- - node --version
- - npm --version
- # Run tests
- - npm test
diff --git a/node_modules/file-uri-to-path/History.md b/node_modules/file-uri-to-path/History.md
deleted file mode 100644
index c8682be..0000000
--- a/node_modules/file-uri-to-path/History.md
+++ /dev/null
@@ -1,21 +0,0 @@
-
-1.0.0 / 2017-07-06
-==================
-
- * update "mocha" to v3
- * fixed unicode URI decoding (#6)
- * add typings for Typescript
- * README: use SVG Travis-CI badge
- * add LICENSE file (MIT)
- * add .travis.yml file (testing Node.js 0.8 through 8 currently)
- * add README.md file
-
-0.0.2 / 2014-01-27
-==================
-
- * index: invert the path separators on Windows
-
-0.0.1 / 2014-01-27
-==================
-
- * initial commit
diff --git a/node_modules/file-uri-to-path/LICENSE b/node_modules/file-uri-to-path/LICENSE
deleted file mode 100644
index e1af783..0000000
--- a/node_modules/file-uri-to-path/LICENSE
+++ /dev/null
@@ -1,20 +0,0 @@
-Copyright (c) 2014 Nathan Rajlich <nathan@tootallnate.net>
-
-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/file-uri-to-path/README.md b/node_modules/file-uri-to-path/README.md
deleted file mode 100644
index ab30be8..0000000
--- a/node_modules/file-uri-to-path/README.md
+++ /dev/null
@@ -1,74 +0,0 @@
-file-uri-to-path
-================
-### Convert a `file:` URI to a file path
-[![Build Status](https://travis-ci.org/TooTallNate/file-uri-to-path.svg?branch=master)](https://travis-ci.org/TooTallNate/file-uri-to-path)
-
-Accepts a `file:` URI and returns a regular file path suitable for use with the
-`fs` module functions.
-
-
-Installation
-------------
-
-Install with `npm`:
-
-``` bash
-$ npm install file-uri-to-path
-```
-
-
-Example
--------
-
-``` js
-var uri2path = require('file-uri-to-path');
-
-uri2path('file://localhost/c|/WINDOWS/clock.avi');
-// "c:\\WINDOWS\\clock.avi"
-
-uri2path('file:///c|/WINDOWS/clock.avi');
-// "c:\\WINDOWS\\clock.avi"
-
-uri2path('file://localhost/c:/WINDOWS/clock.avi');
-// "c:\\WINDOWS\\clock.avi"
-
-uri2path('file://hostname/path/to/the%20file.txt');
-// "\\\\hostname\\path\\to\\the file.txt"
-
-uri2path('file:///c:/path/to/the%20file.txt');
-// "c:\\path\\to\\the file.txt"
-```
-
-
-API
----
-
-### fileUriToPath(String uri) → String
-
-
-
-License
--------
-
-(The MIT License)
-
-Copyright (c) 2014 Nathan Rajlich &lt;nathan@tootallnate.net&gt;
-
-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/file-uri-to-path/index.d.ts b/node_modules/file-uri-to-path/index.d.ts
deleted file mode 100644
index 99dc3f9..0000000
--- a/node_modules/file-uri-to-path/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-declare function fileUriToPath(uri: string): string;
-export = fileUriToPath;
diff --git a/node_modules/file-uri-to-path/index.js b/node_modules/file-uri-to-path/index.js
deleted file mode 100644
index 48cb280..0000000
--- a/node_modules/file-uri-to-path/index.js
+++ /dev/null
@@ -1,66 +0,0 @@
-
-/**
- * Module dependencies.
- */
-
-var sep = require('path').sep || '/';
-
-/**
- * Module exports.
- */
-
-module.exports = fileUriToPath;
-
-/**
- * File URI to Path function.
- *
- * @param {String} uri
- * @return {String} path
- * @api public
- */
-
-function fileUriToPath (uri) {
- if ('string' != typeof uri ||
- uri.length <= 7 ||
- 'file://' != uri.substring(0, 7)) {
- throw new TypeError('must pass in a file:// URI to convert to a file path');
- }
-
- var rest = decodeURI(uri.substring(7));
- var firstSlash = rest.indexOf('/');
- var host = rest.substring(0, firstSlash);
- var path = rest.substring(firstSlash + 1);
-
- // 2. Scheme Definition
- // As a special case, <host> can be the string "localhost" or the empty
- // string; this is interpreted as "the machine from which the URL is
- // being interpreted".
- if ('localhost' == host) host = '';
-
- if (host) {
- host = sep + sep + host;
- }
-
- // 3.2 Drives, drive letters, mount points, file system root
- // Drive letters are mapped into the top of a file URI in various ways,
- // depending on the implementation; some applications substitute
- // vertical bar ("|") for the colon after the drive letter, yielding
- // "file:///c|/tmp/test.txt". In some cases, the colon is left
- // unchanged, as in "file:///c:/tmp/test.txt". In other cases, the
- // colon is simply omitted, as in "file:///c/tmp/test.txt".
- path = path.replace(/^(.+)\|/, '$1:');
-
- // for Windows, we need to invert the path separators from what a URI uses
- if (sep == '\\') {
- path = path.replace(/\//g, '\\');
- }
-
- if (/^.+\:/.test(path)) {
- // has Windows drive at beginning of path
- } else {
- // unix path…
- path = sep + path;
- }
-
- return host + path;
-}
diff --git a/node_modules/file-uri-to-path/package.json b/node_modules/file-uri-to-path/package.json
deleted file mode 100644
index 73de218..0000000
--- a/node_modules/file-uri-to-path/package.json
+++ /dev/null
@@ -1,61 +0,0 @@
-{
- "_from": "file-uri-to-path@1.0.0",
- "_id": "file-uri-to-path@1.0.0",
- "_inBundle": false,
- "_integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==",
- "_location": "/file-uri-to-path",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "file-uri-to-path@1.0.0",
- "name": "file-uri-to-path",
- "escapedName": "file-uri-to-path",
- "rawSpec": "1.0.0",
- "saveSpec": null,
- "fetchSpec": "1.0.0"
- },
- "_requiredBy": [
- "/bindings"
- ],
- "_resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz",
- "_shasum": "553a7b8446ff6f684359c445f1e37a05dacc33dd",
- "_spec": "file-uri-to-path@1.0.0",
- "_where": "/home/pruss/Dev/3-minute-website/node_modules/bindings",
- "author": {
- "name": "Nathan Rajlich",
- "email": "nathan@tootallnate.net",
- "url": "http://n8.io/"
- },
- "bugs": {
- "url": "https://github.com/TooTallNate/file-uri-to-path/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "Convert a file: URI to a file path",
- "devDependencies": {
- "mocha": "3"
- },
- "directories": {
- "test": "test"
- },
- "homepage": "https://github.com/TooTallNate/file-uri-to-path",
- "keywords": [
- "file",
- "uri",
- "convert",
- "path"
- ],
- "license": "MIT",
- "main": "index.js",
- "name": "file-uri-to-path",
- "repository": {
- "type": "git",
- "url": "git://github.com/TooTallNate/file-uri-to-path.git"
- },
- "scripts": {
- "test": "mocha --reporter spec"
- },
- "types": "index.d.ts",
- "version": "1.0.0"
-}
diff --git a/node_modules/file-uri-to-path/test/test.js b/node_modules/file-uri-to-path/test/test.js
deleted file mode 100644
index 79305dc..0000000
--- a/node_modules/file-uri-to-path/test/test.js
+++ /dev/null
@@ -1,24 +0,0 @@
-
-var sep = require('path').sep || '/';
-var assert = require('assert');
-var uri2path = require('../');
-var tests = require('./tests.json');
-
-describe('file-uri-to-path', function () {
-
- Object.keys(tests).forEach(function (uri) {
-
- // the test cases were generated from Windows' PathCreateFromUrlA() function.
- // On Unix, we have to replace the path separator with the Unix one instead of
- // the Windows one.
- var expected = tests[uri].replace(/\\/g, sep);
-
- it('should convert ' + JSON.stringify(uri) + ' to ' + JSON.stringify(expected),
- function () {
- var actual = uri2path(uri);
- assert.equal(actual, expected);
- });
-
- });
-
-});
diff --git a/node_modules/file-uri-to-path/test/tests.json b/node_modules/file-uri-to-path/test/tests.json
deleted file mode 100644
index b935a63..0000000
--- a/node_modules/file-uri-to-path/test/tests.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "file://host/path": "\\\\host\\path",
- "file://localhost/etc/fstab": "\\etc\\fstab",
- "file:///etc/fstab": "\\etc\\fstab",
- "file:///c:/WINDOWS/clock.avi": "c:\\WINDOWS\\clock.avi",
- "file://localhost/c|/WINDOWS/clock.avi": "c:\\WINDOWS\\clock.avi",
- "file:///c|/WINDOWS/clock.avi": "c:\\WINDOWS\\clock.avi",
- "file://localhost/c:/WINDOWS/clock.avi": "c:\\WINDOWS\\clock.avi",
- "file://hostname/path/to/the%20file.txt": "\\\\hostname\\path\\to\\the file.txt",
- "file:///c:/path/to/the%20file.txt": "c:\\path\\to\\the file.txt",
- "file:///C:/Documents%20and%20Settings/davris/FileSchemeURIs.doc": "C:\\Documents and Settings\\davris\\FileSchemeURIs.doc",
- "file:///C:/caf%C3%A9/%C3%A5r/d%C3%BCnn/%E7%89%9B%E9%93%83/Ph%E1%BB%9F/%F0%9F%98%B5.exe": "C:\\café\\år\\dünn\\牛铃\\Phở\\😵.exe"
-}