aboutsummaryrefslogtreecommitdiff
path: root/node_modules/strip-eof
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/strip-eof')
-rw-r--r--node_modules/strip-eof/index.js15
-rw-r--r--node_modules/strip-eof/license21
-rw-r--r--node_modules/strip-eof/package.json39
-rw-r--r--node_modules/strip-eof/readme.md28
4 files changed, 0 insertions, 103 deletions
diff --git a/node_modules/strip-eof/index.js b/node_modules/strip-eof/index.js
deleted file mode 100644
index a17d0afd3..000000000
--- a/node_modules/strip-eof/index.js
+++ /dev/null
@@ -1,15 +0,0 @@
-'use strict';
-module.exports = function (x) {
- var lf = typeof x === 'string' ? '\n' : '\n'.charCodeAt();
- var cr = typeof x === 'string' ? '\r' : '\r'.charCodeAt();
-
- if (x[x.length - 1] === lf) {
- x = x.slice(0, x.length - 1);
- }
-
- if (x[x.length - 1] === cr) {
- x = x.slice(0, x.length - 1);
- }
-
- return x;
-};
diff --git a/node_modules/strip-eof/license b/node_modules/strip-eof/license
deleted file mode 100644
index 654d0bfe9..000000000
--- a/node_modules/strip-eof/license
+++ /dev/null
@@ -1,21 +0,0 @@
-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/strip-eof/package.json b/node_modules/strip-eof/package.json
deleted file mode 100644
index 36b88cdcf..000000000
--- a/node_modules/strip-eof/package.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "name": "strip-eof",
- "version": "1.0.0",
- "description": "Strip the End-Of-File (EOF) character from a string/buffer",
- "license": "MIT",
- "repository": "sindresorhus/strip-eof",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "scripts": {
- "test": "xo && ava"
- },
- "files": [
- "index.js"
- ],
- "keywords": [
- "strip",
- "trim",
- "remove",
- "delete",
- "eof",
- "end",
- "file",
- "newline",
- "linebreak",
- "character",
- "string",
- "buffer"
- ],
- "devDependencies": {
- "ava": "*",
- "xo": "*"
- }
-}
diff --git a/node_modules/strip-eof/readme.md b/node_modules/strip-eof/readme.md
deleted file mode 100644
index 45ffe0436..000000000
--- a/node_modules/strip-eof/readme.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# strip-eof [![Build Status](https://travis-ci.org/sindresorhus/strip-eof.svg?branch=master)](https://travis-ci.org/sindresorhus/strip-eof)
-
-> Strip the [End-Of-File](https://en.wikipedia.org/wiki/End-of-file) (EOF) character from a string/buffer
-
-
-## Install
-
-```
-$ npm install --save strip-eof
-```
-
-
-## Usage
-
-```js
-const stripEof = require('strip-eof');
-
-stripEof('foo\nbar\n\n');
-//=> 'foo\nbar\n'
-
-stripEof(new Buffer('foo\nbar\n\n')).toString();
-//=> 'foo\nbar\n'
-```
-
-
-## License
-
-MIT © [Sindre Sorhus](http://sindresorhus.com)