Initial commit

This commit is contained in:
Patrick Marsceill
2017-03-09 13:16:08 -05:00
commit b7b0d0d7bf
4147 changed files with 401224 additions and 0 deletions

52
node_modules/get-stdin/index.js generated vendored Normal file
View File

@@ -0,0 +1,52 @@
'use strict';
var stdin = process.stdin;
module.exports = function () {
var ret = '';
return new Promise(function (resolve) {
if (stdin.isTTY) {
resolve(ret);
return;
}
stdin.setEncoding('utf8');
stdin.on('readable', function () {
var chunk;
while ((chunk = stdin.read())) {
ret += chunk;
}
});
stdin.on('end', function () {
resolve(ret);
});
});
};
module.exports.buffer = function () {
var ret = [];
var len = 0;
return new Promise(function (resolve) {
if (stdin.isTTY) {
resolve(new Buffer(''));
return;
}
stdin.on('readable', function () {
var chunk;
while ((chunk = stdin.read())) {
ret.push(chunk);
len += chunk.length;
}
});
stdin.on('end', function () {
resolve(Buffer.concat(ret, len));
});
});
};

21
node_modules/get-stdin/license generated vendored Normal file
View 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.

97
node_modules/get-stdin/package.json generated vendored Normal file
View File

@@ -0,0 +1,97 @@
{
"_args": [
[
"get-stdin@^5.0.0",
"/Users/pmarsceill/_projects/just-the-docs/node_modules/stylelint"
]
],
"_from": "get-stdin@>=5.0.0 <6.0.0",
"_id": "get-stdin@5.0.1",
"_inCache": true,
"_installable": true,
"_location": "/get-stdin",
"_nodeVersion": "4.2.1",
"_npmUser": {
"email": "sindresorhus@gmail.com",
"name": "sindresorhus"
},
"_npmVersion": "2.14.7",
"_phantomChildren": {},
"_requested": {
"name": "get-stdin",
"raw": "get-stdin@^5.0.0",
"rawSpec": "^5.0.0",
"scope": null,
"spec": ">=5.0.0 <6.0.0",
"type": "range"
},
"_requiredBy": [
"/stylelint"
],
"_resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-5.0.1.tgz",
"_shasum": "122e161591e21ff4c52530305693f20e6393a398",
"_shrinkwrap": null,
"_spec": "get-stdin@^5.0.0",
"_where": "/Users/pmarsceill/_projects/just-the-docs/node_modules/stylelint",
"author": {
"email": "sindresorhus@gmail.com",
"name": "Sindre Sorhus",
"url": "sindresorhus.com"
},
"bugs": {
"url": "https://github.com/sindresorhus/get-stdin/issues"
},
"dependencies": {},
"description": "Get stdin as a string or buffer",
"devDependencies": {
"ava": "*",
"buffer-equals": "^1.0.3",
"xo": "*"
},
"directories": {},
"dist": {
"shasum": "122e161591e21ff4c52530305693f20e6393a398",
"tarball": "https://registry.npmjs.org/get-stdin/-/get-stdin-5.0.1.tgz"
},
"engines": {
"node": ">=0.12.0"
},
"files": [
"index.js"
],
"gitHead": "496456754b3cf8faabd320181374ef0bdb664820",
"homepage": "https://github.com/sindresorhus/get-stdin",
"keywords": [
"buffer",
"concat",
"process",
"read",
"std",
"stdin",
"stdio",
"stream"
],
"license": "MIT",
"maintainers": [
{
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
}
],
"name": "get-stdin",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/get-stdin.git"
},
"scripts": {
"test": "xo && ava test.js && echo unicorns | ava test-real.js"
},
"version": "5.0.1",
"xo": {
"ignores": [
"test.js"
]
}
}

55
node_modules/get-stdin/readme.md generated vendored Normal file
View File

@@ -0,0 +1,55 @@
# get-stdin [![Build Status](https://travis-ci.org/sindresorhus/get-stdin.svg?branch=master)](https://travis-ci.org/sindresorhus/get-stdin)
> Get [stdin](https://nodejs.org/api/process.html#process_process_stdin) as a string or buffer
## Install
```
$ npm install --save get-stdin
```
## Usage
```js
// example.js
const getStdin = require('get-stdin');
getStdin().then(str => {
console.log(str);
//=> 'unicorns'
});
```
```
$ echo unicorns | node example.js
unicorns
```
## API
Both methods returns a promise that is resolved when the `end` event fires on the `stdin` stream, indicating that there is no more data to be read.
### getStdin()
Get `stdin` as a string.
In a TTY context, a promise that resolves to an empty string is returned.
### getStdin.buffer()
Get `stdin` as a buffer.
In a TTY context, a promise that resolves to an empty buffer is returned.
## Related
- [get-stream](https://github.com/sindresorhus/get-stream) - Get a stream as a string or buffer
## License
MIT © [Sindre Sorhus](http://sindresorhus.com)