mirror of
https://github.com/idanoo/GoScrobble
synced 2025-07-01 13:42:20 +00:00
0.2.0 - Mid migration
This commit is contained in:
parent
139e6a915e
commit
7e38fdbd7d
42393 changed files with 5358157 additions and 62 deletions
27
web/node_modules/redent/index.d.ts
generated
vendored
Normal file
27
web/node_modules/redent/index.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,27 @@
|
|||
import {Options as IndentStringOptions} from 'indent-string';
|
||||
|
||||
declare namespace redent {
|
||||
type Options = IndentStringOptions;
|
||||
}
|
||||
|
||||
/**
|
||||
[Strip redundant indentation](https://github.com/sindresorhus/strip-indent) and [indent the string](https://github.com/sindresorhus/indent-string).
|
||||
|
||||
@param string - The string to normalize indentation.
|
||||
@param count - How many times you want `options.indent` repeated. Default: `0`.
|
||||
|
||||
@example
|
||||
```
|
||||
import redent = require('redent');
|
||||
|
||||
redent('\n foo\n bar\n', 1);
|
||||
//=> '\n foo\n bar\n'
|
||||
```
|
||||
*/
|
||||
declare function redent(
|
||||
string: string,
|
||||
count?: number,
|
||||
options?: redent.Options
|
||||
): string;
|
||||
|
||||
export = redent;
|
5
web/node_modules/redent/index.js
generated
vendored
Normal file
5
web/node_modules/redent/index.js
generated
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
'use strict';
|
||||
const stripIndent = require('strip-indent');
|
||||
const indentString = require('indent-string');
|
||||
|
||||
module.exports = (string, count = 0, options) => indentString(stripIndent(string), count, options);
|
9
web/node_modules/redent/license
generated
vendored
Normal file
9
web/node_modules/redent/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.
|
44
web/node_modules/redent/package.json
generated
vendored
Normal file
44
web/node_modules/redent/package.json
generated
vendored
Normal file
|
@ -0,0 +1,44 @@
|
|||
{
|
||||
"name": "redent",
|
||||
"version": "3.0.0",
|
||||
"description": "Strip redundant indentation and indent the string",
|
||||
"license": "MIT",
|
||||
"repository": "sindresorhus/redent",
|
||||
"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": [
|
||||
"string",
|
||||
"strip",
|
||||
"trim",
|
||||
"indent",
|
||||
"indentation",
|
||||
"add",
|
||||
"reindent",
|
||||
"normalize",
|
||||
"remove",
|
||||
"whitespace",
|
||||
"space"
|
||||
],
|
||||
"dependencies": {
|
||||
"indent-string": "^4.0.0",
|
||||
"strip-indent": "^3.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"ava": "^1.4.1",
|
||||
"tsd": "^0.7.2",
|
||||
"xo": "^0.24.0"
|
||||
}
|
||||
}
|
61
web/node_modules/redent/readme.md
generated
vendored
Normal file
61
web/node_modules/redent/readme.md
generated
vendored
Normal file
|
@ -0,0 +1,61 @@
|
|||
# redent [](https://travis-ci.org/sindresorhus/redent)
|
||||
|
||||
> [Strip redundant indentation](https://github.com/sindresorhus/strip-indent) and [indent the string](https://github.com/sindresorhus/indent-string)
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install redent
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
const redent = require('redent');
|
||||
|
||||
redent('\n foo\n bar\n', 1);
|
||||
//=> '\n foo\n bar\n'
|
||||
```
|
||||
|
||||
|
||||
## API
|
||||
|
||||
### redent(string, [count], [options])
|
||||
|
||||
#### string
|
||||
|
||||
Type: `string`
|
||||
|
||||
The string to normalize indentation.
|
||||
|
||||
#### count
|
||||
|
||||
Type: `number`<br>
|
||||
Default: `0`
|
||||
|
||||
How many times you want `options.indent` repeated.
|
||||
|
||||
#### options
|
||||
|
||||
Type: `object`
|
||||
|
||||
##### indent
|
||||
|
||||
Type: `string`<br>
|
||||
Default: `' '`
|
||||
|
||||
The string to use for the indent.
|
||||
|
||||
##### includeEmptyLines
|
||||
|
||||
Type: `boolean`<br>
|
||||
Default: `false`
|
||||
|
||||
Also indent empty lines.
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Sindre Sorhus](https://sindresorhus.com)
|
Loading…
Add table
Add a link
Reference in a new issue