feat: docker compose maybe
This commit is contained in:
10
node_modules/min-indent/index.js
generated
vendored
Normal file
10
node_modules/min-indent/index.js
generated
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
'use strict';
|
||||
module.exports = string => {
|
||||
const match = string.match(/^[ \t]*(?=\S)/gm);
|
||||
|
||||
if (!match) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
return match.reduce((r, a) => Math.min(r, a.length), Infinity);
|
||||
};
|
22
node_modules/min-indent/license
generated
vendored
Normal file
22
node_modules/min-indent/license
generated
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com), James Kyle <me@thejameskyle.com> (thejameskyle.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.
|
38
node_modules/min-indent/package.json
generated
vendored
Normal file
38
node_modules/min-indent/package.json
generated
vendored
Normal file
@ -0,0 +1,38 @@
|
||||
{
|
||||
"name": "min-indent",
|
||||
"version": "1.0.1",
|
||||
"description": "Get the shortest leading whitespace from lines in a string",
|
||||
"main": "index.js",
|
||||
"license": "MIT",
|
||||
"repository": "https://github.com/thejameskyle/min-indent",
|
||||
"author": {
|
||||
"name": "James Kyle",
|
||||
"email": "me@thejameskyle.com",
|
||||
"url": "thejameskyle.com"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=4"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "xo && ava"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"keywords": [
|
||||
"indent",
|
||||
"indentation",
|
||||
"normalize",
|
||||
"whitespace",
|
||||
"space",
|
||||
"tab",
|
||||
"string",
|
||||
"str",
|
||||
"min",
|
||||
"minimum"
|
||||
],
|
||||
"devDependencies": {
|
||||
"ava": "*",
|
||||
"xo": "*"
|
||||
}
|
||||
}
|
41
node_modules/min-indent/readme.md
generated
vendored
Normal file
41
node_modules/min-indent/readme.md
generated
vendored
Normal file
@ -0,0 +1,41 @@
|
||||
# min-indent [](https://travis-ci.org/thejameskyle/min-indent)
|
||||
|
||||
> Get the shortest leading whitespace from lines in a string
|
||||
|
||||
The line with the least number of leading whitespace, ignoring empty lines, determines the number.
|
||||
|
||||
Useful for removing redundant indentation.
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install --save min-indent
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
const minIndent = require('min-indent');
|
||||
|
||||
const str = '\tunicorn\n\t\tcake';
|
||||
/*
|
||||
unicorn
|
||||
cake
|
||||
*/
|
||||
|
||||
minIndent(str); // 1
|
||||
```
|
||||
|
||||
|
||||
## Related
|
||||
|
||||
- [strip-indent](https://github.com/sindresorhus/strip-indent) - Strip leading whitespace from each line in a string
|
||||
- [strip-indent-cli](https://github.com/sindresorhus/strip-indent-cli) - CLI for this module
|
||||
- [indent-string](https://github.com/sindresorhus/indent-string) - Indent each line in a string
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [James Kyle](https://thejameskyle.com)
|
Reference in New Issue
Block a user