mirror of
https://github.com/xfarrow/blink
synced 2025-06-27 09:03:02 +02:00
Change endpoint from persons to people
This commit is contained in:
14
backend/apis/nodejs/node_modules/tildify/index.d.ts
generated
vendored
Normal file
14
backend/apis/nodejs/node_modules/tildify/index.d.ts
generated
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
/**
|
||||
Convert an absolute path to a tilde path: `/Users/sindresorhus/dev` → `~/dev`.
|
||||
|
||||
@example
|
||||
```
|
||||
import tildify = require('tildify');
|
||||
|
||||
tildify('/Users/sindresorhus/dev');
|
||||
//=> '~/dev'
|
||||
```
|
||||
*/
|
||||
declare function tildify(absolutePath: string): string;
|
||||
|
||||
export = tildify;
|
13
backend/apis/nodejs/node_modules/tildify/index.js
generated
vendored
Normal file
13
backend/apis/nodejs/node_modules/tildify/index.js
generated
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
'use strict';
|
||||
const path = require('path');
|
||||
const os = require('os');
|
||||
|
||||
const homeDirectory = os.homedir();
|
||||
|
||||
module.exports = absolutePath => {
|
||||
const normalizedPath = path.normalize(absolutePath) + path.sep;
|
||||
|
||||
return (normalizedPath.indexOf(homeDirectory) === 0 ?
|
||||
normalizedPath.replace(homeDirectory + path.sep, `~${path.sep}`) :
|
||||
normalizedPath).slice(0, -1);
|
||||
};
|
9
backend/apis/nodejs/node_modules/tildify/license
generated
vendored
Normal file
9
backend/apis/nodejs/node_modules/tildify/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.
|
40
backend/apis/nodejs/node_modules/tildify/package.json
generated
vendored
Normal file
40
backend/apis/nodejs/node_modules/tildify/package.json
generated
vendored
Normal file
@ -0,0 +1,40 @@
|
||||
{
|
||||
"name": "tildify",
|
||||
"version": "2.0.0",
|
||||
"description": "Convert an absolute path to a tilde path: `/Users/sindresorhus/dev` → `~/dev`",
|
||||
"license": "MIT",
|
||||
"repository": "sindresorhus/tildify",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"url": "sindresorhus.com"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=8"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "xo && ava && tsd"
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
"index.d.ts"
|
||||
],
|
||||
"keywords": [
|
||||
"unexpand",
|
||||
"homedir",
|
||||
"tilde",
|
||||
"tildify",
|
||||
"collapse",
|
||||
"path",
|
||||
"home",
|
||||
"directory",
|
||||
"user",
|
||||
"expand",
|
||||
"convert"
|
||||
],
|
||||
"devDependencies": {
|
||||
"ava": "^1.4.1",
|
||||
"tsd": "^0.7.2",
|
||||
"xo": "^0.24.0"
|
||||
}
|
||||
}
|
30
backend/apis/nodejs/node_modules/tildify/readme.md
generated
vendored
Normal file
30
backend/apis/nodejs/node_modules/tildify/readme.md
generated
vendored
Normal file
@ -0,0 +1,30 @@
|
||||
# tildify [](https://travis-ci.org/sindresorhus/tildify)
|
||||
|
||||
> Convert an absolute path to a tilde path: `/Users/sindresorhus/dev` → `~/dev`
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install tildify
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
const tildify = require('tildify');
|
||||
|
||||
tildify('/Users/sindresorhus/dev');
|
||||
//=> '~/dev'
|
||||
```
|
||||
|
||||
|
||||
## Related
|
||||
|
||||
See [untildify](https://github.com/sindresorhus/untildify) for the inverse.
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Sindre Sorhus](https://sindresorhus.com)
|
Reference in New Issue
Block a user