aboutsummaryrefslogtreecommitdiff
path: root/node_modules/redent
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-10-10 03:43:44 +0200
committerFlorian Dold <florian.dold@gmail.com>2016-10-10 03:43:44 +0200
commitabd94a7f5a50f43c797a11b53549ae48fff667c3 (patch)
treeab8ed457f65cdd72e13e0571d2975729428f1551 /node_modules/redent
parenta0247c6a3fd6a09a41a7e35a3441324c4dcb58be (diff)
downloadwallet-core-abd94a7f5a50f43c797a11b53549ae48fff667c3.tar.xz
add node_modules to address #4364
Diffstat (limited to 'node_modules/redent')
-rw-r--r--node_modules/redent/index.js7
-rw-r--r--node_modules/redent/license21
-rw-r--r--node_modules/redent/package.json106
-rw-r--r--node_modules/redent/readme.md48
4 files changed, 182 insertions, 0 deletions
diff --git a/node_modules/redent/index.js b/node_modules/redent/index.js
new file mode 100644
index 000000000..2b9202052
--- /dev/null
+++ b/node_modules/redent/index.js
@@ -0,0 +1,7 @@
+'use strict';
+var stripIndent = require('strip-indent');
+var indentString = require('indent-string');
+
+module.exports = function (str, count, indent) {
+ return indentString(stripIndent(str), indent || ' ', count || 0);
+};
diff --git a/node_modules/redent/license b/node_modules/redent/license
new file mode 100644
index 000000000..654d0bfe9
--- /dev/null
+++ b/node_modules/redent/license
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+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/redent/package.json b/node_modules/redent/package.json
new file mode 100644
index 000000000..d53535487
--- /dev/null
+++ b/node_modules/redent/package.json
@@ -0,0 +1,106 @@
+{
+ "_args": [
+ [
+ {
+ "raw": "redent@^1.0.0",
+ "scope": null,
+ "escapedName": "redent",
+ "name": "redent",
+ "rawSpec": "^1.0.0",
+ "spec": ">=1.0.0 <2.0.0",
+ "type": "range"
+ },
+ "/home/dold/repos/taler/wallet-webex/node_modules/meow"
+ ]
+ ],
+ "_from": "redent@>=1.0.0 <2.0.0",
+ "_id": "redent@1.0.0",
+ "_inCache": true,
+ "_location": "/redent",
+ "_nodeVersion": "4.1.1",
+ "_npmUser": {
+ "name": "sindresorhus",
+ "email": "sindresorhus@gmail.com"
+ },
+ "_npmVersion": "2.14.4",
+ "_phantomChildren": {},
+ "_requested": {
+ "raw": "redent@^1.0.0",
+ "scope": null,
+ "escapedName": "redent",
+ "name": "redent",
+ "rawSpec": "^1.0.0",
+ "spec": ">=1.0.0 <2.0.0",
+ "type": "range"
+ },
+ "_requiredBy": [
+ "/meow"
+ ],
+ "_resolved": "https://registry.npmjs.org/redent/-/redent-1.0.0.tgz",
+ "_shasum": "cf916ab1fd5f1f16dfb20822dd6ec7f730c2afde",
+ "_shrinkwrap": null,
+ "_spec": "redent@^1.0.0",
+ "_where": "/home/dold/repos/taler/wallet-webex/node_modules/meow",
+ "author": {
+ "name": "Sindre Sorhus",
+ "email": "sindresorhus@gmail.com",
+ "url": "sindresorhus.com"
+ },
+ "bugs": {
+ "url": "https://github.com/sindresorhus/redent/issues"
+ },
+ "dependencies": {
+ "indent-string": "^2.1.0",
+ "strip-indent": "^1.0.1"
+ },
+ "description": "Strip redundant indentation and indent the string",
+ "devDependencies": {
+ "ava": "*",
+ "xo": "*"
+ },
+ "directories": {},
+ "dist": {
+ "shasum": "cf916ab1fd5f1f16dfb20822dd6ec7f730c2afde",
+ "tarball": "https://registry.npmjs.org/redent/-/redent-1.0.0.tgz"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ },
+ "files": [
+ "index.js"
+ ],
+ "gitHead": "97d9db1dbd5894fe1b14e01040da283b8d53409d",
+ "homepage": "https://github.com/sindresorhus/redent",
+ "keywords": [
+ "string",
+ "str",
+ "strip",
+ "trim",
+ "indent",
+ "indentation",
+ "add",
+ "reindent",
+ "normalize",
+ "remove",
+ "whitespace",
+ "space"
+ ],
+ "license": "MIT",
+ "maintainers": [
+ {
+ "name": "sindresorhus",
+ "email": "sindresorhus@gmail.com"
+ }
+ ],
+ "name": "redent",
+ "optionalDependencies": {},
+ "readme": "ERROR: No README data found!",
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/sindresorhus/redent.git"
+ },
+ "scripts": {
+ "test": "xo && ava"
+ },
+ "version": "1.0.0"
+}
diff --git a/node_modules/redent/readme.md b/node_modules/redent/readme.md
new file mode 100644
index 000000000..8e7a80763
--- /dev/null
+++ b/node_modules/redent/readme.md
@@ -0,0 +1,48 @@
+# redent [![Build Status](https://travis-ci.org/sindresorhus/redent.svg?branch=master)](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 --save redent
+```
+
+
+## Usage
+
+```js
+const redent = require('redent');
+
+redent('\n foo\n bar\n', 1);
+//=> '\n foo\n bar\n'
+```
+
+
+## API
+
+### redent(input, [count], [indent])
+
+#### input
+
+Type: `string`
+
+#### count
+
+Type: `number`
+Default: `0`
+
+How many times you want `indent` repeated.
+
+#### indent
+
+Type: `string`
+Default: `' '`
+
+The string to use for the indent.
+
+
+## License
+
+MIT © [Sindre Sorhus](http://sindresorhus.com)