mirror of
https://github.com/bvanroll/yahoo-thing.git
synced 2025-08-29 12:02:48 +00:00
euh
This commit is contained in:
15
node_modules/strip-eof/index.js
generated
vendored
Normal file
15
node_modules/strip-eof/index.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
'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;
|
||||
};
|
21
node_modules/strip-eof/license
generated
vendored
Normal file
21
node_modules/strip-eof/license
generated
vendored
Normal file
@@ -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.
|
95
node_modules/strip-eof/package.json
generated
vendored
Normal file
95
node_modules/strip-eof/package.json
generated
vendored
Normal file
@@ -0,0 +1,95 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"strip-eof@^1.0.0",
|
||||
"/home/beppe/Github/yahooApi/node_modules/execa"
|
||||
]
|
||||
],
|
||||
"_from": "strip-eof@>=1.0.0 <2.0.0",
|
||||
"_id": "strip-eof@1.0.0",
|
||||
"_inCache": true,
|
||||
"_installable": true,
|
||||
"_location": "/strip-eof",
|
||||
"_nodeVersion": "4.2.1",
|
||||
"_npmUser": {
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"name": "sindresorhus"
|
||||
},
|
||||
"_npmVersion": "2.14.7",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"name": "strip-eof",
|
||||
"raw": "strip-eof@^1.0.0",
|
||||
"rawSpec": "^1.0.0",
|
||||
"scope": null,
|
||||
"spec": ">=1.0.0 <2.0.0",
|
||||
"type": "range"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/execa"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz",
|
||||
"_shasum": "bb43ff5598a6eb05d89b59fcd129c983313606bf",
|
||||
"_shrinkwrap": null,
|
||||
"_spec": "strip-eof@^1.0.0",
|
||||
"_where": "/home/beppe/Github/yahooApi/node_modules/execa",
|
||||
"author": {
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"name": "Sindre Sorhus",
|
||||
"url": "sindresorhus.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/sindresorhus/strip-eof/issues"
|
||||
},
|
||||
"dependencies": {},
|
||||
"description": "Strip the End-Of-File (EOF) character from a string/buffer",
|
||||
"devDependencies": {
|
||||
"ava": "*",
|
||||
"xo": "*"
|
||||
},
|
||||
"directories": {},
|
||||
"dist": {
|
||||
"shasum": "bb43ff5598a6eb05d89b59fcd129c983313606bf",
|
||||
"tarball": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"gitHead": "365dfe6c19b4e607a0cc2cf7dad0b0620f238333",
|
||||
"homepage": "https://github.com/sindresorhus/strip-eof",
|
||||
"keywords": [
|
||||
"buffer",
|
||||
"character",
|
||||
"delete",
|
||||
"end",
|
||||
"eof",
|
||||
"file",
|
||||
"linebreak",
|
||||
"newline",
|
||||
"remove",
|
||||
"string",
|
||||
"strip",
|
||||
"trim"
|
||||
],
|
||||
"license": "MIT",
|
||||
"maintainers": [
|
||||
{
|
||||
"name": "sindresorhus",
|
||||
"email": "sindresorhus@gmail.com"
|
||||
}
|
||||
],
|
||||
"name": "strip-eof",
|
||||
"optionalDependencies": {},
|
||||
"readme": "ERROR: No README data found!",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/sindresorhus/strip-eof.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "xo && ava"
|
||||
},
|
||||
"version": "1.0.0"
|
||||
}
|
28
node_modules/strip-eof/readme.md
generated
vendored
Normal file
28
node_modules/strip-eof/readme.md
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
# strip-eof [](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)
|
Reference in New Issue
Block a user