aboutsummaryrefslogtreecommitdiff
path: root/node_modules/trim-newlines
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/trim-newlines
parenta0247c6a3fd6a09a41a7e35a3441324c4dcb58be (diff)
downloadwallet-core-abd94a7f5a50f43c797a11b53549ae48fff667c3.tar.xz
add node_modules to address #4364
Diffstat (limited to 'node_modules/trim-newlines')
-rw-r--r--node_modules/trim-newlines/index.js13
-rw-r--r--node_modules/trim-newlines/license21
-rw-r--r--node_modules/trim-newlines/package.json106
-rw-r--r--node_modules/trim-newlines/readme.md46
4 files changed, 186 insertions, 0 deletions
diff --git a/node_modules/trim-newlines/index.js b/node_modules/trim-newlines/index.js
new file mode 100644
index 000000000..da31efd68
--- /dev/null
+++ b/node_modules/trim-newlines/index.js
@@ -0,0 +1,13 @@
+'use strict';
+
+var fn = module.exports = function (x) {
+ return fn.end(fn.start(x));
+};
+
+fn.start = function (x) {
+ return x.replace(/^[\r\n]+/, '');
+};
+
+fn.end = function (x) {
+ return x.replace(/[\r\n]+$/, '');
+};
diff --git a/node_modules/trim-newlines/license b/node_modules/trim-newlines/license
new file mode 100644
index 000000000..654d0bfe9
--- /dev/null
+++ b/node_modules/trim-newlines/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/trim-newlines/package.json b/node_modules/trim-newlines/package.json
new file mode 100644
index 000000000..d574a95cc
--- /dev/null
+++ b/node_modules/trim-newlines/package.json
@@ -0,0 +1,106 @@
+{
+ "_args": [
+ [
+ {
+ "raw": "trim-newlines@^1.0.0",
+ "scope": null,
+ "escapedName": "trim-newlines",
+ "name": "trim-newlines",
+ "rawSpec": "^1.0.0",
+ "spec": ">=1.0.0 <2.0.0",
+ "type": "range"
+ },
+ "/home/dold/repos/taler/wallet-webex/node_modules/meow"
+ ]
+ ],
+ "_from": "trim-newlines@>=1.0.0 <2.0.0",
+ "_id": "trim-newlines@1.0.0",
+ "_inCache": true,
+ "_location": "/trim-newlines",
+ "_nodeVersion": "4.1.1",
+ "_npmUser": {
+ "name": "sindresorhus",
+ "email": "sindresorhus@gmail.com"
+ },
+ "_npmVersion": "2.14.4",
+ "_phantomChildren": {},
+ "_requested": {
+ "raw": "trim-newlines@^1.0.0",
+ "scope": null,
+ "escapedName": "trim-newlines",
+ "name": "trim-newlines",
+ "rawSpec": "^1.0.0",
+ "spec": ">=1.0.0 <2.0.0",
+ "type": "range"
+ },
+ "_requiredBy": [
+ "/meow"
+ ],
+ "_resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-1.0.0.tgz",
+ "_shasum": "5887966bb582a4503a41eb524f7d35011815a613",
+ "_shrinkwrap": null,
+ "_spec": "trim-newlines@^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/trim-newlines/issues"
+ },
+ "dependencies": {},
+ "description": "Trim newlines from the start and/or end of a string",
+ "devDependencies": {
+ "ava": "*",
+ "xo": "*"
+ },
+ "directories": {},
+ "dist": {
+ "shasum": "5887966bb582a4503a41eb524f7d35011815a613",
+ "tarball": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-1.0.0.tgz"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ },
+ "files": [
+ "index.js"
+ ],
+ "gitHead": "f651a2d4cbf382c2936e6e53edee9316602e4ce7",
+ "homepage": "https://github.com/sindresorhus/trim-newlines",
+ "keywords": [
+ "trim",
+ "newline",
+ "newlines",
+ "linebreak",
+ "lf",
+ "crlf",
+ "left",
+ "right",
+ "start",
+ "end",
+ "string",
+ "str",
+ "remove",
+ "delete",
+ "strip"
+ ],
+ "license": "MIT",
+ "maintainers": [
+ {
+ "name": "sindresorhus",
+ "email": "sindresorhus@gmail.com"
+ }
+ ],
+ "name": "trim-newlines",
+ "optionalDependencies": {},
+ "readme": "ERROR: No README data found!",
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/sindresorhus/trim-newlines.git"
+ },
+ "scripts": {
+ "test": "xo && ava"
+ },
+ "version": "1.0.0"
+}
diff --git a/node_modules/trim-newlines/readme.md b/node_modules/trim-newlines/readme.md
new file mode 100644
index 000000000..fedb3ca20
--- /dev/null
+++ b/node_modules/trim-newlines/readme.md
@@ -0,0 +1,46 @@
+# trim-newlines [![Build Status](https://travis-ci.org/sindresorhus/trim-newlines.svg?branch=master)](https://travis-ci.org/sindresorhus/trim-newlines)
+
+> Trim [newlines](https://en.wikipedia.org/wiki/Newline) from the start and/or end of a string
+
+
+## Install
+
+```
+$ npm install --save trim-newlines
+```
+
+
+## Usage
+
+```js
+var trimNewlines = require('trim-newlines');
+
+trimNewlines('\nunicorn\r\n');
+//=> 'unicorn'
+```
+
+
+## API
+
+### trimNewlines(input)
+
+Trim from the start and end of a string.
+
+### trimNewlines.start(input)
+
+Trim from the start of a string.
+
+### trimNewlines.end(input)
+
+Trim from the end of a string.
+
+
+## Related
+
+- [trim-left](https://github.com/sindresorhus/trim-left) - Similar to `String#trim()` but removes only whitespace on the left
+- [trim-right](https://github.com/sindresorhus/trim-right) - Similar to `String#trim()` but removes only whitespace on the right.
+
+
+## License
+
+MIT © [Sindre Sorhus](http://sindresorhus.com)