aboutsummaryrefslogtreecommitdiff
path: root/node_modules/indent-string
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-03-27 21:01:33 +0100
committerFlorian Dold <florian.dold@gmail.com>2019-03-27 21:01:33 +0100
commitcc97a4dd2a967e1c2273bd5f4c5f49a5bf2e2585 (patch)
tree92c5d88706a6ffc654d1b133618d357890e7096b /node_modules/indent-string
parent3771b4d6b67b34c130f3a9a1a15f42deefdb2eda (diff)
downloadwallet-core-cc97a4dd2a967e1c2273bd5f4c5f49a5bf2e2585.tar.xz
remove node_modules
Diffstat (limited to 'node_modules/indent-string')
-rw-r--r--node_modules/indent-string/index.js27
-rw-r--r--node_modules/indent-string/license9
-rw-r--r--node_modules/indent-string/package.json36
-rw-r--r--node_modules/indent-string/readme.md72
4 files changed, 0 insertions, 144 deletions
diff --git a/node_modules/indent-string/index.js b/node_modules/indent-string/index.js
deleted file mode 100644
index a48199ca5..000000000
--- a/node_modules/indent-string/index.js
+++ /dev/null
@@ -1,27 +0,0 @@
-'use strict';
-module.exports = (str, count, opts) => {
- // Support older versions: use the third parameter as options.indent
- // TODO: Remove the workaround in the next major version
- const options = typeof opts === 'object' ? Object.assign({indent: ' '}, opts) : {indent: opts || ' '};
- count = count === undefined ? 1 : count;
-
- if (typeof str !== 'string') {
- throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof str}\``);
- }
-
- if (typeof count !== 'number') {
- throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof count}\``);
- }
-
- if (typeof options.indent !== 'string') {
- throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof options.indent}\``);
- }
-
- if (count === 0) {
- return str;
- }
-
- const regex = options.includeEmptyLines ? /^/mg : /^(?!\s*$)/mg;
- return str.replace(regex, options.indent.repeat(count));
-}
-;
diff --git a/node_modules/indent-string/license b/node_modules/indent-string/license
deleted file mode 100644
index e7af2f771..000000000
--- a/node_modules/indent-string/license
+++ /dev/null
@@ -1,9 +0,0 @@
-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.
diff --git a/node_modules/indent-string/package.json b/node_modules/indent-string/package.json
deleted file mode 100644
index e2a938b81..000000000
--- a/node_modules/indent-string/package.json
+++ /dev/null
@@ -1,36 +0,0 @@
-{
- "name": "indent-string",
- "version": "3.2.0",
- "description": "Indent each line in a string",
- "license": "MIT",
- "repository": "sindresorhus/indent-string",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "engines": {
- "node": ">=4"
- },
- "scripts": {
- "test": "xo && ava"
- },
- "files": [
- "index.js"
- ],
- "keywords": [
- "indent",
- "string",
- "str",
- "pad",
- "align",
- "line",
- "text",
- "each",
- "every"
- ],
- "devDependencies": {
- "ava": "*",
- "xo": "*"
- }
-}
diff --git a/node_modules/indent-string/readme.md b/node_modules/indent-string/readme.md
deleted file mode 100644
index d2592d73f..000000000
--- a/node_modules/indent-string/readme.md
+++ /dev/null
@@ -1,72 +0,0 @@
-# indent-string [![Build Status](https://travis-ci.org/sindresorhus/indent-string.svg?branch=master)](https://travis-ci.org/sindresorhus/indent-string)
-
-> Indent each line in a string
-
-
-## Install
-
-```
-$ npm install indent-string
-```
-
-
-## Usage
-
-```js
-const indentString = require('indent-string');
-
-indentString('Unicorns\nRainbows', 4);
-//=> ' Unicorns'
-//=> ' Rainbows'
-
-indentString('Unicorns\nRainbows', 4, {indent: '♥'});
-//=> '♥♥♥♥Unicorns'
-//=> '♥♥♥♥Rainbows'
-```
-
-
-## API
-
-### indentString(input, [count], [options])
-
-#### input
-
-Type: `string`
-
-String you want to indent.
-
-#### count
-
-Type: `number`<br>
-Default: `1`
-
-How many times you want `indent` repeated.
-
-#### options
-
-Type: `Object`<br>
-
-##### indent
-
-Type: `string`<br>
-Default: `' '`
-
-String to use for the indent.
-
-##### includeEmptyLines
-
-Type: `boolean`<br>
-Default: `false`
-
-Also indent empty lines.
-
-
-## Related
-
-- [indent-string-cli](https://github.com/sindresorhus/indent-string-cli) - CLI for this module
-- [strip-indent](https://github.com/sindresorhus/strip-indent) - Strip leading whitespace from every line in a string
-
-
-## License
-
-MIT © [Sindre Sorhus](https://sindresorhus.com)