aboutsummaryrefslogtreecommitdiff
path: root/sandbox/testAppNevena/Front/node_modules/indent-string
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/testAppNevena/Front/node_modules/indent-string')
-rw-r--r--sandbox/testAppNevena/Front/node_modules/indent-string/index.d.ts42
-rw-r--r--sandbox/testAppNevena/Front/node_modules/indent-string/index.js35
-rw-r--r--sandbox/testAppNevena/Front/node_modules/indent-string/license9
-rw-r--r--sandbox/testAppNevena/Front/node_modules/indent-string/package.json37
-rw-r--r--sandbox/testAppNevena/Front/node_modules/indent-string/readme.md70
5 files changed, 193 insertions, 0 deletions
diff --git a/sandbox/testAppNevena/Front/node_modules/indent-string/index.d.ts b/sandbox/testAppNevena/Front/node_modules/indent-string/index.d.ts
new file mode 100644
index 00000000..11852311
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/indent-string/index.d.ts
@@ -0,0 +1,42 @@
+declare namespace indentString {
+ interface Options {
+ /**
+ The string to use for the indent.
+
+ @default ' '
+ */
+ readonly indent?: string;
+
+ /**
+ Also indent empty lines.
+
+ @default false
+ */
+ readonly includeEmptyLines?: boolean;
+ }
+}
+
+/**
+Indent each line in a string.
+
+@param string - The string to indent.
+@param count - How many times you want `options.indent` repeated. Default: `1`.
+
+@example
+```
+import indentString = require('indent-string');
+
+indentString('Unicorns\nRainbows', 4);
+//=> ' Unicorns\n Rainbows'
+
+indentString('Unicorns\nRainbows', 4, {indent: '♥'});
+//=> '♥♥♥♥Unicorns\n♥♥♥♥Rainbows'
+```
+*/
+declare function indentString(
+ string: string,
+ count?: number,
+ options?: indentString.Options
+): string;
+
+export = indentString;
diff --git a/sandbox/testAppNevena/Front/node_modules/indent-string/index.js b/sandbox/testAppNevena/Front/node_modules/indent-string/index.js
new file mode 100644
index 00000000..e1ab804f
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/indent-string/index.js
@@ -0,0 +1,35 @@
+'use strict';
+
+module.exports = (string, count = 1, options) => {
+ options = {
+ indent: ' ',
+ includeEmptyLines: false,
+ ...options
+ };
+
+ if (typeof string !== 'string') {
+ throw new TypeError(
+ `Expected \`input\` to be a \`string\`, got \`${typeof string}\``
+ );
+ }
+
+ 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 string;
+ }
+
+ const regex = options.includeEmptyLines ? /^/gm : /^(?!\s*$)/gm;
+
+ return string.replace(regex, options.indent.repeat(count));
+};
diff --git a/sandbox/testAppNevena/Front/node_modules/indent-string/license b/sandbox/testAppNevena/Front/node_modules/indent-string/license
new file mode 100644
index 00000000..e7af2f77
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/indent-string/license
@@ -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.
diff --git a/sandbox/testAppNevena/Front/node_modules/indent-string/package.json b/sandbox/testAppNevena/Front/node_modules/indent-string/package.json
new file mode 100644
index 00000000..497bb83b
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/indent-string/package.json
@@ -0,0 +1,37 @@
+{
+ "name": "indent-string",
+ "version": "4.0.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": ">=8"
+ },
+ "scripts": {
+ "test": "xo && ava && tsd"
+ },
+ "files": [
+ "index.js",
+ "index.d.ts"
+ ],
+ "keywords": [
+ "indent",
+ "string",
+ "pad",
+ "align",
+ "line",
+ "text",
+ "each",
+ "every"
+ ],
+ "devDependencies": {
+ "ava": "^1.4.1",
+ "tsd": "^0.7.2",
+ "xo": "^0.24.0"
+ }
+}
diff --git a/sandbox/testAppNevena/Front/node_modules/indent-string/readme.md b/sandbox/testAppNevena/Front/node_modules/indent-string/readme.md
new file mode 100644
index 00000000..49967de0
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/indent-string/readme.md
@@ -0,0 +1,70 @@
+# 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\n Rainbows'
+
+indentString('Unicorns\nRainbows', 4, {indent: '♥'});
+//=> '♥♥♥♥Unicorns\n♥♥♥♥Rainbows'
+```
+
+
+## API
+
+### indentString(string, [count], [options])
+
+#### string
+
+Type: `string`
+
+The string to indent.
+
+#### count
+
+Type: `number`<br>
+Default: `1`
+
+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.
+
+
+## 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)