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

1
node_modules/write-file-stdout/.npmignore generated vendored Normal file
View File

@@ -0,0 +1 @@
node_modules

7
node_modules/write-file-stdout/History.md generated vendored Normal file
View File

@@ -0,0 +1,7 @@
0.0.2 - December 19, 2013
-------------------------
* add repository to package.json
0.0.1 - December 18, 2013
-------------------------
:sparkles:

8
node_modules/write-file-stdout/Makefile generated vendored Normal file
View File

@@ -0,0 +1,8 @@
node_modules: package.json
@npm install
test: node_modules
@mocha --reporter spec
.PHONY: test

17
node_modules/write-file-stdout/Readme.md generated vendored Normal file
View File

@@ -0,0 +1,17 @@
# write-file-stdout
Write to a file, falling back to stdout.
## Installation
$ npm install write-file-stdout
## API
### write ([file], contents)
Write `contents` to a `file`, falling back to stdout.
## License
MIT

20
node_modules/write-file-stdout/index.js generated vendored Normal file
View File

@@ -0,0 +1,20 @@
var fs = require('fs');
/**
* Expose `write`.
*/
module.exports = write;
/**
* Write `contents` to a `file`, falling back to stdout.
*
* @param {String} file
* @param {String} contents
*/
function write (file, contents) {
if (1 == arguments.length) contents = file, file = null;
if (file) return fs.writeFileSync(file, contents);
process.stdout.write(contents);
}

70
node_modules/write-file-stdout/package.json generated vendored Normal file
View File

@@ -0,0 +1,70 @@
{
"_args": [
[
"write-file-stdout@0.0.2",
"/Users/pmarsceill/_projects/just-the-docs/node_modules/stylehacks"
]
],
"_from": "write-file-stdout@0.0.2",
"_id": "write-file-stdout@0.0.2",
"_inCache": true,
"_installable": true,
"_location": "/write-file-stdout",
"_npmUser": {
"email": "ian@ianstormtaylor.com",
"name": "ianstormtaylor"
},
"_npmVersion": "1.3.15",
"_phantomChildren": {},
"_requested": {
"name": "write-file-stdout",
"raw": "write-file-stdout@0.0.2",
"rawSpec": "0.0.2",
"scope": null,
"spec": "0.0.2",
"type": "version"
},
"_requiredBy": [
"/stylehacks"
],
"_resolved": "https://registry.npmjs.org/write-file-stdout/-/write-file-stdout-0.0.2.tgz",
"_shasum": "c252d7c7c5b1b402897630e3453c7bfe690d9ca1",
"_shrinkwrap": null,
"_spec": "write-file-stdout@0.0.2",
"_where": "/Users/pmarsceill/_projects/just-the-docs/node_modules/stylehacks",
"bugs": {
"url": "https://github.com/ianstormtaylor/write-file-stdout/issues"
},
"dependencies": {},
"description": "Write to a file, falling back to stdout.",
"devDependencies": {
"mocha": "~1.15.1"
},
"directories": {},
"dist": {
"shasum": "c252d7c7c5b1b402897630e3453c7bfe690d9ca1",
"tarball": "https://registry.npmjs.org/write-file-stdout/-/write-file-stdout-0.0.2.tgz"
},
"homepage": "https://github.com/ianstormtaylor/write-file-stdout",
"keywords": [
"file",
"stdout",
"write"
],
"license": "MIT",
"maintainers": [
{
"name": "ianstormtaylor",
"email": "ian@ianstormtaylor.com"
}
],
"name": "write-file-stdout",
"optionalDependencies": {},
"readme": "# write-file-stdout\n\n Write to a file, falling back to stdout.\n\n## Installation\n\n $ npm install write-file-stdout\n\n## API\n\n### write ([file], contents)\n\n Write `contents` to a `file`, falling back to stdout.\n\n## License\n\n MIT\n",
"readmeFilename": "Readme.md",
"repository": {
"type": "git",
"url": "git://github.com/ianstormtaylor/write-file-stdout.git"
},
"version": "0.0.2"
}

23
node_modules/write-file-stdout/test/index.js generated vendored Normal file
View File

@@ -0,0 +1,23 @@
var assert = require('assert');
var fs = require('fs');
var write = require('..');
describe('write-file-stdout', function () {
afterEach(function () {
if (fs.existsSync('fixture.txt')) fs.unlinkSync('fixture.txt');
});
it('should write to a file', function () {
write('fixture.txt', 'test');
assert.equal('test', fs.readFileSync('fixture.txt'));
});
it('should write to stdout', function (done) {
process.stdout.write = function (data) {
assert.equal('test', data);
done();
};
write('test');
});
});