Deployed the page to Github Pages.
This commit is contained in:
parent
1d79754e93
commit
2c89899458
62797 changed files with 6551425 additions and 15279 deletions
14
node_modules/untildify/index.d.ts
generated
vendored
Normal file
14
node_modules/untildify/index.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,14 @@
|
|||
/**
|
||||
Convert a tilde path to an absolute path: `~/dev` → `/Users/sindresorhus/dev`.
|
||||
|
||||
@example
|
||||
```
|
||||
import untildify = require('untildify');
|
||||
|
||||
untildify('~/dev');
|
||||
//=> '/Users/sindresorhus/dev'
|
||||
```
|
||||
*/
|
||||
declare function untildify(pathWithTilde: string): string;
|
||||
|
||||
export = untildify;
|
12
node_modules/untildify/index.js
generated
vendored
Normal file
12
node_modules/untildify/index.js
generated
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
'use strict';
|
||||
const os = require('os');
|
||||
|
||||
const homeDirectory = os.homedir();
|
||||
|
||||
module.exports = pathWithTilde => {
|
||||
if (typeof pathWithTilde !== 'string') {
|
||||
throw new TypeError(`Expected a string, got ${typeof pathWithTilde}`);
|
||||
}
|
||||
|
||||
return homeDirectory ? pathWithTilde.replace(/^~(?=$|\/|\\)/, homeDirectory) : pathWithTilde;
|
||||
};
|
9
node_modules/untildify/license
generated
vendored
Normal file
9
node_modules/untildify/license
generated
vendored
Normal file
|
@ -0,0 +1,9 @@
|
|||
MIT License
|
||||
|
||||
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.
|
43
node_modules/untildify/package.json
generated
vendored
Normal file
43
node_modules/untildify/package.json
generated
vendored
Normal file
|
@ -0,0 +1,43 @@
|
|||
{
|
||||
"name": "untildify",
|
||||
"version": "4.0.0",
|
||||
"description": "Convert a tilde path to an absolute path: `~/dev` → `/Users/sindresorhus/dev`",
|
||||
"license": "MIT",
|
||||
"repository": "sindresorhus/untildify",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"url": "sindresorhus.com"
|
||||
},
|
||||
"contributors": [
|
||||
"silverwind <me@silverwind.io> (https://silverwind.io)"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=8"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "xo && ava && tsd"
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
"index.d.ts"
|
||||
],
|
||||
"keywords": [
|
||||
"tilde",
|
||||
"expansion",
|
||||
"expand",
|
||||
"untildify",
|
||||
"path",
|
||||
"home",
|
||||
"directory",
|
||||
"user",
|
||||
"shell",
|
||||
"bash"
|
||||
],
|
||||
"devDependencies": {
|
||||
"ava": "^1.4.1",
|
||||
"rewire": "^4.0.1",
|
||||
"tsd": "^0.7.2",
|
||||
"xo": "^0.24.0"
|
||||
}
|
||||
}
|
30
node_modules/untildify/readme.md
generated
vendored
Normal file
30
node_modules/untildify/readme.md
generated
vendored
Normal file
|
@ -0,0 +1,30 @@
|
|||
# untildify [](https://travis-ci.org/sindresorhus/untildify)
|
||||
|
||||
> Convert a tilde path to an absolute path: `~/dev` → `/Users/sindresorhus/dev`
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install untildify
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
const untildify = require('untildify');
|
||||
|
||||
untildify('~/dev');
|
||||
//=> '/Users/sindresorhus/dev'
|
||||
```
|
||||
|
||||
|
||||
## Related
|
||||
|
||||
See [tildify](https://github.com/sindresorhus/tildify) for the inverse.
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Sindre Sorhus](https://sindresorhus.com)
|
Loading…
Add table
Add a link
Reference in a new issue