correccion GPIO fuera de raspberry

parent 2cea7cd8
Showing with 790 additions and 2783 deletions
../node-static/bin/cli.js
\ No newline at end of file
1.3.4 / 2017-08-22
==================
* deps: mime-types@~2.1.16
- deps: mime-db@~1.29.0
1.3.3 / 2016-05-02
==================
......
......@@ -6,23 +6,31 @@
[![Build Status][travis-image]][travis-url]
[![Test Coverage][coveralls-image]][coveralls-url]
Higher level content negotiation based on [negotiator](https://www.npmjs.com/package/negotiator). Extracted from [koa](https://www.npmjs.com/package/koa) for general use.
Higher level content negotiation based on [negotiator](https://www.npmjs.com/package/negotiator).
Extracted from [koa](https://www.npmjs.com/package/koa) for general use.
In addition to negotiator, it allows:
- Allows types as an array or arguments list, ie `(['text/html', 'application/json'])` as well as `('text/html', 'application/json')`.
- Allows types as an array or arguments list, ie `(['text/html', 'application/json'])`
as well as `('text/html', 'application/json')`.
- Allows type shorthands such as `json`.
- Returns `false` when no types match
- Treats non-existent headers as `*`
## Installation
This is a [Node.js](https://nodejs.org/en/) module available through the
[npm registry](https://www.npmjs.com/). Installation is done using the
[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally):
```sh
npm install accepts
$ npm install accepts
```
## API
<!-- eslint-disable no-unused-vars -->
```js
var accepts = require('accepts')
```
......@@ -88,11 +96,11 @@ server.
var accepts = require('accepts')
var http = require('http')
function app(req, res) {
function app (req, res) {
var accept = accepts(req)
// the order of this list is significant; should be server preferred order
switch(accept.type(['json', 'html'])) {
switch (accept.type(['json', 'html'])) {
case 'json':
res.setHeader('Content-Type', 'application/json')
res.write('{"hello":"world!"}')
......@@ -126,7 +134,7 @@ curl -I -H'Accept: text/html' http://localhost:3000/
[npm-image]: https://img.shields.io/npm/v/accepts.svg
[npm-url]: https://npmjs.org/package/accepts
[node-version-image]: https://img.shields.io/node/v/accepts.svg
[node-version-url]: http://nodejs.org/download/
[node-version-url]: https://nodejs.org/en/download/
[travis-image]: https://img.shields.io/travis/jshttp/accepts/master.svg
[travis-url]: https://travis-ci.org/jshttp/accepts
[coveralls-image]: https://img.shields.io/coveralls/jshttp/accepts/master.svg
......
......@@ -29,9 +29,10 @@ module.exports = Accepts
* @public
*/
function Accepts(req) {
if (!(this instanceof Accepts))
function Accepts (req) {
if (!(this instanceof Accepts)) {
return new Accepts(req)
}
this.headers = req.headers
this.negotiator = new Negotiator(req)
......@@ -95,12 +96,18 @@ Accepts.prototype.types = function (types_) {
return this.negotiator.mediaTypes()
}
if (!this.headers.accept) return types[0];
var mimes = types.map(extToMime);
var accepts = this.negotiator.mediaTypes(mimes.filter(validMime));
var first = accepts[0];
if (!first) return false;
return types[mimes.indexOf(first)];
// no accept header, return first given type
if (!this.headers.accept) {
return types[0]
}
var mimes = types.map(extToMime)
var accepts = this.negotiator.mediaTypes(mimes.filter(validMime))
var first = accepts[0]
return first
? types[mimes.indexOf(first)]
: false
}
/**
......@@ -212,7 +219,7 @@ Accepts.prototype.languages = function (languages_) {
* @private
*/
function extToMime(type) {
function extToMime (type) {
return type.indexOf('/') === -1
? mime.lookup(type)
: type
......@@ -226,6 +233,6 @@ function extToMime(type) {
* @private
*/
function validMime(type) {
return typeof type === 'string';
function validMime (type) {
return typeof type === 'string'
}
{
"_args": [
[
{
"raw": "accepts@1.3.3",
"scope": null,
"escapedName": "accepts",
"name": "accepts",
"rawSpec": "1.3.3",
"spec": "1.3.3",
"type": "version"
},
"/Users/scollado/controlAcceso/node_modules/engine.io"
"accepts@1.3.4",
"/Users/scollado/proyecto-micro"
]
],
"_from": "accepts@1.3.3",
"_id": "accepts@1.3.3",
"_inCache": true,
"_from": "accepts@1.3.4",
"_id": "accepts@1.3.4",
"_inBundle": false,
"_integrity": "sha1-hiRnWMfdbSGmR0/whKR0DsBesh8=",
"_location": "/accepts",
"_nodeVersion": "4.4.3",
"_npmOperationalInternal": {
"host": "packages-16-east.internal.npmjs.com",
"tmp": "tmp/accepts-1.3.3.tgz_1462251932032_0.7092335098423064"
},
"_npmUser": {
"name": "dougwilson",
"email": "doug@somethingdoug.com"
},
"_npmVersion": "2.15.1",
"_phantomChildren": {},
"_requested": {
"raw": "accepts@1.3.3",
"scope": null,
"escapedName": "accepts",
"type": "version",
"registry": true,
"raw": "accepts@1.3.4",
"name": "accepts",
"rawSpec": "1.3.3",
"spec": "1.3.3",
"type": "version"
"escapedName": "accepts",
"rawSpec": "1.3.4",
"saveSpec": null,
"fetchSpec": "1.3.4"
},
"_requiredBy": [
"/engine.io"
"/express"
],
"_resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.3.tgz",
"_shasum": "c3ca7434938648c3e0d9c1e328dd68b622c284ca",
"_shrinkwrap": null,
"_spec": "accepts@1.3.3",
"_where": "/Users/scollado/controlAcceso/node_modules/engine.io",
"_resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.4.tgz",
"_spec": "1.3.4",
"_where": "/Users/scollado/proyecto-micro",
"bugs": {
"url": "https://github.com/jshttp/accepts/issues"
},
......@@ -60,19 +42,21 @@
}
],
"dependencies": {
"mime-types": "~2.1.11",
"mime-types": "~2.1.16",
"negotiator": "0.6.1"
},
"description": "Higher-level content negotiation",
"devDependencies": {
"istanbul": "0.4.3",
"eslint": "3.19.0",
"eslint-config-standard": "10.2.1",
"eslint-plugin-import": "2.7.0",
"eslint-plugin-markdown": "1.0.0-beta.6",
"eslint-plugin-node": "5.1.1",
"eslint-plugin-promise": "3.5.0",
"eslint-plugin-standard": "3.0.1",
"istanbul": "0.4.5",
"mocha": "~1.21.5"
},
"directories": {},
"dist": {
"shasum": "c3ca7434938648c3e0d9c1e328dd68b622c284ca",
"tarball": "https://registry.npmjs.org/accepts/-/accepts-1.3.3.tgz"
},
"engines": {
"node": ">= 0.6"
},
......@@ -81,7 +65,6 @@
"HISTORY.md",
"index.js"
],
"gitHead": "3e925b1e65ed7da2798849683d49814680dfa426",
"homepage": "https://github.com/jshttp/accepts#readme",
"keywords": [
"content",
......@@ -90,23 +73,16 @@
"accepts"
],
"license": "MIT",
"maintainers": [
{
"name": "dougwilson",
"email": "doug@somethingdoug.com"
}
],
"name": "accepts",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git+https://github.com/jshttp/accepts.git"
},
"scripts": {
"lint": "eslint --plugin markdown --ext js,md .",
"test": "mocha --reporter spec --check-leaks --bail test/",
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/",
"test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/"
},
"version": "1.3.3"
"version": "1.3.4"
}
{
"_args": [
[
{
"raw": "after@0.8.2",
"scope": null,
"escapedName": "after",
"name": "after",
"rawSpec": "0.8.2",
"spec": "0.8.2",
"type": "version"
},
"/Users/scollado/controlAcceso/node_modules/engine.io-parser"
"after@0.8.2",
"/Users/scollado/proyecto-micro"
]
],
"_from": "after@0.8.2",
"_id": "after@0.8.2",
"_inCache": true,
"_inBundle": false,
"_integrity": "sha1-/ts5T58OAqqXaOcCvaI7UF+ufh8=",
"_location": "/after",
"_nodeVersion": "0.10.32",
"_npmOperationalInternal": {
"host": "packages-12-west.internal.npmjs.com",
"tmp": "tmp/after-0.8.2.tgz_1471308639186_0.9132961586583406"
},
"_npmUser": {
"name": "raynos",
"email": "raynos2@gmail.com"
},
"_npmVersion": "2.15.9",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "after@0.8.2",
"scope": null,
"escapedName": "after",
"name": "after",
"escapedName": "after",
"rawSpec": "0.8.2",
"spec": "0.8.2",
"type": "version"
"saveSpec": null,
"fetchSpec": "0.8.2"
},
"_requiredBy": [
"/engine.io-parser"
],
"_resolved": "https://registry.npmjs.org/after/-/after-0.8.2.tgz",
"_shasum": "fedb394f9f0e02aa9768e702bda23b505fae7e1f",
"_shrinkwrap": null,
"_spec": "after@0.8.2",
"_where": "/Users/scollado/controlAcceso/node_modules/engine.io-parser",
"_spec": "0.8.2",
"_where": "/Users/scollado/proyecto-micro",
"author": {
"name": "Raynos",
"email": "raynos2@gmail.com"
......@@ -59,17 +41,10 @@
"url": "http://raynos.org"
}
],
"dependencies": {},
"description": "after - tiny flow control",
"devDependencies": {
"mocha": "~1.8.1"
},
"directories": {},
"dist": {
"shasum": "fedb394f9f0e02aa9768e702bda23b505fae7e1f",
"tarball": "https://registry.npmjs.org/after/-/after-0.8.2.tgz"
},
"gitHead": "e8c26046f36962b90e68dc5df33a9672a54b25f5",
"homepage": "https://github.com/Raynos/after#readme",
"keywords": [
"flowcontrol",
......@@ -79,19 +54,7 @@
"arch"
],
"license": "MIT",
"maintainers": [
{
"name": "raynos",
"email": "raynos2@gmail.com"
},
{
"name": "defunctzombie",
"email": "shtylman@gmail.com"
}
],
"name": "after",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git://github.com/Raynos/after.git"
......
{
"_args": [
[
{
"raw": "array-flatten@1.1.1",
"scope": null,
"escapedName": "array-flatten",
"name": "array-flatten",
"rawSpec": "1.1.1",
"spec": "1.1.1",
"type": "version"
},
"/Users/scollado/Documents/controlAcceso/node_modules/express"
"array-flatten@1.1.1",
"/Users/scollado/proyecto-micro"
]
],
"_from": "array-flatten@1.1.1",
"_id": "array-flatten@1.1.1",
"_inCache": true,
"_inBundle": false,
"_integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=",
"_location": "/array-flatten",
"_nodeVersion": "2.3.3",
"_npmUser": {
"name": "blakeembrey",
"email": "hello@blakeembrey.com"
},
"_npmVersion": "2.11.3",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "array-flatten@1.1.1",
"scope": null,
"escapedName": "array-flatten",
"name": "array-flatten",
"escapedName": "array-flatten",
"rawSpec": "1.1.1",
"spec": "1.1.1",
"type": "version"
"saveSpec": null,
"fetchSpec": "1.1.1"
},
"_requiredBy": [
"/express"
],
"_resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
"_shasum": "9a5f699051b1e7073328f2a008968b64ea2955d2",
"_shrinkwrap": null,
"_spec": "array-flatten@1.1.1",
"_where": "/Users/scollado/Documents/controlAcceso/node_modules/express",
"_spec": "1.1.1",
"_where": "/Users/scollado/proyecto-micro",
"author": {
"name": "Blake Embrey",
"email": "hello@blakeembrey.com",
......@@ -49,7 +35,6 @@
"bugs": {
"url": "https://github.com/blakeembrey/array-flatten/issues"
},
"dependencies": {},
"description": "Flatten an array of nested arrays into a single flat array",
"devDependencies": {
"istanbul": "^0.3.13",
......@@ -57,16 +42,10 @@
"pre-commit": "^1.0.7",
"standard": "^3.7.3"
},
"directories": {},
"dist": {
"shasum": "9a5f699051b1e7073328f2a008968b64ea2955d2",
"tarball": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz"
},
"files": [
"array-flatten.js",
"LICENSE"
],
"gitHead": "1963a9189229d408e1e8f585a00c8be9edbd1803",
"homepage": "https://github.com/blakeembrey/array-flatten",
"keywords": [
"array",
......@@ -76,15 +55,7 @@
],
"license": "MIT",
"main": "array-flatten.js",
"maintainers": [
{
"name": "blakeembrey",
"email": "hello@blakeembrey.com"
}
],
"name": "array-flatten",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git://github.com/blakeembrey/array-flatten.git"
......
{
"_args": [
[
{
"raw": "arraybuffer.slice@0.0.6",
"scope": null,
"escapedName": "arraybuffer.slice",
"name": "arraybuffer.slice",
"rawSpec": "0.0.6",
"spec": "0.0.6",
"type": "version"
},
"/Users/scollado/controlAcceso/node_modules/engine.io-parser"
"arraybuffer.slice@0.0.6",
"/Users/scollado/proyecto-micro"
]
],
"_from": "arraybuffer.slice@0.0.6",
"_id": "arraybuffer.slice@0.0.6",
"_inCache": true,
"_inBundle": false,
"_integrity": "sha1-8zshWfBTKj8xB6JywMz70a0peco=",
"_location": "/arraybuffer.slice",
"_npmUser": {
"name": "rase-",
"email": "tonykovanen@hotmail.com"
},
"_npmVersion": "1.3.5",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "arraybuffer.slice@0.0.6",
"scope": null,
"escapedName": "arraybuffer.slice",
"name": "arraybuffer.slice",
"escapedName": "arraybuffer.slice",
"rawSpec": "0.0.6",
"spec": "0.0.6",
"type": "version"
"saveSpec": null,
"fetchSpec": "0.0.6"
},
"_requiredBy": [
"/engine.io-parser"
],
"_resolved": "https://registry.npmjs.org/arraybuffer.slice/-/arraybuffer.slice-0.0.6.tgz",
"_shasum": "f33b2159f0532a3f3107a272c0ccfbd1ad2979ca",
"_shrinkwrap": null,
"_spec": "arraybuffer.slice@0.0.6",
"_where": "/Users/scollado/controlAcceso/node_modules/engine.io-parser",
"_spec": "0.0.6",
"_where": "/Users/scollado/proyecto-micro",
"bugs": {
"url": "https://github.com/rase-/arraybuffer.slice/issues"
},
......@@ -49,21 +36,8 @@
"expect.js": "0.2.0",
"mocha": "1.17.1"
},
"directories": {},
"dist": {
"shasum": "f33b2159f0532a3f3107a272c0ccfbd1ad2979ca",
"tarball": "https://registry.npmjs.org/arraybuffer.slice/-/arraybuffer.slice-0.0.6.tgz"
},
"homepage": "https://github.com/rase-/arraybuffer.slice",
"maintainers": [
{
"name": "rase-",
"email": "tonykovanen@hotmail.com"
}
],
"name": "arraybuffer.slice",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/rase-/arraybuffer.slice.git"
......
{
"_args": [
[
{
"raw": "async-limiter@~1.0.0",
"scope": null,
"escapedName": "async-limiter",
"name": "async-limiter",
"rawSpec": "~1.0.0",
"spec": ">=1.0.0 <1.1.0",
"type": "range"
},
"/Users/scollado/controlAcceso/node_modules/ws"
"async-limiter@1.0.0",
"/Users/scollado/proyecto-micro"
]
],
"_from": "async-limiter@>=1.0.0 <1.1.0",
"_from": "async-limiter@1.0.0",
"_id": "async-limiter@1.0.0",
"_inCache": true,
"_inBundle": false,
"_integrity": "sha512-jp/uFnooOiO+L211eZOoSyzpOITMXx1rBITauYykG3BRYPu8h0UcxsPNB04RR5vo4Tyz3+ay17tR6JVf9qzYWg==",
"_location": "/async-limiter",
"_nodeVersion": "8.4.0",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/async-limiter-1.0.0.tgz_1505149068503_0.15003100014291704"
},
"_npmUser": {
"name": "strml",
"email": "samuel.trace.reed@gmail.com"
},
"_npmVersion": "5.4.1",
"_phantomChildren": {},
"_requested": {
"raw": "async-limiter@~1.0.0",
"scope": null,
"escapedName": "async-limiter",
"type": "version",
"registry": true,
"raw": "async-limiter@1.0.0",
"name": "async-limiter",
"rawSpec": "~1.0.0",
"spec": ">=1.0.0 <1.1.0",
"type": "range"
"escapedName": "async-limiter",
"rawSpec": "1.0.0",
"saveSpec": null,
"fetchSpec": "1.0.0"
},
"_requiredBy": [
"/ws"
],
"_resolved": "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.0.tgz",
"_shasum": "78faed8c3d074ab81f22b4e985d79e8738f720f8",
"_shrinkwrap": null,
"_spec": "async-limiter@~1.0.0",
"_where": "/Users/scollado/controlAcceso/node_modules/ws",
"_spec": "1.0.0",
"_where": "/Users/scollado/proyecto-micro",
"author": {
"name": "Samuel Reed"
},
......@@ -62,13 +44,6 @@
"mocha": "^3.5.2",
"power-assert": "^1.4.4"
},
"directories": {},
"dist": {
"integrity": "sha512-jp/uFnooOiO+L211eZOoSyzpOITMXx1rBITauYykG3BRYPu8h0UcxsPNB04RR5vo4Tyz3+ay17tR6JVf9qzYWg==",
"shasum": "78faed8c3d074ab81f22b4e985d79e8738f720f8",
"tarball": "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.0.tgz"
},
"gitHead": "02c8b498279dc7cc1ecc1c4f6fc9ca320c0ce39b",
"homepage": "https://github.com/strml/async-limiter#readme",
"keywords": [
"throttle",
......@@ -81,15 +56,7 @@
"concurrent"
],
"license": "MIT",
"maintainers": [
{
"name": "strml",
"email": "samuel.trace.reed@gmail.com"
}
],
"name": "async-limiter",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git+https://github.com/strml/async-limiter.git"
......
{
"_args": [
[
{
"raw": "backo2@1.0.2",
"scope": null,
"escapedName": "backo2",
"name": "backo2",
"rawSpec": "1.0.2",
"spec": "1.0.2",
"type": "version"
},
"/Users/scollado/controlAcceso/node_modules/socket.io-client"
"backo2@1.0.2",
"/Users/scollado/proyecto-micro"
]
],
"_from": "backo2@1.0.2",
"_id": "backo2@1.0.2",
"_inCache": true,
"_inBundle": false,
"_integrity": "sha1-MasayLEpNjRj41s+u2n038+6eUc=",
"_location": "/backo2",
"_npmUser": {
"name": "mokesmokes",
"email": "mokesmokes@gmail.com"
},
"_npmVersion": "1.4.28",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "backo2@1.0.2",
"scope": null,
"escapedName": "backo2",
"name": "backo2",
"escapedName": "backo2",
"rawSpec": "1.0.2",
"spec": "1.0.2",
"type": "version"
"saveSpec": null,
"fetchSpec": "1.0.2"
},
"_requiredBy": [
"/socket.io-client"
],
"_resolved": "https://registry.npmjs.org/backo2/-/backo2-1.0.2.tgz",
"_shasum": "31ab1ac8b129363463e35b3ebb69f4dfcfba7947",
"_shrinkwrap": null,
"_spec": "backo2@1.0.2",
"_where": "/Users/scollado/controlAcceso/node_modules/socket.io-client",
"_spec": "1.0.2",
"_where": "/Users/scollado/proyecto-micro",
"bugs": {
"url": "https://github.com/mokesmokes/backo/issues"
},
......@@ -49,30 +36,15 @@
"mocha": "*",
"should": "*"
},
"directories": {},
"dist": {
"shasum": "31ab1ac8b129363463e35b3ebb69f4dfcfba7947",
"tarball": "https://registry.npmjs.org/backo2/-/backo2-1.0.2.tgz"
},
"gitHead": "3e695bade7756fef2295e8883bf3570a06e5d9ec",
"homepage": "https://github.com/mokesmokes/backo",
"homepage": "https://github.com/mokesmokes/backo#readme",
"keywords": [
"backoff"
],
"license": "MIT",
"maintainers": [
{
"name": "mokesmokes",
"email": "mokesmokes@gmail.com"
}
],
"name": "backo2",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git+https://github.com/mokesmokes/backo.git"
},
"scripts": {},
"version": "1.0.2"
}
{
"_args": [
[
{
"raw": "base64-arraybuffer@0.1.5",
"scope": null,
"escapedName": "base64-arraybuffer",
"name": "base64-arraybuffer",
"rawSpec": "0.1.5",
"spec": "0.1.5",
"type": "version"
},
"/Users/scollado/controlAcceso/node_modules/engine.io-parser"
"base64-arraybuffer@0.1.5",
"/Users/scollado/proyecto-micro"
]
],
"_from": "base64-arraybuffer@0.1.5",
"_id": "base64-arraybuffer@0.1.5",
"_inCache": true,
"_inBundle": false,
"_integrity": "sha1-c5JncZI7Whl0etZmqlzUv5xunOg=",
"_location": "/base64-arraybuffer",
"_nodeVersion": "2.5.0",
"_npmUser": {
"name": "niklasvh",
"email": "niklasvh@gmail.com"
},
"_npmVersion": "3.4.0",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "base64-arraybuffer@0.1.5",
"scope": null,
"escapedName": "base64-arraybuffer",
"name": "base64-arraybuffer",
"escapedName": "base64-arraybuffer",
"rawSpec": "0.1.5",
"spec": "0.1.5",
"type": "version"
"saveSpec": null,
"fetchSpec": "0.1.5"
},
"_requiredBy": [
"/engine.io-parser",
"/socket.io-client"
],
"_resolved": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-0.1.5.tgz",
"_shasum": "73926771923b5a19747ad666aa5cd4bf9c6e9ce8",
"_shrinkwrap": null,
"_spec": "base64-arraybuffer@0.1.5",
"_where": "/Users/scollado/controlAcceso/node_modules/engine.io-parser",
"_spec": "0.1.5",
"_where": "/Users/scollado/proyecto-micro",
"author": {
"name": "Niklas von Hertzen",
"email": "niklasvh@gmail.com",
......@@ -50,7 +36,6 @@
"bugs": {
"url": "https://github.com/niklasvh/base64-arraybuffer/issues"
},
"dependencies": {},
"description": "Encode/decode base64 data into ArrayBuffers",
"devDependencies": {
"grunt": "^0.4.5",
......@@ -59,15 +44,9 @@
"grunt-contrib-nodeunit": "^0.4.1",
"grunt-contrib-watch": "^0.6.1"
},
"directories": {},
"dist": {
"shasum": "73926771923b5a19747ad666aa5cd4bf9c6e9ce8",
"tarball": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-0.1.5.tgz"
},
"engines": {
"node": ">= 0.6.0"
},
"gitHead": "e9457ccb7b140f5ae54a2880c8e9b967ffb03a7d",
"homepage": "https://github.com/niklasvh/base64-arraybuffer",
"keywords": [],
"licenses": [
......@@ -77,15 +56,7 @@
}
],
"main": "lib/base64-arraybuffer",
"maintainers": [
{
"name": "niklasvh",
"email": "niklasvh@gmail.com"
}
],
"name": "base64-arraybuffer",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git+https://github.com/niklasvh/base64-arraybuffer.git"
......
{
"_args": [
[
{
"raw": "base64id@1.0.0",
"scope": null,
"escapedName": "base64id",
"name": "base64id",
"rawSpec": "1.0.0",
"spec": "1.0.0",
"type": "version"
},
"/Users/scollado/controlAcceso/node_modules/engine.io"
"base64id@1.0.0",
"/Users/scollado/proyecto-micro"
]
],
"_from": "base64id@1.0.0",
"_id": "base64id@1.0.0",
"_inCache": true,
"_inBundle": false,
"_integrity": "sha1-R2iMuZu2gE8OBtPnY7HDLlfY5rY=",
"_location": "/base64id",
"_nodeVersion": "4.4.7",
"_npmOperationalInternal": {
"host": "packages-18-east.internal.npmjs.com",
"tmp": "tmp/base64id-1.0.0.tgz_1480551701495_0.042360062478110194"
},
"_npmUser": {
"name": "darrachequesne",
"email": "damien.arrachequesne@gmail.com"
},
"_npmVersion": "2.15.8",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "base64id@1.0.0",
"scope": null,
"escapedName": "base64id",
"name": "base64id",
"escapedName": "base64id",
"rawSpec": "1.0.0",
"spec": "1.0.0",
"type": "version"
"saveSpec": null,
"fetchSpec": "1.0.0"
},
"_requiredBy": [
"/engine.io"
],
"_resolved": "https://registry.npmjs.org/base64id/-/base64id-1.0.0.tgz",
"_shasum": "47688cb99bb6804f0e06d3e763b1c32e57d8e6b6",
"_shrinkwrap": null,
"_spec": "base64id@1.0.0",
"_where": "/Users/scollado/controlAcceso/node_modules/engine.io",
"_spec": "1.0.0",
"_where": "/Users/scollado/proyecto-micro",
"author": {
"name": "Kristian Faeldt",
"email": "faeldt_kristian@cyberagent.co.jp"
......@@ -52,38 +34,17 @@
"bugs": {
"url": "https://github.com/faeldt/base64id/issues"
},
"dependencies": {},
"description": "Generates a base64 id",
"devDependencies": {},
"directories": {},
"dist": {
"shasum": "47688cb99bb6804f0e06d3e763b1c32e57d8e6b6",
"tarball": "https://registry.npmjs.org/base64id/-/base64id-1.0.0.tgz"
},
"engines": {
"node": ">= 0.4.0"
},
"gitHead": "3c846f0818ff88b683ad39fde2f8e015ce0f9807",
"homepage": "https://github.com/faeldt/base64id#readme",
"license": "MIT",
"main": "./lib/base64id.js",
"maintainers": [
{
"name": "darrachequesne",
"email": "damien.arrachequesne@gmail.com"
},
{
"name": "faeldt_kristian",
"email": "kristian.faeldt@gmail.com"
}
],
"name": "base64id",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git+https://github.com/faeldt/base64id.git"
},
"scripts": {},
"version": "1.0.0"
}
{
"_args": [
[
{
"raw": "better-assert@~1.0.0",
"scope": null,
"escapedName": "better-assert",
"name": "better-assert",
"rawSpec": "~1.0.0",
"spec": ">=1.0.0 <1.1.0",
"type": "range"
},
"/Users/scollado/controlAcceso/node_modules/parseqs"
"better-assert@1.0.2",
"/Users/scollado/proyecto-micro"
]
],
"_from": "better-assert@>=1.0.0 <1.1.0",
"_from": "better-assert@1.0.2",
"_id": "better-assert@1.0.2",
"_inCache": true,
"_inBundle": false,
"_integrity": "sha1-QIZrnhueC1W0gYlDEeaPr/rrxSI=",
"_location": "/better-assert",
"_npmUser": {
"name": "tony_ado",
"email": "coolhzb@163.com"
},
"_npmVersion": "1.4.9",
"_phantomChildren": {},
"_requested": {
"raw": "better-assert@~1.0.0",
"scope": null,
"escapedName": "better-assert",
"type": "version",
"registry": true,
"raw": "better-assert@1.0.2",
"name": "better-assert",
"rawSpec": "~1.0.0",
"spec": ">=1.0.0 <1.1.0",
"type": "range"
"escapedName": "better-assert",
"rawSpec": "1.0.2",
"saveSpec": null,
"fetchSpec": "1.0.2"
},
"_requiredBy": [
"/parseqs",
"/parseuri"
],
"_resolved": "https://registry.npmjs.org/better-assert/-/better-assert-1.0.2.tgz",
"_shasum": "40866b9e1b9e0b55b481894311e68faffaebc522",
"_shrinkwrap": null,
"_spec": "better-assert@~1.0.0",
"_where": "/Users/scollado/controlAcceso/node_modules/parseqs",
"_spec": "1.0.2",
"_where": "/Users/scollado/proyecto-micro",
"author": {
"name": "TJ Holowaychuk",
"email": "tj@vision-media.ca"
......@@ -61,16 +48,10 @@
"callsite": "1.0.0"
},
"description": "Better assertions for node, reporting the expr, filename, lineno etc",
"devDependencies": {},
"directories": {},
"dist": {
"shasum": "40866b9e1b9e0b55b481894311e68faffaebc522",
"tarball": "https://registry.npmjs.org/better-assert/-/better-assert-1.0.2.tgz"
},
"engines": {
"node": "*"
},
"homepage": "https://github.com/visionmedia/better-assert",
"homepage": "https://github.com/visionmedia/better-assert#readme",
"keywords": [
"assert",
"stack",
......@@ -78,19 +59,7 @@
"debug"
],
"main": "index",
"maintainers": [
{
"name": "tjholowaychuk",
"email": "tj@vision-media.ca"
},
{
"name": "tony_ado",
"email": "coolhzb@163.com"
}
],
"name": "better-assert",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git+https://github.com/visionmedia/better-assert.git"
......
{
"name": "bindings",
"_args": [
[
"bindings@1.3.0",
"/Users/scollado/proyecto-micro"
]
],
"_from": "bindings@1.3.0",
"_id": "bindings@1.3.0",
"_inBundle": false,
"_integrity": "sha512-DpLh5EzMR2kzvX1KIlVC0VkC3iZtHKTgdtZ0a3pglBZdaQFjt5S9g9xd1lE+YvXyfd6mtCeRnrUfOLYiTMlNSw==",
"_location": "/bindings",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "bindings@1.3.0",
"name": "bindings",
"escapedName": "bindings",
"rawSpec": "1.3.0",
"saveSpec": null,
"fetchSpec": "1.3.0"
},
"_requiredBy": [
"/epoll"
],
"_resolved": "https://registry.npmjs.org/bindings/-/bindings-1.3.0.tgz",
"_spec": "1.3.0",
"_where": "/Users/scollado/proyecto-micro",
"author": {
"name": "Nathan Rajlich",
"email": "nathan@tootallnate.net",
"url": "http://tootallnate.net"
},
"bugs": {
"url": "https://github.com/TooTallNate/node-bindings/issues"
},
"description": "Helper module for loading your native module's .node file",
"homepage": "https://github.com/TooTallNate/node-bindings",
"keywords": [
"native",
"addon",
......@@ -10,47 +46,12 @@
"c",
"c++"
],
"version": "1.3.0",
"author": {
"name": "Nathan Rajlich",
"email": "nathan@tootallnate.net",
"url": "http://tootallnate.net"
},
"license": "MIT",
"main": "./bindings.js",
"name": "bindings",
"repository": {
"type": "git",
"url": "git://github.com/TooTallNate/node-bindings.git"
},
"main": "./bindings.js",
"bugs": {
"url": "https://github.com/TooTallNate/node-bindings/issues"
},
"homepage": "https://github.com/TooTallNate/node-bindings",
"license": "MIT",
"gitHead": "7fd065ee85386ad3d074d2506e03abe8f9b1588b",
"_id": "bindings@1.3.0",
"_npmVersion": "5.0.3",
"_nodeVersion": "8.1.3",
"_npmUser": {
"name": "tootallnate",
"email": "nathan@tootallnate.net"
},
"dist": {
"integrity": "sha512-DpLh5EzMR2kzvX1KIlVC0VkC3iZtHKTgdtZ0a3pglBZdaQFjt5S9g9xd1lE+YvXyfd6mtCeRnrUfOLYiTMlNSw==",
"shasum": "b346f6ecf6a95f5a815c5839fc7cdb22502f1ed7",
"tarball": "https://registry.npmjs.org/bindings/-/bindings-1.3.0.tgz"
},
"maintainers": [
{
"email": "nathan@tootallnate.net",
"name": "tootallnate"
}
],
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/bindings-1.3.0.tgz_1500923768710_0.3334669852629304"
},
"directories": {},
"_shasum": "b346f6ecf6a95f5a815c5839fc7cdb22502f1ed7",
"_from": "bindings@~1.3.0",
"_resolved": "https://registry.npmjs.org/bindings/-/bindings-1.3.0.tgz"
"version": "1.3.0"
}
{
"_args": [
[
{
"raw": "blob@0.0.4",
"scope": null,
"escapedName": "blob",
"name": "blob",
"rawSpec": "0.0.4",
"spec": "0.0.4",
"type": "version"
},
"/Users/scollado/controlAcceso/node_modules/engine.io-parser"
"blob@0.0.4",
"/Users/scollado/proyecto-micro"
]
],
"_from": "blob@0.0.4",
"_id": "blob@0.0.4",
"_inCache": true,
"_inBundle": false,
"_integrity": "sha1-vPEwUspURj8w+fx+lbmkdjCpSSE=",
"_location": "/blob",
"_npmUser": {
"name": "rase-",
"email": "tonykovanen@hotmail.com"
},
"_npmVersion": "1.4.6",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "blob@0.0.4",
"scope": null,
"escapedName": "blob",
"name": "blob",
"escapedName": "blob",
"rawSpec": "0.0.4",
"spec": "0.0.4",
"type": "version"
"saveSpec": null,
"fetchSpec": "0.0.4"
},
"_requiredBy": [
"/engine.io-parser"
],
"_resolved": "https://registry.npmjs.org/blob/-/blob-0.0.4.tgz",
"_shasum": "bcf13052ca54463f30f9fc7e95b9a47630a94921",
"_shrinkwrap": null,
"_spec": "blob@0.0.4",
"_where": "/Users/scollado/controlAcceso/node_modules/engine.io-parser",
"_spec": "0.0.4",
"_where": "/Users/scollado/proyecto-micro",
"bugs": {
"url": "https://github.com/rase-/blob/issues"
},
......@@ -51,21 +38,8 @@
"mocha": "1.17.1",
"zuul": "1.5.4"
},
"directories": {},
"dist": {
"shasum": "bcf13052ca54463f30f9fc7e95b9a47630a94921",
"tarball": "https://registry.npmjs.org/blob/-/blob-0.0.4.tgz"
},
"homepage": "https://github.com/rase-/blob",
"maintainers": [
{
"name": "rase-",
"email": "tonykovanen@hotmail.com"
}
],
"name": "blob",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/rase-/blob.git"
......
{
"_args": [
[
{
"raw": "body-parser@1.18.2",
"scope": null,
"escapedName": "body-parser",
"name": "body-parser",
"rawSpec": "1.18.2",
"spec": "1.18.2",
"type": "version"
},
"/Users/scollado/Documents/controlAcceso/node_modules/express"
"body-parser@1.18.2",
"/Users/scollado/proyecto-micro"
]
],
"_from": "body-parser@1.18.2",
"_id": "body-parser@1.18.2",
"_inCache": true,
"_inBundle": false,
"_integrity": "sha1-h2eKGdhLR9hZuDGZvVm84iKxBFQ=",
"_location": "/body-parser",
"_nodeVersion": "6.11.1",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/body-parser-1.18.2.tgz_1506099009907_0.5088193896226585"
},
"_npmUser": {
"name": "dougwilson",
"email": "doug@somethingdoug.com"
},
"_npmVersion": "3.10.10",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "body-parser@1.18.2",
"scope": null,
"escapedName": "body-parser",
"name": "body-parser",
"escapedName": "body-parser",
"rawSpec": "1.18.2",
"spec": "1.18.2",
"type": "version"
"saveSpec": null,
"fetchSpec": "1.18.2"
},
"_requiredBy": [
"/express"
],
"_resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.18.2.tgz",
"_shasum": "87678a19d84b47d859b83199bd59bce222b10454",
"_shrinkwrap": null,
"_spec": "body-parser@1.18.2",
"_where": "/Users/scollado/Documents/controlAcceso/node_modules/express",
"_spec": "1.18.2",
"_where": "/Users/scollado/proyecto-micro",
"bugs": {
"url": "https://github.com/expressjs/body-parser/issues"
},
......@@ -86,11 +68,6 @@
"safe-buffer": "5.1.1",
"supertest": "1.1.0"
},
"directories": {},
"dist": {
"shasum": "87678a19d84b47d859b83199bd59bce222b10454",
"tarball": "https://registry.npmjs.org/body-parser/-/body-parser-1.18.2.tgz"
},
"engines": {
"node": ">= 0.8"
},
......@@ -100,18 +77,9 @@
"HISTORY.md",
"index.js"
],
"gitHead": "b2659a7af3b413a2d1df274bef409fe6cdcf6b8f",
"homepage": "https://github.com/expressjs/body-parser#readme",
"license": "MIT",
"maintainers": [
{
"name": "dougwilson",
"email": "doug@somethingdoug.com"
}
],
"name": "body-parser",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git+https://github.com/expressjs/body-parser.git"
......
{
"_args": [
[
{
"raw": "bytes@3.0.0",
"scope": null,
"escapedName": "bytes",
"name": "bytes",
"rawSpec": "3.0.0",
"spec": "3.0.0",
"type": "version"
},
"/Users/scollado/Documents/controlAcceso/node_modules/body-parser"
"bytes@3.0.0",
"/Users/scollado/proyecto-micro"
]
],
"_from": "bytes@3.0.0",
"_id": "bytes@3.0.0",
"_inCache": true,
"_inBundle": false,
"_integrity": "sha1-0ygVQE1olpn4Wk6k+odV3ROpYEg=",
"_location": "/bytes",
"_nodeVersion": "6.11.1",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/bytes-3.0.0.tgz_1504216364188_0.5158762519713491"
},
"_npmUser": {
"name": "dougwilson",
"email": "doug@somethingdoug.com"
},
"_npmVersion": "3.10.10",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "bytes@3.0.0",
"scope": null,
"escapedName": "bytes",
"name": "bytes",
"escapedName": "bytes",
"rawSpec": "3.0.0",
"spec": "3.0.0",
"type": "version"
"saveSpec": null,
"fetchSpec": "3.0.0"
},
"_requiredBy": [
"/body-parser",
"/raw-body"
],
"_resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz",
"_shasum": "d32815404d689699f85a4ea4fa8755dd13a96048",
"_shrinkwrap": null,
"_spec": "bytes@3.0.0",
"_where": "/Users/scollado/Documents/controlAcceso/node_modules/body-parser",
"_spec": "3.0.0",
"_where": "/Users/scollado/proyecto-micro",
"author": {
"name": "TJ Holowaychuk",
"email": "tj@vision-media.ca",
......@@ -64,17 +46,11 @@
"email": "theo.fidry@gmail.com"
}
],
"dependencies": {},
"description": "Utility to parse a string bytes to bytes and vice-versa",
"devDependencies": {
"mocha": "2.5.3",
"nyc": "10.3.2"
},
"directories": {},
"dist": {
"shasum": "d32815404d689699f85a4ea4fa8755dd13a96048",
"tarball": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz"
},
"engines": {
"node": ">= 0.8"
},
......@@ -84,7 +60,6 @@
"Readme.md",
"index.js"
],
"gitHead": "25d4cb488aea3b637448a85fa297d9e65b4b4e04",
"homepage": "https://github.com/visionmedia/bytes.js#readme",
"keywords": [
"byte",
......@@ -96,19 +71,7 @@
"converter"
],
"license": "MIT",
"maintainers": [
{
"name": "dougwilson",
"email": "doug@somethingdoug.com"
},
{
"name": "tjholowaychuk",
"email": "tj@vision-media.ca"
}
],
"name": "bytes",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git+https://github.com/visionmedia/bytes.js.git"
......
{
"_args": [
[
{
"raw": "callsite@1.0.0",
"scope": null,
"escapedName": "callsite",
"name": "callsite",
"rawSpec": "1.0.0",
"spec": "1.0.0",
"type": "version"
},
"/Users/scollado/controlAcceso/node_modules/better-assert"
"callsite@1.0.0",
"/Users/scollado/proyecto-micro"
]
],
"_from": "callsite@1.0.0",
"_id": "callsite@1.0.0",
"_inCache": true,
"_inBundle": false,
"_integrity": "sha1-KAOY5dZkvXQDi28JBRU+borxvCA=",
"_location": "/callsite",
"_npmUser": {
"name": "tjholowaychuk",
"email": "tj@vision-media.ca"
},
"_npmVersion": "1.2.2",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "callsite@1.0.0",
"scope": null,
"escapedName": "callsite",
"name": "callsite",
"escapedName": "callsite",
"rawSpec": "1.0.0",
"spec": "1.0.0",
"type": "version"
"saveSpec": null,
"fetchSpec": "1.0.0"
},
"_requiredBy": [
"/better-assert"
],
"_resolved": "https://registry.npmjs.org/callsite/-/callsite-1.0.0.tgz",
"_shasum": "280398e5d664bd74038b6f0905153e6e8af1bc20",
"_shrinkwrap": null,
"_spec": "callsite@1.0.0",
"_where": "/Users/scollado/controlAcceso/node_modules/better-assert",
"_spec": "1.0.0",
"_where": "/Users/scollado/proyecto-micro",
"author": {
"name": "TJ Holowaychuk",
"email": "tj@vision-media.ca"
......@@ -50,11 +37,6 @@
"mocha": "*",
"should": "*"
},
"directories": {},
"dist": {
"shasum": "280398e5d664bd74038b6f0905153e6e8af1bc20",
"tarball": "https://registry.npmjs.org/callsite/-/callsite-1.0.0.tgz"
},
"engines": {
"node": "*"
},
......@@ -64,14 +46,6 @@
"line"
],
"main": "index",
"maintainers": [
{
"name": "tjholowaychuk",
"email": "tj@vision-media.ca"
}
],
"name": "callsite",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"version": "1.0.0"
}
Original Library
- Copyright (c) Marak Squires
Additional Functionality
- 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.
\ No newline at end of file
# colors.js [![Build Status](https://travis-ci.org/Marak/colors.js.svg?branch=master)](https://travis-ci.org/Marak/colors.js)
## get color and style in your node.js console
![Demo](https://raw.githubusercontent.com/Marak/colors.js/master/screenshots/colors.png)
## Installation
npm install colors
## colors and styles!
### text colors
- black
- red
- green
- yellow
- blue
- magenta
- cyan
- white
- gray
- grey
### background colors
- bgBlack
- bgRed
- bgGreen
- bgYellow
- bgBlue
- bgMagenta
- bgCyan
- bgWhite
### styles
- reset
- bold
- dim
- italic
- underline
- inverse
- hidden
- strikethrough
### extras
- rainbow
- zebra
- america
- trap
- random
## Usage
By popular demand, `colors` now ships with two types of usages!
The super nifty way
```js
var colors = require('colors');
console.log('hello'.green); // outputs green text
console.log('i like cake and pies'.underline.red) // outputs red underlined text
console.log('inverse the color'.inverse); // inverses the color
console.log('OMG Rainbows!'.rainbow); // rainbow
console.log('Run the trap'.trap); // Drops the bass
```
or a slightly less nifty way which doesn't extend `String.prototype`
```js
var colors = require('colors/safe');
console.log(colors.green('hello')); // outputs green text
console.log(colors.red.underline('i like cake and pies')) // outputs red underlined text
console.log(colors.inverse('inverse the color')); // inverses the color
console.log(colors.rainbow('OMG Rainbows!')); // rainbow
console.log(colors.trap('Run the trap')); // Drops the bass
```
I prefer the first way. Some people seem to be afraid of extending `String.prototype` and prefer the second way.
If you are writing good code you will never have an issue with the first approach. If you really don't want to touch `String.prototype`, the second usage will not touch `String` native object.
## Disabling Colors
To disable colors you can pass the following arguments in the command line to your application:
```bash
node myapp.js --no-color
```
## Console.log [string substitution](http://nodejs.org/docs/latest/api/console.html#console_console_log_data)
```js
var name = 'Marak';
console.log(colors.green('Hello %s'), name);
// outputs -> 'Hello Marak'
```
## Custom themes
### Using standard API
```js
var colors = require('colors');
colors.setTheme({
silly: 'rainbow',
input: 'grey',
verbose: 'cyan',
prompt: 'grey',
info: 'green',
data: 'grey',
help: 'cyan',
warn: 'yellow',
debug: 'blue',
error: 'red'
});
// outputs red text
console.log("this is an error".error);
// outputs yellow text
console.log("this is a warning".warn);
```
### Using string safe API
```js
var colors = require('colors/safe');
// set single property
var error = colors.red;
error('this is red');
// set theme
colors.setTheme({
silly: 'rainbow',
input: 'grey',
verbose: 'cyan',
prompt: 'grey',
info: 'green',
data: 'grey',
help: 'cyan',
warn: 'yellow',
debug: 'blue',
error: 'red'
});
// outputs red text
console.log(colors.error("this is an error"));
// outputs yellow text
console.log(colors.warn("this is a warning"));
```
You can also combine them:
```javascript
var colors = require('colors');
colors.setTheme({
custom: ['red', 'underline']
});
console.log('test'.custom);
```
*Protip: There is a secret undocumented style in `colors`. If you find the style you can summon him.*
var colors = require('../lib/index');
console.log("First some yellow text".yellow);
console.log("Underline that text".yellow.underline);
console.log("Make it bold and red".red.bold);
console.log(("Double Raindows All Day Long").rainbow)
console.log("Drop the bass".trap)
console.log("DROP THE RAINBOW BASS".trap.rainbow)
console.log('Chains are also cool.'.bold.italic.underline.red); // styles not widely supported
console.log('So '.green + 'are'.underline + ' ' + 'inverse'.inverse + ' styles! '.yellow.bold); // styles not widely supported
console.log("Zebras are so fun!".zebra);
//
// Remark: .strikethrough may not work with Mac OS Terminal App
//
console.log("This is " + "not".strikethrough + " fun.");
console.log('Background color attack!'.black.bgWhite)
console.log('Use random styles on everything!'.random)
console.log('America, Heck Yeah!'.america)
console.log('Setting themes is useful')
//
// Custom themes
//
console.log('Generic logging theme as JSON'.green.bold.underline);
// Load theme with JSON literal
colors.setTheme({
silly: 'rainbow',
input: 'grey',
verbose: 'cyan',
prompt: 'grey',
info: 'green',
data: 'grey',
help: 'cyan',
warn: 'yellow',
debug: 'blue',
error: 'red'
});
// outputs red text
console.log("this is an error".error);
// outputs yellow text
console.log("this is a warning".warn);
// outputs grey text
console.log("this is an input".input);
console.log('Generic logging theme as file'.green.bold.underline);
// Load a theme from file
colors.setTheme(__dirname + '/../themes/generic-logging.js');
// outputs red text
console.log("this is an error".error);
// outputs yellow text
console.log("this is a warning".warn);
// outputs grey text
console.log("this is an input".input);
//console.log("Don't summon".zalgo)
\ No newline at end of file
var colors = require('../safe');
console.log(colors.yellow("First some yellow text"));
console.log(colors.yellow.underline("Underline that text"));
console.log(colors.red.bold("Make it bold and red"));
console.log(colors.rainbow("Double Raindows All Day Long"))
console.log(colors.trap("Drop the bass"))
console.log(colors.rainbow(colors.trap("DROP THE RAINBOW BASS")));
console.log(colors.bold.italic.underline.red('Chains are also cool.')); // styles not widely supported
console.log(colors.green('So ') + colors.underline('are') + ' ' + colors.inverse('inverse') + colors.yellow.bold(' styles! ')); // styles not widely supported
console.log(colors.zebra("Zebras are so fun!"));
console.log("This is " + colors.strikethrough("not") + " fun.");
console.log(colors.black.bgWhite('Background color attack!'));
console.log(colors.random('Use random styles on everything!'))
console.log(colors.america('America, Heck Yeah!'));
console.log('Setting themes is useful')
//
// Custom themes
//
//console.log('Generic logging theme as JSON'.green.bold.underline);
// Load theme with JSON literal
colors.setTheme({
silly: 'rainbow',
input: 'grey',
verbose: 'cyan',
prompt: 'grey',
info: 'green',
data: 'grey',
help: 'cyan',
warn: 'yellow',
debug: 'blue',
error: 'red'
});
// outputs red text
console.log(colors.error("this is an error"));
// outputs yellow text
console.log(colors.warn("this is a warning"));
// outputs grey text
console.log(colors.input("this is an input"));
// console.log('Generic logging theme as file'.green.bold.underline);
// Load a theme from file
colors.setTheme(__dirname + '/../themes/generic-logging.js');
// outputs red text
console.log(colors.error("this is an error"));
// outputs yellow text
console.log(colors.warn("this is a warning"));
// outputs grey text
console.log(colors.input("this is an input"));
// console.log(colors.zalgo("Don't summon him"))
/*
The MIT License (MIT)
Original Library
- Copyright (c) Marak Squires
Additional functionality
- 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.
*/
var colors = {};
module['exports'] = colors;
colors.themes = {};
var ansiStyles = colors.styles = require('./styles');
var defineProps = Object.defineProperties;
colors.supportsColor = require('./system/supports-colors');
if (typeof colors.enabled === "undefined") {
colors.enabled = colors.supportsColor;
}
colors.stripColors = colors.strip = function(str){
return ("" + str).replace(/\x1B\[\d+m/g, '');
};
var stylize = colors.stylize = function stylize (str, style) {
if (!colors.enabled) {
return str+'';
}
return ansiStyles[style].open + str + ansiStyles[style].close;
}
var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g;
var escapeStringRegexp = function (str) {
if (typeof str !== 'string') {
throw new TypeError('Expected a string');
}
return str.replace(matchOperatorsRe, '\\$&');
}
function build(_styles) {
var builder = function builder() {
return applyStyle.apply(builder, arguments);
};
builder._styles = _styles;
// __proto__ is used because we must return a function, but there is
// no way to create a function with a different prototype.
builder.__proto__ = proto;
return builder;
}
var styles = (function () {
var ret = {};
ansiStyles.grey = ansiStyles.gray;
Object.keys(ansiStyles).forEach(function (key) {
ansiStyles[key].closeRe = new RegExp(escapeStringRegexp(ansiStyles[key].close), 'g');
ret[key] = {
get: function () {
return build(this._styles.concat(key));
}
};
});
return ret;
})();
var proto = defineProps(function colors() {}, styles);
function applyStyle() {
var args = arguments;
var argsLen = args.length;
var str = argsLen !== 0 && String(arguments[0]);
if (argsLen > 1) {
for (var a = 1; a < argsLen; a++) {
str += ' ' + args[a];
}
}
if (!colors.enabled || !str) {
return str;
}
var nestedStyles = this._styles;
var i = nestedStyles.length;
while (i--) {
var code = ansiStyles[nestedStyles[i]];
str = code.open + str.replace(code.closeRe, code.open) + code.close;
}
return str;
}
function applyTheme (theme) {
for (var style in theme) {
(function(style){
colors[style] = function(str){
if (typeof theme[style] === 'object'){
var out = str;
for (var i in theme[style]){
out = colors[theme[style][i]](out);
}
return out;
}
return colors[theme[style]](str);
};
})(style)
}
}
colors.setTheme = function (theme) {
if (typeof theme === 'string') {
try {
colors.themes[theme] = require(theme);
applyTheme(colors.themes[theme]);
return colors.themes[theme];
} catch (err) {
console.log(err);
return err;
}
} else {
applyTheme(theme);
}
};
function init() {
var ret = {};
Object.keys(styles).forEach(function (name) {
ret[name] = {
get: function () {
return build([name]);
}
};
});
return ret;
}
var sequencer = function sequencer (map, str) {
var exploded = str.split(""), i = 0;
exploded = exploded.map(map);
return exploded.join("");
};
// custom formatter methods
colors.trap = require('./custom/trap');
colors.zalgo = require('./custom/zalgo');
// maps
colors.maps = {};
colors.maps.america = require('./maps/america');
colors.maps.zebra = require('./maps/zebra');
colors.maps.rainbow = require('./maps/rainbow');
colors.maps.random = require('./maps/random')
for (var map in colors.maps) {
(function(map){
colors[map] = function (str) {
return sequencer(colors.maps[map], str);
}
})(map)
}
defineProps(colors, init());
\ No newline at end of file
module['exports'] = function runTheTrap (text, options) {
var result = "";
text = text || "Run the trap, drop the bass";
text = text.split('');
var trap = {
a: ["\u0040", "\u0104", "\u023a", "\u0245", "\u0394", "\u039b", "\u0414"],
b: ["\u00df", "\u0181", "\u0243", "\u026e", "\u03b2", "\u0e3f"],
c: ["\u00a9", "\u023b", "\u03fe"],
d: ["\u00d0", "\u018a", "\u0500" , "\u0501" ,"\u0502", "\u0503"],
e: ["\u00cb", "\u0115", "\u018e", "\u0258", "\u03a3", "\u03be", "\u04bc", "\u0a6c"],
f: ["\u04fa"],
g: ["\u0262"],
h: ["\u0126", "\u0195", "\u04a2", "\u04ba", "\u04c7", "\u050a"],
i: ["\u0f0f"],
j: ["\u0134"],
k: ["\u0138", "\u04a0", "\u04c3", "\u051e"],
l: ["\u0139"],
m: ["\u028d", "\u04cd", "\u04ce", "\u0520", "\u0521", "\u0d69"],
n: ["\u00d1", "\u014b", "\u019d", "\u0376", "\u03a0", "\u048a"],
o: ["\u00d8", "\u00f5", "\u00f8", "\u01fe", "\u0298", "\u047a", "\u05dd", "\u06dd", "\u0e4f"],
p: ["\u01f7", "\u048e"],
q: ["\u09cd"],
r: ["\u00ae", "\u01a6", "\u0210", "\u024c", "\u0280", "\u042f"],
s: ["\u00a7", "\u03de", "\u03df", "\u03e8"],
t: ["\u0141", "\u0166", "\u0373"],
u: ["\u01b1", "\u054d"],
v: ["\u05d8"],
w: ["\u0428", "\u0460", "\u047c", "\u0d70"],
x: ["\u04b2", "\u04fe", "\u04fc", "\u04fd"],
y: ["\u00a5", "\u04b0", "\u04cb"],
z: ["\u01b5", "\u0240"]
}
text.forEach(function(c){
c = c.toLowerCase();
var chars = trap[c] || [" "];
var rand = Math.floor(Math.random() * chars.length);
if (typeof trap[c] !== "undefined") {
result += trap[c][rand];
} else {
result += c;
}
});
return result;
}
// please no
module['exports'] = function zalgo(text, options) {
text = text || " he is here ";
var soul = {
"up" : [
'̍', '̎', '̄', '̅',
'̿', '̑', '̆', '̐',
'͒', '͗', '͑', '̇',
'̈', '̊', '͂', '̓',
'̈', '͊', '͋', '͌',
'̃', '̂', '̌', '͐',
'̀', '́', '̋', '̏',
'̒', '̓', '̔', '̽',
'̉', 'ͣ', 'ͤ', 'ͥ',
'ͦ', 'ͧ', 'ͨ', 'ͩ',
'ͪ', 'ͫ', 'ͬ', 'ͭ',
'ͮ', 'ͯ', '̾', '͛',
'͆', '̚'
],
"down" : [
'̖', '̗', '̘', '̙',
'̜', '̝', '̞', '̟',
'̠', '̤', '̥', '̦',
'̩', '̪', '̫', '̬',
'̭', '̮', '̯', '̰',
'̱', '̲', '̳', '̹',
'̺', '̻', '̼', 'ͅ',
'͇', '͈', '͉', '͍',
'͎', '͓', '͔', '͕',
'͖', '͙', '͚', '̣'
],
"mid" : [
'̕', '̛', '̀', '́',
'͘', '̡', '̢', '̧',
'̨', '̴', '̵', '̶',
'͜', '͝', '͞',
'͟', '͠', '͢', '̸',
'̷', '͡', ' ҉'
]
},
all = [].concat(soul.up, soul.down, soul.mid),
zalgo = {};
function randomNumber(range) {
var r = Math.floor(Math.random() * range);
return r;
}
function is_char(character) {
var bool = false;
all.filter(function (i) {
bool = (i === character);
});
return bool;
}
function heComes(text, options) {
var result = '', counts, l;
options = options || {};
options["up"] = typeof options["up"] !== 'undefined' ? options["up"] : true;
options["mid"] = typeof options["mid"] !== 'undefined' ? options["mid"] : true;
options["down"] = typeof options["down"] !== 'undefined' ? options["down"] : true;
options["size"] = typeof options["size"] !== 'undefined' ? options["size"] : "maxi";
text = text.split('');
for (l in text) {
if (is_char(l)) {
continue;
}
result = result + text[l];
counts = {"up" : 0, "down" : 0, "mid" : 0};
switch (options.size) {
case 'mini':
counts.up = randomNumber(8);
counts.mid = randomNumber(2);
counts.down = randomNumber(8);
break;
case 'maxi':
counts.up = randomNumber(16) + 3;
counts.mid = randomNumber(4) + 1;
counts.down = randomNumber(64) + 3;
break;
default:
counts.up = randomNumber(8) + 1;
counts.mid = randomNumber(6) / 2;
counts.down = randomNumber(8) + 1;
break;
}
var arr = ["up", "mid", "down"];
for (var d in arr) {
var index = arr[d];
for (var i = 0 ; i <= counts[index]; i++) {
if (options[index]) {
result = result + soul[index][randomNumber(soul[index].length)];
}
}
}
}
return result;
}
// don't summon him
return heComes(text, options);
}
var colors = require('./colors');
module['exports'] = function () {
//
// Extends prototype of native string object to allow for "foo".red syntax
//
var addProperty = function (color, func) {
String.prototype.__defineGetter__(color, func);
};
var sequencer = function sequencer (map, str) {
return function () {
var exploded = this.split(""), i = 0;
exploded = exploded.map(map);
return exploded.join("");
}
};
addProperty('strip', function () {
return colors.strip(this);
});
addProperty('stripColors', function () {
return colors.strip(this);
});
addProperty("trap", function(){
return colors.trap(this);
});
addProperty("zalgo", function(){
return colors.zalgo(this);
});
addProperty("zebra", function(){
return colors.zebra(this);
});
addProperty("rainbow", function(){
return colors.rainbow(this);
});
addProperty("random", function(){
return colors.random(this);
});
addProperty("america", function(){
return colors.america(this);
});
//
// Iterate through all default styles and colors
//
var x = Object.keys(colors.styles);
x.forEach(function (style) {
addProperty(style, function () {
return colors.stylize(this, style);
});
});
function applyTheme(theme) {
//
// Remark: This is a list of methods that exist
// on String that you should not overwrite.
//
var stringPrototypeBlacklist = [
'__defineGetter__', '__defineSetter__', '__lookupGetter__', '__lookupSetter__', 'charAt', 'constructor',
'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'valueOf', 'charCodeAt',
'indexOf', 'lastIndexof', 'length', 'localeCompare', 'match', 'replace', 'search', 'slice', 'split', 'substring',
'toLocaleLowerCase', 'toLocaleUpperCase', 'toLowerCase', 'toUpperCase', 'trim', 'trimLeft', 'trimRight'
];
Object.keys(theme).forEach(function (prop) {
if (stringPrototypeBlacklist.indexOf(prop) !== -1) {
console.log('warn: '.red + ('String.prototype' + prop).magenta + ' is probably something you don\'t want to override. Ignoring style name');
}
else {
if (typeof(theme[prop]) === 'string') {
colors[prop] = colors[theme[prop]];
addProperty(prop, function () {
return colors[theme[prop]](this);
});
}
else {
addProperty(prop, function () {
var ret = this;
for (var t = 0; t < theme[prop].length; t++) {
ret = colors[theme[prop][t]](ret);
}
return ret;
});
}
}
});
}
colors.setTheme = function (theme) {
if (typeof theme === 'string') {
try {
colors.themes[theme] = require(theme);
applyTheme(colors.themes[theme]);
return colors.themes[theme];
} catch (err) {
console.log(err);
return err;
}
} else {
applyTheme(theme);
}
};
};
\ No newline at end of file
var colors = require('./colors');
module['exports'] = colors;
// Remark: By default, colors will add style properties to String.prototype
//
// If you don't wish to extend String.prototype you can do this instead and native String will not be touched
//
// var colors = require('colors/safe);
// colors.red("foo")
//
//
require('./extendStringPrototype')();
\ No newline at end of file
var colors = require('../colors');
module['exports'] = (function() {
return function (letter, i, exploded) {
if(letter === " ") return letter;
switch(i%3) {
case 0: return colors.red(letter);
case 1: return colors.white(letter)
case 2: return colors.blue(letter)
}
}
})();
\ No newline at end of file
var colors = require('../colors');
module['exports'] = (function () {
var rainbowColors = ['red', 'yellow', 'green', 'blue', 'magenta']; //RoY G BiV
return function (letter, i, exploded) {
if (letter === " ") {
return letter;
} else {
return colors[rainbowColors[i++ % rainbowColors.length]](letter);
}
};
})();
var colors = require('../colors');
module['exports'] = (function () {
var available = ['underline', 'inverse', 'grey', 'yellow', 'red', 'green', 'blue', 'white', 'cyan', 'magenta'];
return function(letter, i, exploded) {
return letter === " " ? letter : colors[available[Math.round(Math.random() * (available.length - 1))]](letter);
};
})();
\ No newline at end of file
var colors = require('../colors');
module['exports'] = function (letter, i, exploded) {
return i % 2 === 0 ? letter : colors.inverse(letter);
};
\ No newline at end of file
/*
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.
*/
var styles = {};
module['exports'] = styles;
var codes = {
reset: [0, 0],
bold: [1, 22],
dim: [2, 22],
italic: [3, 23],
underline: [4, 24],
inverse: [7, 27],
hidden: [8, 28],
strikethrough: [9, 29],
black: [30, 39],
red: [31, 39],
green: [32, 39],
yellow: [33, 39],
blue: [34, 39],
magenta: [35, 39],
cyan: [36, 39],
white: [37, 39],
gray: [90, 39],
grey: [90, 39],
bgBlack: [40, 49],
bgRed: [41, 49],
bgGreen: [42, 49],
bgYellow: [43, 49],
bgBlue: [44, 49],
bgMagenta: [45, 49],
bgCyan: [46, 49],
bgWhite: [47, 49],
// legacy styles for colors pre v1.0.0
blackBG: [40, 49],
redBG: [41, 49],
greenBG: [42, 49],
yellowBG: [43, 49],
blueBG: [44, 49],
magentaBG: [45, 49],
cyanBG: [46, 49],
whiteBG: [47, 49]
};
Object.keys(codes).forEach(function (key) {
var val = codes[key];
var style = styles[key] = [];
style.open = '\u001b[' + val[0] + 'm';
style.close = '\u001b[' + val[1] + 'm';
});
\ No newline at end of file
/*
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.
*/
var argv = process.argv;
module.exports = (function () {
if (argv.indexOf('--no-color') !== -1 ||
argv.indexOf('--color=false') !== -1) {
return false;
}
if (argv.indexOf('--color') !== -1 ||
argv.indexOf('--color=true') !== -1 ||
argv.indexOf('--color=always') !== -1) {
return true;
}
if (process.stdout && !process.stdout.isTTY) {
return false;
}
if (process.platform === 'win32') {
return true;
}
if ('COLORTERM' in process.env) {
return true;
}
if (process.env.TERM === 'dumb') {
return false;
}
if (/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(process.env.TERM)) {
return true;
}
return false;
})();
\ No newline at end of file
{
"_args": [
[
{
"raw": "colors@>=0.6.0",
"scope": null,
"escapedName": "colors",
"name": "colors",
"rawSpec": ">=0.6.0",
"spec": ">=0.6.0",
"type": "range"
},
"/Users/scollado/Documents/controlAcceso/node_modules/node-static"
]
],
"_from": "colors@>=0.6.0",
"_id": "colors@1.1.2",
"_inCache": true,
"_location": "/colors",
"_nodeVersion": "0.11.13",
"_npmUser": {
"name": "marak",
"email": "marak.squires@gmail.com"
},
"_npmVersion": "2.1.8",
"_phantomChildren": {},
"_requested": {
"raw": "colors@>=0.6.0",
"scope": null,
"escapedName": "colors",
"name": "colors",
"rawSpec": ">=0.6.0",
"spec": ">=0.6.0",
"type": "range"
},
"_requiredBy": [
"/node-static"
],
"_resolved": "https://registry.npmjs.org/colors/-/colors-1.1.2.tgz",
"_shasum": "168a4701756b6a7f51a12ce0c97bfa28c084ed63",
"_shrinkwrap": null,
"_spec": "colors@>=0.6.0",
"_where": "/Users/scollado/Documents/controlAcceso/node_modules/node-static",
"author": {
"name": "Marak Squires"
},
"bugs": {
"url": "https://github.com/Marak/colors.js/issues"
},
"dependencies": {},
"description": "get colors in your node.js console",
"devDependencies": {},
"directories": {},
"dist": {
"shasum": "168a4701756b6a7f51a12ce0c97bfa28c084ed63",
"tarball": "https://registry.npmjs.org/colors/-/colors-1.1.2.tgz"
},
"engines": {
"node": ">=0.1.90"
},
"files": [
"examples",
"lib",
"LICENSE",
"safe.js",
"themes"
],
"gitHead": "8bf2ad9fa695dcb30b7e9fd83691b139fd6655c4",
"homepage": "https://github.com/Marak/colors.js",
"keywords": [
"ansi",
"terminal",
"colors"
],
"license": "MIT",
"main": "lib",
"maintainers": [
{
"name": "marak",
"email": "marak.squires@gmail.com"
}
],
"name": "colors",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/Marak/colors.js.git"
},
"scripts": {
"test": "node tests/basic-test.js && node tests/safe-test.js"
},
"version": "1.1.2"
}
//
// Remark: Requiring this file will use the "safe" colors API which will not touch String.prototype
//
// var colors = require('colors/safe);
// colors.red("foo")
//
//
var colors = require('./lib/colors');
module['exports'] = colors;
\ No newline at end of file
module['exports'] = {
silly: 'rainbow',
input: 'grey',
verbose: 'cyan',
prompt: 'grey',
info: 'green',
data: 'grey',
help: 'cyan',
warn: 'yellow',
debug: 'blue',
error: 'red'
};
\ No newline at end of file
{
"_args": [
[
{
"raw": "component-bind@1.0.0",
"scope": null,
"escapedName": "component-bind",
"name": "component-bind",
"rawSpec": "1.0.0",
"spec": "1.0.0",
"type": "version"
},
"/Users/scollado/controlAcceso/node_modules/socket.io-client"
"component-bind@1.0.0",
"/Users/scollado/proyecto-micro"
]
],
"_from": "component-bind@1.0.0",
"_id": "component-bind@1.0.0",
"_inCache": true,
"_inBundle": false,
"_integrity": "sha1-AMYIq33Nk4l8AAllGx06jh5zu9E=",
"_location": "/component-bind",
"_npmUser": {
"name": "tootallnate",
"email": "nathan@tootallnate.net"
},
"_npmVersion": "1.4.9",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "component-bind@1.0.0",
"scope": null,
"escapedName": "component-bind",
"name": "component-bind",
"escapedName": "component-bind",
"rawSpec": "1.0.0",
"spec": "1.0.0",
"type": "version"
"saveSpec": null,
"fetchSpec": "1.0.0"
},
"_requiredBy": [
"/socket.io-client"
],
"_resolved": "https://registry.npmjs.org/component-bind/-/component-bind-1.0.0.tgz",
"_shasum": "00c608ab7dcd93897c0009651b1d3a8e1e73bbd1",
"_shrinkwrap": null,
"_spec": "component-bind@1.0.0",
"_where": "/Users/scollado/controlAcceso/node_modules/socket.io-client",
"_spec": "1.0.0",
"_where": "/Users/scollado/proyecto-micro",
"bugs": {
"url": "https://github.com/component/bind/issues"
},
......@@ -48,31 +35,17 @@
"bind/index.js": "index.js"
}
},
"dependencies": {},
"description": "function binding utility",
"devDependencies": {
"mocha": "*",
"should": "*"
},
"directories": {},
"dist": {
"shasum": "00c608ab7dcd93897c0009651b1d3a8e1e73bbd1",
"tarball": "https://registry.npmjs.org/component-bind/-/component-bind-1.0.0.tgz"
},
"homepage": "https://github.com/component/bind",
"homepage": "https://github.com/component/bind#readme",
"keywords": [
"bind",
"utility"
],
"maintainers": [
{
"name": "tootallnate",
"email": "nathan@tootallnate.net"
}
],
"name": "component-bind",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git+https://github.com/component/bind.git"
......
{
"_args": [
[
{
"raw": "component-emitter@1.2.1",
"scope": null,
"escapedName": "component-emitter",
"name": "component-emitter",
"rawSpec": "1.2.1",
"spec": "1.2.1",
"type": "version"
},
"/Users/scollado/controlAcceso/node_modules/socket.io-client"
"component-emitter@1.2.1",
"/Users/scollado/proyecto-micro"
]
],
"_from": "component-emitter@1.2.1",
"_id": "component-emitter@1.2.1",
"_inCache": true,
"_inBundle": false,
"_integrity": "sha1-E3kY1teCg/ffemt8WmPhQOaUJeY=",
"_location": "/component-emitter",
"_nodeVersion": "0.12.4",
"_npmOperationalInternal": {
"host": "packages-12-west.internal.npmjs.com",
"tmp": "tmp/component-emitter-1.2.1.tgz_1461005707641_0.14232611074112356"
},
"_npmUser": {
"name": "nami-doc",
"email": "karp@hotmail.fr"
},
"_npmVersion": "2.10.1",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "component-emitter@1.2.1",
"scope": null,
"escapedName": "component-emitter",
"name": "component-emitter",
"escapedName": "component-emitter",
"rawSpec": "1.2.1",
"spec": "1.2.1",
"type": "version"
"saveSpec": null,
"fetchSpec": "1.2.1"
},
"_requiredBy": [
"/engine.io-client",
......@@ -43,10 +27,8 @@
"/socket.io-parser"
],
"_resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.2.1.tgz",
"_shasum": "137918d6d78283f7df7a6b7c5a63e140e69425e6",
"_shrinkwrap": null,
"_spec": "component-emitter@1.2.1",
"_where": "/Users/scollado/controlAcceso/node_modules/socket.io-client",
"_spec": "1.2.1",
"_where": "/Users/scollado/proyecto-micro",
"bugs": {
"url": "https://github.com/component/emitter/issues"
},
......@@ -55,158 +37,19 @@
"emitter/index.js": "index.js"
}
},
"dependencies": {},
"description": "Event emitter",
"devDependencies": {
"mocha": "*",
"should": "*"
},
"directories": {},
"dist": {
"shasum": "137918d6d78283f7df7a6b7c5a63e140e69425e6",
"tarball": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.2.1.tgz"
},
"files": [
"index.js",
"LICENSE"
],
"gitHead": "187492ab8028c7221b589bdfd482b715149cd868",
"homepage": "https://github.com/component/emitter#readme",
"license": "MIT",
"main": "index.js",
"maintainers": [
{
"name": "tootallnate",
"email": "nathan@tootallnate.net"
},
{
"name": "hughsk",
"email": "hughskennedy@gmail.com"
},
{
"name": "trevorgerhardt",
"email": "trevorgerhardt@gmail.com"
},
{
"name": "timaschew",
"email": "timaschew@gmail.com"
},
{
"name": "tjholowaychuk",
"email": "tj@vision-media.ca"
},
{
"name": "rauchg",
"email": "rauchg@gmail.com"
},
{
"name": "retrofox",
"email": "rdsuarez@gmail.com"
},
{
"name": "coreh",
"email": "thecoreh@gmail.com"
},
{
"name": "forbeslindesay",
"email": "forbes@lindesay.co.uk"
},
{
"name": "kelonye",
"email": "kelonyemitchel@gmail.com"
},
{
"name": "mattmueller",
"email": "mattmuelle@gmail.com"
},
{
"name": "yields",
"email": "yields@icloud.com"
},
{
"name": "anthonyshort",
"email": "antshort@gmail.com"
},
{
"name": "jongleberry",
"email": "jonathanrichardong@gmail.com"
},
{
"name": "ianstormtaylor",
"email": "ian@ianstormtaylor.com"
},
{
"name": "cristiandouce",
"email": "cristian@gravityonmars.com"
},
{
"name": "swatinem",
"email": "arpad.borsos@googlemail.com"
},
{
"name": "stagas",
"email": "gstagas@gmail.com"
},
{
"name": "amasad",
"email": "amjad.masad@gmail.com"
},
{
"name": "juliangruber",
"email": "julian@juliangruber.com"
},
{
"name": "calvinfo",
"email": "calvin@calv.info"
},
{
"name": "dominicbarnes",
"email": "dominic@dbarnes.info"
},
{
"name": "blakeembrey",
"email": "hello@blakeembrey.com"
},
{
"name": "timoxley",
"email": "secoif@gmail.com"
},
{
"name": "jonathanong",
"email": "jonathanrichardong@gmail.com"
},
{
"name": "queckezz",
"email": "fabian.eichenberger@gmail.com"
},
{
"name": "nami-doc",
"email": "vendethiel@hotmail.fr"
},
{
"name": "clintwood",
"email": "clint@anotherway.co.za"
},
{
"name": "thehydroimpulse",
"email": "dnfagnan@gmail.com"
},
{
"name": "stephenmathieson",
"email": "me@stephenmathieson.com"
},
{
"name": "dfcreative",
"email": "df.creative@gmail.com"
},
{
"name": "defunctzombie",
"email": "shtylman@gmail.com"
}
],
"name": "component-emitter",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git+https://github.com/component/emitter.git"
......
{
"_args": [
[
{
"raw": "component-inherit@0.0.3",
"scope": null,
"escapedName": "component-inherit",
"name": "component-inherit",
"rawSpec": "0.0.3",
"spec": "0.0.3",
"type": "version"
},
"/Users/scollado/controlAcceso/node_modules/engine.io-client"
"component-inherit@0.0.3",
"/Users/scollado/proyecto-micro"
]
],
"_from": "component-inherit@0.0.3",
"_id": "component-inherit@0.0.3",
"_inCache": true,
"_inBundle": false,
"_integrity": "sha1-ZF/ErfWLcrZJ1crmUTVhnbJv8UM=",
"_location": "/component-inherit",
"_npmUser": {
"name": "coreh",
"email": "thecoreh@gmail.com"
},
"_npmVersion": "1.3.24",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "component-inherit@0.0.3",
"scope": null,
"escapedName": "component-inherit",
"name": "component-inherit",
"escapedName": "component-inherit",
"rawSpec": "0.0.3",
"spec": "0.0.3",
"type": "version"
"saveSpec": null,
"fetchSpec": "0.0.3"
},
"_requiredBy": [
"/engine.io-client"
],
"_resolved": "https://registry.npmjs.org/component-inherit/-/component-inherit-0.0.3.tgz",
"_shasum": "645fc4adf58b72b649d5cae65135619db26ff143",
"_shrinkwrap": null,
"_spec": "component-inherit@0.0.3",
"_where": "/Users/scollado/controlAcceso/node_modules/engine.io-client",
"_spec": "0.0.3",
"_where": "/Users/scollado/proyecto-micro",
"bugs": {
"url": "https://github.com/component/inherit/issues"
},
......@@ -50,26 +37,12 @@
},
"dependencies": {},
"description": "Prototype inheritance utility",
"devDependencies": {},
"directories": {},
"dist": {
"shasum": "645fc4adf58b72b649d5cae65135619db26ff143",
"tarball": "https://registry.npmjs.org/component-inherit/-/component-inherit-0.0.3.tgz"
},
"homepage": "https://github.com/component/inherit",
"homepage": "https://github.com/component/inherit#readme",
"keywords": [
"inherit",
"utility"
],
"maintainers": [
{
"name": "coreh",
"email": "thecoreh@gmail.com"
}
],
"name": "component-inherit",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git+https://github.com/component/inherit.git"
......
{
"_args": [
[
{
"raw": "content-disposition@0.5.2",
"scope": null,
"escapedName": "content-disposition",
"name": "content-disposition",
"rawSpec": "0.5.2",
"spec": "0.5.2",
"type": "version"
},
"/Users/scollado/Documents/controlAcceso/node_modules/express"
"content-disposition@0.5.2",
"/Users/scollado/proyecto-micro"
]
],
"_from": "content-disposition@0.5.2",
"_id": "content-disposition@0.5.2",
"_inCache": true,
"_inBundle": false,
"_integrity": "sha1-DPaLud318r55YcOoUXjLhdunjLQ=",
"_location": "/content-disposition",
"_nodeVersion": "4.6.0",
"_npmOperationalInternal": {
"host": "packages-18-east.internal.npmjs.com",
"tmp": "tmp/content-disposition-0.5.2.tgz_1481246224565_0.35659545403905213"
},
"_npmUser": {
"name": "dougwilson",
"email": "doug@somethingdoug.com"
},
"_npmVersion": "2.15.9",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "content-disposition@0.5.2",
"scope": null,
"escapedName": "content-disposition",
"name": "content-disposition",
"escapedName": "content-disposition",
"rawSpec": "0.5.2",
"spec": "0.5.2",
"type": "version"
"saveSpec": null,
"fetchSpec": "0.5.2"
},
"_requiredBy": [
"/express"
],
"_resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.2.tgz",
"_shasum": "0cf68bb9ddf5f2be7961c3a85178cb85dba78cb4",
"_shrinkwrap": null,
"_spec": "content-disposition@0.5.2",
"_where": "/Users/scollado/Documents/controlAcceso/node_modules/express",
"_spec": "0.5.2",
"_where": "/Users/scollado/proyecto-micro",
"bugs": {
"url": "https://github.com/jshttp/content-disposition/issues"
},
......@@ -54,7 +36,6 @@
"email": "doug@somethingdoug.com"
}
],
"dependencies": {},
"description": "Create and parse Content-Disposition header",
"devDependencies": {
"eslint": "3.11.1",
......@@ -64,11 +45,6 @@
"istanbul": "0.4.5",
"mocha": "1.21.5"
},
"directories": {},
"dist": {
"shasum": "0cf68bb9ddf5f2be7961c3a85178cb85dba78cb4",
"tarball": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.2.tgz"
},
"engines": {
"node": ">= 0.6"
},
......@@ -78,7 +54,6 @@
"README.md",
"index.js"
],
"gitHead": "2a08417377cf55678c9f870b305f3c6c088920f3",
"homepage": "https://github.com/jshttp/content-disposition#readme",
"keywords": [
"content-disposition",
......@@ -87,15 +62,7 @@
"res"
],
"license": "MIT",
"maintainers": [
{
"name": "dougwilson",
"email": "doug@somethingdoug.com"
}
],
"name": "content-disposition",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git+https://github.com/jshttp/content-disposition.git"
......
{
"_args": [
[
{
"raw": "content-type@~1.0.4",
"scope": null,
"escapedName": "content-type",
"name": "content-type",
"rawSpec": "~1.0.4",
"spec": ">=1.0.4 <1.1.0",
"type": "range"
},
"/Users/scollado/Documents/controlAcceso/node_modules/express"
"content-type@1.0.4",
"/Users/scollado/proyecto-micro"
]
],
"_from": "content-type@>=1.0.4 <1.1.0",
"_from": "content-type@1.0.4",
"_id": "content-type@1.0.4",
"_inCache": true,
"_inBundle": false,
"_integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==",
"_location": "/content-type",
"_nodeVersion": "6.11.3",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/content-type-1.0.4.tgz_1505166155546_0.06956395204178989"
},
"_npmUser": {
"name": "dougwilson",
"email": "doug@somethingdoug.com"
},
"_npmVersion": "5.3.0",
"_phantomChildren": {},
"_requested": {
"raw": "content-type@~1.0.4",
"scope": null,
"escapedName": "content-type",
"type": "version",
"registry": true,
"raw": "content-type@1.0.4",
"name": "content-type",
"rawSpec": "~1.0.4",
"spec": ">=1.0.4 <1.1.0",
"type": "range"
"escapedName": "content-type",
"rawSpec": "1.0.4",
"saveSpec": null,
"fetchSpec": "1.0.4"
},
"_requiredBy": [
"/body-parser",
"/express"
],
"_resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz",
"_shasum": "e138cc75e040c727b1966fe5e5f8c9aee256fe3b",
"_shrinkwrap": null,
"_spec": "content-type@~1.0.4",
"_where": "/Users/scollado/Documents/controlAcceso/node_modules/express",
"_spec": "1.0.4",
"_where": "/Users/scollado/proyecto-micro",
"author": {
"name": "Douglas Christopher Wilson",
"email": "doug@somethingdoug.com"
......@@ -53,7 +35,6 @@
"bugs": {
"url": "https://github.com/jshttp/content-type/issues"
},
"dependencies": {},
"description": "Create and parse HTTP Content-Type header",
"devDependencies": {
"eslint": "3.19.0",
......@@ -65,12 +46,6 @@
"istanbul": "0.4.5",
"mocha": "~1.21.5"
},
"directories": {},
"dist": {
"integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==",
"shasum": "e138cc75e040c727b1966fe5e5f8c9aee256fe3b",
"tarball": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz"
},
"engines": {
"node": ">= 0.6"
},
......@@ -80,7 +55,6 @@
"README.md",
"index.js"
],
"gitHead": "d22f8ac6c407789c906bd6fed137efde8f772b09",
"homepage": "https://github.com/jshttp/content-type#readme",
"keywords": [
"content-type",
......@@ -90,15 +64,7 @@
"rfc7231"
],
"license": "MIT",
"maintainers": [
{
"name": "dougwilson",
"email": "doug@somethingdoug.com"
}
],
"name": "content-type",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git+https://github.com/jshttp/content-type.git"
......
{
"_args": [
[
{
"raw": "cookie-signature@1.0.6",
"scope": null,
"escapedName": "cookie-signature",
"name": "cookie-signature",
"rawSpec": "1.0.6",
"spec": "1.0.6",
"type": "version"
},
"/Users/scollado/Documents/controlAcceso/node_modules/express"
"cookie-signature@1.0.6",
"/Users/scollado/proyecto-micro"
]
],
"_from": "cookie-signature@1.0.6",
"_id": "cookie-signature@1.0.6",
"_inCache": true,
"_inBundle": false,
"_integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=",
"_location": "/cookie-signature",
"_nodeVersion": "0.10.36",
"_npmUser": {
"name": "natevw",
"email": "natevw@yahoo.com"
},
"_npmVersion": "2.3.0",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "cookie-signature@1.0.6",
"scope": null,
"escapedName": "cookie-signature",
"name": "cookie-signature",
"escapedName": "cookie-signature",
"rawSpec": "1.0.6",
"spec": "1.0.6",
"type": "version"
"saveSpec": null,
"fetchSpec": "1.0.6"
},
"_requiredBy": [
"/express"
],
"_resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz",
"_shasum": "e303a882b342cc3ee8ca513a79999734dab3ae2c",
"_shrinkwrap": null,
"_spec": "cookie-signature@1.0.6",
"_where": "/Users/scollado/Documents/controlAcceso/node_modules/express",
"_spec": "1.0.6",
"_where": "/Users/scollado/proyecto-micro",
"author": {
"name": "TJ Holowaychuk",
"email": "tj@learnboost.com"
......@@ -54,13 +40,7 @@
"mocha": "*",
"should": "*"
},
"directories": {},
"dist": {
"shasum": "e303a882b342cc3ee8ca513a79999734dab3ae2c",
"tarball": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz"
},
"gitHead": "391b56cf44d88c493491b7e3fc53208cfb976d2a",
"homepage": "https://github.com/visionmedia/node-cookie-signature",
"homepage": "https://github.com/visionmedia/node-cookie-signature#readme",
"keywords": [
"cookie",
"sign",
......@@ -68,19 +48,7 @@
],
"license": "MIT",
"main": "index",
"maintainers": [
{
"name": "tjholowaychuk",
"email": "tj@vision-media.ca"
},
{
"name": "natevw",
"email": "natevw@yahoo.com"
}
],
"name": "cookie-signature",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git+https://github.com/visionmedia/node-cookie-signature.git"
......
{
"_args": [
[
{
"raw": "cookie@0.3.1",
"scope": null,
"escapedName": "cookie",
"name": "cookie",
"rawSpec": "0.3.1",
"spec": "0.3.1",
"type": "version"
},
"/Users/scollado/controlAcceso/node_modules/engine.io"
"cookie@0.3.1",
"/Users/scollado/proyecto-micro"
]
],
"_from": "cookie@0.3.1",
"_id": "cookie@0.3.1",
"_inCache": true,
"_inBundle": false,
"_integrity": "sha1-5+Ch+e9DtMi6klxcWpboBtFoc7s=",
"_location": "/cookie",
"_npmOperationalInternal": {
"host": "packages-12-west.internal.npmjs.com",
"tmp": "tmp/cookie-0.3.1.tgz_1464323556714_0.6435900838114321"
},
"_npmUser": {
"name": "dougwilson",
"email": "doug@somethingdoug.com"
},
"_npmVersion": "1.4.28",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "cookie@0.3.1",
"scope": null,
"escapedName": "cookie",
"name": "cookie",
"escapedName": "cookie",
"rawSpec": "0.3.1",
"spec": "0.3.1",
"type": "version"
"saveSpec": null,
"fetchSpec": "0.3.1"
},
"_requiredBy": [
"/engine.io"
"/engine.io",
"/express"
],
"_resolved": "https://registry.npmjs.org/cookie/-/cookie-0.3.1.tgz",
"_shasum": "e7e0a1f9ef43b4c8ba925c5c5a96e806d16873bb",
"_shrinkwrap": null,
"_spec": "cookie@0.3.1",
"_where": "/Users/scollado/controlAcceso/node_modules/engine.io",
"_spec": "0.3.1",
"_where": "/Users/scollado/proyecto-micro",
"author": {
"name": "Roman Shtylman",
"email": "shtylman@gmail.com"
......@@ -57,17 +41,11 @@
"email": "doug@somethingdoug.com"
}
],
"dependencies": {},
"description": "HTTP server cookie parsing and serialization",
"devDependencies": {
"istanbul": "0.4.3",
"mocha": "1.21.5"
},
"directories": {},
"dist": {
"shasum": "e7e0a1f9ef43b4c8ba925c5c5a96e806d16873bb",
"tarball": "https://registry.npmjs.org/cookie/-/cookie-0.3.1.tgz"
},
"engines": {
"node": ">= 0.6"
},
......@@ -77,22 +55,13 @@
"README.md",
"index.js"
],
"gitHead": "e3c77d497d66c8b8d4b677b8954c1b192a09f0b3",
"homepage": "https://github.com/jshttp/cookie",
"homepage": "https://github.com/jshttp/cookie#readme",
"keywords": [
"cookie",
"cookies"
],
"license": "MIT",
"maintainers": [
{
"name": "dougwilson",
"email": "doug@somethingdoug.com"
}
],
"name": "cookie",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git+https://github.com/jshttp/cookie.git"
......
{
"_args": [
[
{
"raw": "debug@~2.6.6",
"scope": null,
"escapedName": "debug",
"name": "debug",
"rawSpec": "~2.6.6",
"spec": ">=2.6.6 <2.7.0",
"type": "range"
},
"/Users/scollado/controlAcceso/node_modules/socket.io"
"debug@2.6.9",
"/Users/scollado/proyecto-micro"
]
],
"_from": "debug@>=2.6.6 <2.7.0",
"_from": "debug@2.6.9",
"_id": "debug@2.6.9",
"_inCache": true,
"_inBundle": false,
"_integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
"_location": "/debug",
"_nodeVersion": "8.4.0",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/debug-2.6.9.tgz_1506087154503_0.5196126794908196"
},
"_npmUser": {
"name": "tootallnate",
"email": "nathan@tootallnate.net"
},
"_npmVersion": "5.3.0",
"_phantomChildren": {},
"_requested": {
"raw": "debug@~2.6.6",
"scope": null,
"escapedName": "debug",
"type": "version",
"registry": true,
"raw": "debug@2.6.9",
"name": "debug",
"rawSpec": "~2.6.6",
"spec": ">=2.6.6 <2.7.0",
"type": "range"
"escapedName": "debug",
"rawSpec": "2.6.9",
"saveSpec": null,
"fetchSpec": "2.6.9"
},
"_requiredBy": [
"/body-parser",
"/engine.io",
"/engine.io-client",
"/express",
"/finalhandler",
"/send",
"/socket.io",
"/socket.io-client",
"/socket.io-parser"
],
"_resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
"_shasum": "5d128515df134ff327e90a4c93f4e077a536341f",
"_shrinkwrap": null,
"_spec": "debug@~2.6.6",
"_where": "/Users/scollado/controlAcceso/node_modules/socket.io",
"_spec": "2.6.9",
"_where": "/Users/scollado/proyecto-micro",
"author": {
"name": "TJ Holowaychuk",
"email": "tj@vision-media.ca"
......@@ -96,13 +82,6 @@
"sinon": "^1.17.6",
"sinon-chai": "^2.8.0"
},
"directories": {},
"dist": {
"integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
"shasum": "5d128515df134ff327e90a4c93f4e077a536341f",
"tarball": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz"
},
"gitHead": "13abeae468fea297d0dccc50bc55590809241083",
"homepage": "https://github.com/visionmedia/debug#readme",
"keywords": [
"debug",
......@@ -111,27 +90,7 @@
],
"license": "MIT",
"main": "./src/index.js",
"maintainers": [
{
"name": "thebigredgeek",
"email": "rhyneandrew@gmail.com"
},
{
"name": "kolban",
"email": "kolban1@kolban.com"
},
{
"name": "tootallnate",
"email": "nathan@tootallnate.net"
},
{
"name": "tjholowaychuk",
"email": "tj@vision-media.ca"
}
],
"name": "debug",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git://github.com/visionmedia/debug.git"
......
{
"_args": [
[
{
"raw": "depd@~1.1.1",
"scope": null,
"escapedName": "depd",
"name": "depd",
"rawSpec": "~1.1.1",
"spec": ">=1.1.1 <1.2.0",
"type": "range"
},
"/Users/scollado/Documents/controlAcceso/node_modules/express"
"depd@1.1.1",
"/Users/scollado/proyecto-micro"
]
],
"_from": "depd@>=1.1.1 <1.2.0",
"_from": "depd@1.1.1",
"_id": "depd@1.1.1",
"_inCache": true,
"_inBundle": false,
"_integrity": "sha1-V4O04cRZ8G+lyif5kfPQbnoxA1k=",
"_location": "/depd",
"_nodeVersion": "6.11.1",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/depd-1.1.1.tgz_1501197028677_0.8715836545452476"
},
"_npmUser": {
"name": "dougwilson",
"email": "doug@somethingdoug.com"
},
"_npmVersion": "3.10.10",
"_phantomChildren": {},
"_requested": {
"raw": "depd@~1.1.1",
"scope": null,
"escapedName": "depd",
"type": "version",
"registry": true,
"raw": "depd@1.1.1",
"name": "depd",
"rawSpec": "~1.1.1",
"spec": ">=1.1.1 <1.2.0",
"type": "range"
"escapedName": "depd",
"rawSpec": "1.1.1",
"saveSpec": null,
"fetchSpec": "1.1.1"
},
"_requiredBy": [
"/body-parser",
......@@ -44,10 +28,8 @@
"/send"
],
"_resolved": "https://registry.npmjs.org/depd/-/depd-1.1.1.tgz",
"_shasum": "5783b4e1c459f06fa5ca27f991f3d06e7a310359",
"_shrinkwrap": null,
"_spec": "depd@~1.1.1",
"_where": "/Users/scollado/Documents/controlAcceso/node_modules/express",
"_spec": "1.1.1",
"_where": "/Users/scollado/proyecto-micro",
"author": {
"name": "Douglas Christopher Wilson",
"email": "doug@somethingdoug.com"
......@@ -56,7 +38,6 @@
"bugs": {
"url": "https://github.com/dougwilson/nodejs-depd/issues"
},
"dependencies": {},
"description": "Deprecate all the things",
"devDependencies": {
"beautify-benchmark": "0.2.4",
......@@ -69,11 +50,6 @@
"istanbul": "0.4.5",
"mocha": "~1.21.5"
},
"directories": {},
"dist": {
"shasum": "5783b4e1c459f06fa5ca27f991f3d06e7a310359",
"tarball": "https://registry.npmjs.org/depd/-/depd-1.1.1.tgz"
},
"engines": {
"node": ">= 0.6"
},
......@@ -84,22 +60,13 @@
"index.js",
"Readme.md"
],
"gitHead": "15c5604aaab7befd413506e86670168d7481043a",
"homepage": "https://github.com/dougwilson/nodejs-depd#readme",
"keywords": [
"deprecate",
"deprecated"
],
"license": "MIT",
"maintainers": [
{
"name": "dougwilson",
"email": "doug@somethingdoug.com"
}
],
"name": "depd",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git+https://github.com/dougwilson/nodejs-depd.git"
......
{
"_args": [
[
{
"raw": "destroy@~1.0.4",
"scope": null,
"escapedName": "destroy",
"name": "destroy",
"rawSpec": "~1.0.4",
"spec": ">=1.0.4 <1.1.0",
"type": "range"
},
"/Users/scollado/Documents/controlAcceso/node_modules/send"
"destroy@1.0.4",
"/Users/scollado/proyecto-micro"
]
],
"_from": "destroy@>=1.0.4 <1.1.0",
"_from": "destroy@1.0.4",
"_id": "destroy@1.0.4",
"_inCache": true,
"_inBundle": false,
"_integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=",
"_location": "/destroy",
"_npmUser": {
"name": "dougwilson",
"email": "doug@somethingdoug.com"
},
"_npmVersion": "1.4.28",
"_phantomChildren": {},
"_requested": {
"raw": "destroy@~1.0.4",
"scope": null,
"escapedName": "destroy",
"type": "version",
"registry": true,
"raw": "destroy@1.0.4",
"name": "destroy",
"rawSpec": "~1.0.4",
"spec": ">=1.0.4 <1.1.0",
"type": "range"
"escapedName": "destroy",
"rawSpec": "1.0.4",
"saveSpec": null,
"fetchSpec": "1.0.4"
},
"_requiredBy": [
"/send"
],
"_resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz",
"_shasum": "978857442c44749e4206613e37946205826abd80",
"_shrinkwrap": null,
"_spec": "destroy@~1.0.4",
"_where": "/Users/scollado/Documents/controlAcceso/node_modules/send",
"_spec": "1.0.4",
"_where": "/Users/scollado/proyecto-micro",
"author": {
"name": "Jonathan Ong",
"email": "me@jongleberry.com",
......@@ -54,23 +41,16 @@
"email": "doug@somethingdoug.com"
}
],
"dependencies": {},
"description": "destroy a stream if possible",
"devDependencies": {
"istanbul": "0.4.2",
"mocha": "2.3.4"
},
"directories": {},
"dist": {
"shasum": "978857442c44749e4206613e37946205826abd80",
"tarball": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz"
},
"files": [
"index.js",
"LICENSE"
],
"gitHead": "86edea01456f5fa1027f6a47250c34c713cbcc3b",
"homepage": "https://github.com/stream-utils/destroy",
"homepage": "https://github.com/stream-utils/destroy#readme",
"keywords": [
"stream",
"streams",
......@@ -80,19 +60,7 @@
"fd"
],
"license": "MIT",
"maintainers": [
{
"name": "jongleberry",
"email": "jonathanrichardong@gmail.com"
},
{
"name": "dougwilson",
"email": "doug@somethingdoug.com"
}
],
"name": "destroy",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git+https://github.com/stream-utils/destroy.git"
......
Copyright 2017 Chris Grieger
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.
\ No newline at end of file
# detect-pi
Detect if node is currently running on a raspberry pi.
## Usage
`npm install detect-rpi --save`
```js
const isPi = require('detect-rpi');
if (isPi()) {
console.log('Running on Raspberry Pi!');
} else {
// ...
}
```
## How?
Reads /proc/cpuinfo and checks for the hardware model.
var fs = require('fs');
var PI_MODEL_NO = [
'BCM2708',
'BCM2709',
'BCM2710',
'BCM2835'
];
function isPi (model) {
return PI_MODEL_NO.indexOf(model) > -1;
}
module.exports = function () {
var cpuInfo;
try {
cpuInfo = fs.readFileSync('/proc/cpuinfo', { encoding: 'utf8' });
} catch (e) {
// if this fails, this is probably not a pi
return false;
}
var model = cpuInfo
.split('\n')
.map(line => line.replace(/\t/g, ''))
.filter(line => line.length > 0)
.map(line => line.split(':'))
.map(pair => pair.map(entry => entry.trim()))
.filter(pair => pair[0] === 'Hardware')
if(!model || model.length == 0) {
return false;
}
var number = model[0][1];
return isPi(number);
}
{
"_from": "detect-rpi",
"_id": "detect-rpi@1.2.0",
"_inBundle": false,
"_integrity": "sha512-TZ/c0cJYSrcArJtNaKhqODeF6EhFvkhNvsVBXfnjCh3ZUhG7WVTDN/04l5EnghTEjq1sXauZLLAsJd8lmEHstA==",
"_location": "/detect-rpi",
"_phantomChildren": {},
"_requested": {
"type": "tag",
"registry": true,
"raw": "detect-rpi",
"name": "detect-rpi",
"escapedName": "detect-rpi",
"rawSpec": "",
"saveSpec": null,
"fetchSpec": "latest"
},
"_requiredBy": [
"#USER",
"/"
],
"_resolved": "https://registry.npmjs.org/detect-rpi/-/detect-rpi-1.2.0.tgz",
"_shasum": "2d1d9a6c7191de4fa81b651df6a7f68be5cbbaa6",
"_spec": "detect-rpi",
"_where": "/Users/scollado/proyecto-micro",
"author": {
"name": "Chris Grieger"
},
"bugs": {
"url": "https://github.com/fourcube/detect-rpi/issues"
},
"bundleDependencies": false,
"deprecated": false,
"description": "Detects if node is currently running on a Raspberry Pi.",
"homepage": "https://github.com/fourcube/detect-rpi#readme",
"keywords": [
"raspberry",
"detect pi"
],
"license": "MIT",
"main": "index.js",
"name": "detect-rpi",
"repository": {
"type": "git",
"url": "git+https://github.com/fourcube/detect-rpi.git"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"version": "1.2.0"
}
{
"_args": [
[
{
"raw": "ee-first@1.1.1",
"scope": null,
"escapedName": "ee-first",
"name": "ee-first",
"rawSpec": "1.1.1",
"spec": "1.1.1",
"type": "version"
},
"/Users/scollado/Documents/controlAcceso/node_modules/on-finished"
"ee-first@1.1.1",
"/Users/scollado/proyecto-micro"
]
],
"_from": "ee-first@1.1.1",
"_id": "ee-first@1.1.1",
"_inCache": true,
"_inBundle": false,
"_integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=",
"_location": "/ee-first",
"_npmUser": {
"name": "dougwilson",
"email": "doug@somethingdoug.com"
},
"_npmVersion": "1.4.28",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "ee-first@1.1.1",
"scope": null,
"escapedName": "ee-first",
"name": "ee-first",
"escapedName": "ee-first",
"rawSpec": "1.1.1",
"spec": "1.1.1",
"type": "version"
"saveSpec": null,
"fetchSpec": "1.1.1"
},
"_requiredBy": [
"/on-finished"
],
"_resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
"_shasum": "590c61156b0ae2f4f0255732a158b266bc56b21d",
"_shrinkwrap": null,
"_spec": "ee-first@1.1.1",
"_where": "/Users/scollado/Documents/controlAcceso/node_modules/on-finished",
"_spec": "1.1.1",
"_where": "/Users/scollado/proyecto-micro",
"author": {
"name": "Jonathan Ong",
"email": "me@jongleberry.com",
......@@ -54,37 +41,18 @@
"email": "doug@somethingdoug.com"
}
],
"dependencies": {},
"description": "return the first event in a set of ee/event pairs",
"devDependencies": {
"istanbul": "0.3.9",
"mocha": "2.2.5"
},
"directories": {},
"dist": {
"shasum": "590c61156b0ae2f4f0255732a158b266bc56b21d",
"tarball": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz"
},
"files": [
"index.js",
"LICENSE"
],
"gitHead": "512e0ce4cc3643f603708f965a97b61b1a9c0441",
"homepage": "https://github.com/jonathanong/ee-first",
"homepage": "https://github.com/jonathanong/ee-first#readme",
"license": "MIT",
"maintainers": [
{
"name": "jongleberry",
"email": "jonathanrichardong@gmail.com"
},
{
"name": "dougwilson",
"email": "doug@somethingdoug.com"
}
],
"name": "ee-first",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git+https://github.com/jonathanong/ee-first.git"
......
{
"_args": [
[
{
"raw": "encodeurl@~1.0.1",
"scope": null,
"escapedName": "encodeurl",
"name": "encodeurl",
"rawSpec": "~1.0.1",
"spec": ">=1.0.1 <1.1.0",
"type": "range"
},
"/Users/scollado/Documents/controlAcceso/node_modules/express"
"encodeurl@1.0.1",
"/Users/scollado/proyecto-micro"
]
],
"_from": "encodeurl@>=1.0.1 <1.1.0",
"_from": "encodeurl@1.0.1",
"_id": "encodeurl@1.0.1",
"_inCache": true,
"_inBundle": false,
"_integrity": "sha1-eePVhlU0aQn+bw9Fpd5oEDspTSA=",
"_location": "/encodeurl",
"_nodeVersion": "4.4.3",
"_npmOperationalInternal": {
"host": "packages-12-west.internal.npmjs.com",
"tmp": "tmp/encodeurl-1.0.1.tgz_1465519736251_0.09314409433864057"
},
"_npmUser": {
"name": "dougwilson",
"email": "doug@somethingdoug.com"
},
"_npmVersion": "2.15.1",
"_phantomChildren": {},
"_requested": {
"raw": "encodeurl@~1.0.1",
"scope": null,
"escapedName": "encodeurl",
"type": "version",
"registry": true,
"raw": "encodeurl@1.0.1",
"name": "encodeurl",
"rawSpec": "~1.0.1",
"spec": ">=1.0.1 <1.1.0",
"type": "range"
"escapedName": "encodeurl",
"rawSpec": "1.0.1",
"saveSpec": null,
"fetchSpec": "1.0.1"
},
"_requiredBy": [
"/express",
......@@ -44,10 +28,8 @@
"/serve-static"
],
"_resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.1.tgz",
"_shasum": "79e3d58655346909fe6f0f45a5de68103b294d20",
"_shrinkwrap": null,
"_spec": "encodeurl@~1.0.1",
"_where": "/Users/scollado/Documents/controlAcceso/node_modules/express",
"_spec": "1.0.1",
"_where": "/Users/scollado/proyecto-micro",
"bugs": {
"url": "https://github.com/pillarjs/encodeurl/issues"
},
......@@ -57,7 +39,6 @@
"email": "doug@somethingdoug.com"
}
],
"dependencies": {},
"description": "Encode a URL to a percent-encoded form, excluding already-encoded sequences",
"devDependencies": {
"eslint": "2.11.1",
......@@ -67,11 +48,6 @@
"istanbul": "0.4.3",
"mocha": "2.5.3"
},
"directories": {},
"dist": {
"shasum": "79e3d58655346909fe6f0f45a5de68103b294d20",
"tarball": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.1.tgz"
},
"engines": {
"node": ">= 0.8"
},
......@@ -81,7 +57,6 @@
"README.md",
"index.js"
],
"gitHead": "39ed0c235fed4cea7d012038fd6bb0480561d226",
"homepage": "https://github.com/pillarjs/encodeurl#readme",
"keywords": [
"encode",
......@@ -89,15 +64,7 @@
"url"
],
"license": "MIT",
"maintainers": [
{
"name": "dougwilson",
"email": "doug@somethingdoug.com"
}
],
"name": "encodeurl",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git+https://github.com/pillarjs/encodeurl.git"
......
{
"_args": [
[
{
"raw": "engine.io-client@~3.1.0",
"scope": null,
"escapedName": "engine.io-client",
"name": "engine.io-client",
"rawSpec": "~3.1.0",
"spec": ">=3.1.0 <3.2.0",
"type": "range"
},
"/Users/scollado/controlAcceso/node_modules/socket.io-client"
"engine.io-client@3.1.4",
"/Users/scollado/proyecto-micro"
]
],
"_from": "engine.io-client@>=3.1.0 <3.2.0",
"_from": "engine.io-client@3.1.4",
"_id": "engine.io-client@3.1.4",
"_inCache": true,
"_inBundle": false,
"_integrity": "sha1-T88TcLRxY70s6b4nM5ckMDUNTqE=",
"_location": "/engine.io-client",
"_nodeVersion": "6.10.3",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/engine.io-client-3.1.4.tgz_1510521482305_0.12045690277591348"
},
"_npmUser": {
"name": "darrachequesne",
"email": "damien.arrachequesne@gmail.com"
},
"_npmVersion": "3.10.10",
"_phantomChildren": {},
"_requested": {
"raw": "engine.io-client@~3.1.0",
"scope": null,
"escapedName": "engine.io-client",
"type": "version",
"registry": true,
"raw": "engine.io-client@3.1.4",
"name": "engine.io-client",
"rawSpec": "~3.1.0",
"spec": ">=3.1.0 <3.2.0",
"type": "range"
"escapedName": "engine.io-client",
"rawSpec": "3.1.4",
"saveSpec": null,
"fetchSpec": "3.1.4"
},
"_requiredBy": [
"/socket.io-client"
],
"_resolved": "https://registry.npmjs.org/engine.io-client/-/engine.io-client-3.1.4.tgz",
"_shasum": "4fcf1370b47163bd2ce9be2733972430350d4ea1",
"_shrinkwrap": null,
"_spec": "engine.io-client@~3.1.0",
"_where": "/Users/scollado/controlAcceso/node_modules/socket.io-client",
"_spec": "3.1.4",
"_where": "/Users/scollado/proyecto-micro",
"browser": {
"ws": false,
"xmlhttprequest-ssl": "./lib/xmlhttprequest.js"
......@@ -112,33 +94,15 @@
"zuul-builder-webpack": "^1.2.0",
"zuul-ngrok": "4.0.0"
},
"directories": {},
"dist": {
"shasum": "4fcf1370b47163bd2ce9be2733972430350d4ea1",
"tarball": "https://registry.npmjs.org/engine.io-client/-/engine.io-client-3.1.4.tgz"
},
"files": [
"index.js",
"lib/",
"engine.io.js"
],
"gitHead": "90f4d17b29b5295b3002e9ccb2be0bb196ce4d6f",
"homepage": "https://github.com/socketio/engine.io-client",
"license": "MIT",
"main": "lib/index.js",
"maintainers": [
{
"name": "darrachequesne",
"email": "damien.arrachequesne@gmail.com"
},
{
"name": "rauchg",
"email": "rauchg@gmail.com"
}
],
"name": "engine.io-client",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git+https://github.com/socketio/engine.io-client.git"
......
{
"_args": [
[
{
"raw": "engine.io-parser@~2.1.0",
"scope": null,
"escapedName": "engine.io-parser",
"name": "engine.io-parser",
"rawSpec": "~2.1.0",
"spec": ">=2.1.0 <2.2.0",
"type": "range"
},
"/Users/scollado/controlAcceso/node_modules/engine.io"
"engine.io-parser@2.1.1",
"/Users/scollado/proyecto-micro"
]
],
"_from": "engine.io-parser@>=2.1.0 <2.2.0",
"_from": "engine.io-parser@2.1.1",
"_id": "engine.io-parser@2.1.1",
"_inCache": true,
"_inBundle": false,
"_integrity": "sha1-4Ps/DgRi9/WLt3waUun1p+JuRmg=",
"_location": "/engine.io-parser",
"_nodeVersion": "6.9.4",
"_npmOperationalInternal": {
"host": "packages-12-west.internal.npmjs.com",
"tmp": "tmp/engine.io-parser-2.1.1.tgz_1493327149955_0.6413915157318115"
},
"_npmUser": {
"name": "darrachequesne",
"email": "damien.arrachequesne@gmail.com"
},
"_npmVersion": "3.10.10",
"_phantomChildren": {},
"_requested": {
"raw": "engine.io-parser@~2.1.0",
"scope": null,
"escapedName": "engine.io-parser",
"type": "version",
"registry": true,
"raw": "engine.io-parser@2.1.1",
"name": "engine.io-parser",
"rawSpec": "~2.1.0",
"spec": ">=2.1.0 <2.2.0",
"type": "range"
"escapedName": "engine.io-parser",
"rawSpec": "2.1.1",
"saveSpec": null,
"fetchSpec": "2.1.1"
},
"_requiredBy": [
"/engine.io",
"/engine.io-client"
],
"_resolved": "https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-2.1.1.tgz",
"_shasum": "e0fb3f0e0462f7f58bb77c1a52e9f5a7e26e4668",
"_shrinkwrap": null,
"_spec": "engine.io-parser@~2.1.0",
"_where": "/Users/scollado/controlAcceso/node_modules/engine.io",
"_spec": "2.1.1",
"_where": "/Users/scollado/proyecto-micro",
"browser": "./lib/browser.js",
"bugs": {
"url": "https://github.com/socketio/engine.io-parser/issues"
......@@ -65,31 +47,13 @@
"zuul": "3.11.1",
"zuul-ngrok": "4.0.0"
},
"directories": {},
"dist": {
"shasum": "e0fb3f0e0462f7f58bb77c1a52e9f5a7e26e4668",
"tarball": "https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-2.1.1.tgz"
},
"files": [
"index.js",
"lib/"
],
"gitHead": "e2422c300e96766c951fdf2432e992c29fc12f1a",
"homepage": "https://github.com/socketio/engine.io-parser",
"license": "MIT",
"maintainers": [
{
"name": "darrachequesne",
"email": "damien.arrachequesne@gmail.com"
},
{
"name": "rauchg",
"email": "rauchg@gmail.com"
}
],
"name": "engine.io-parser",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/socketio/engine.io-parser.git"
......
1.3.4 / 2017-08-22
==================
* deps: mime-types@~2.1.16
- deps: mime-db@~1.29.0
1.3.3 / 2016-05-02
==================
......
......@@ -6,31 +6,23 @@
[![Build Status][travis-image]][travis-url]
[![Test Coverage][coveralls-image]][coveralls-url]
Higher level content negotiation based on [negotiator](https://www.npmjs.com/package/negotiator).
Extracted from [koa](https://www.npmjs.com/package/koa) for general use.
Higher level content negotiation based on [negotiator](https://www.npmjs.com/package/negotiator). Extracted from [koa](https://www.npmjs.com/package/koa) for general use.
In addition to negotiator, it allows:
- Allows types as an array or arguments list, ie `(['text/html', 'application/json'])`
as well as `('text/html', 'application/json')`.
- Allows types as an array or arguments list, ie `(['text/html', 'application/json'])` as well as `('text/html', 'application/json')`.
- Allows type shorthands such as `json`.
- Returns `false` when no types match
- Treats non-existent headers as `*`
## Installation
This is a [Node.js](https://nodejs.org/en/) module available through the
[npm registry](https://www.npmjs.com/). Installation is done using the
[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally):
```sh
$ npm install accepts
npm install accepts
```
## API
<!-- eslint-disable no-unused-vars -->
```js
var accepts = require('accepts')
```
......@@ -96,11 +88,11 @@ server.
var accepts = require('accepts')
var http = require('http')
function app (req, res) {
function app(req, res) {
var accept = accepts(req)
// the order of this list is significant; should be server preferred order
switch (accept.type(['json', 'html'])) {
switch(accept.type(['json', 'html'])) {
case 'json':
res.setHeader('Content-Type', 'application/json')
res.write('{"hello":"world!"}')
......@@ -134,7 +126,7 @@ curl -I -H'Accept: text/html' http://localhost:3000/
[npm-image]: https://img.shields.io/npm/v/accepts.svg
[npm-url]: https://npmjs.org/package/accepts
[node-version-image]: https://img.shields.io/node/v/accepts.svg
[node-version-url]: https://nodejs.org/en/download/
[node-version-url]: http://nodejs.org/download/
[travis-image]: https://img.shields.io/travis/jshttp/accepts/master.svg
[travis-url]: https://travis-ci.org/jshttp/accepts
[coveralls-image]: https://img.shields.io/coveralls/jshttp/accepts/master.svg
......
......@@ -29,10 +29,9 @@ module.exports = Accepts
* @public
*/
function Accepts (req) {
if (!(this instanceof Accepts)) {
function Accepts(req) {
if (!(this instanceof Accepts))
return new Accepts(req)
}
this.headers = req.headers
this.negotiator = new Negotiator(req)
......@@ -96,18 +95,12 @@ Accepts.prototype.types = function (types_) {
return this.negotiator.mediaTypes()
}
// no accept header, return first given type
if (!this.headers.accept) {
return types[0]
}
var mimes = types.map(extToMime)
var accepts = this.negotiator.mediaTypes(mimes.filter(validMime))
var first = accepts[0]
return first
? types[mimes.indexOf(first)]
: false
if (!this.headers.accept) return types[0];
var mimes = types.map(extToMime);
var accepts = this.negotiator.mediaTypes(mimes.filter(validMime));
var first = accepts[0];
if (!first) return false;
return types[mimes.indexOf(first)];
}
/**
......@@ -219,7 +212,7 @@ Accepts.prototype.languages = function (languages_) {
* @private
*/
function extToMime (type) {
function extToMime(type) {
return type.indexOf('/') === -1
? mime.lookup(type)
: type
......@@ -233,6 +226,6 @@ function extToMime (type) {
* @private
*/
function validMime (type) {
return typeof type === 'string'
function validMime(type) {
return typeof type === 'string';
}
{
"_args": [
[
{
"raw": "accepts@~1.3.4",
"scope": null,
"escapedName": "accepts",
"name": "accepts",
"rawSpec": "~1.3.4",
"spec": ">=1.3.4 <1.4.0",
"type": "range"
},
"/Users/scollado/Documents/controlAcceso/node_modules/express"
"accepts@1.3.3",
"/Users/scollado/proyecto-micro"
]
],
"_from": "accepts@>=1.3.4 <1.4.0",
"_id": "accepts@1.3.4",
"_inCache": true,
"_location": "/express/accepts",
"_nodeVersion": "6.11.1",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/accepts-1.3.4.tgz_1503455053008_0.43370609171688557"
},
"_npmUser": {
"name": "dougwilson",
"email": "doug@somethingdoug.com"
},
"_npmVersion": "3.10.10",
"_from": "accepts@1.3.3",
"_id": "accepts@1.3.3",
"_inBundle": false,
"_integrity": "sha1-w8p0NJOGSMPg2cHjKN1otiLChMo=",
"_location": "/engine.io/accepts",
"_phantomChildren": {},
"_requested": {
"raw": "accepts@~1.3.4",
"scope": null,
"escapedName": "accepts",
"type": "version",
"registry": true,
"raw": "accepts@1.3.3",
"name": "accepts",
"rawSpec": "~1.3.4",
"spec": ">=1.3.4 <1.4.0",
"type": "range"
"escapedName": "accepts",
"rawSpec": "1.3.3",
"saveSpec": null,
"fetchSpec": "1.3.3"
},
"_requiredBy": [
"/express"
"/engine.io"
],
"_resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.4.tgz",
"_shasum": "86246758c7dd6d21a6474ff084a4740ec05eb21f",
"_shrinkwrap": null,
"_spec": "accepts@~1.3.4",
"_where": "/Users/scollado/Documents/controlAcceso/node_modules/express",
"_resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.3.tgz",
"_spec": "1.3.3",
"_where": "/Users/scollado/proyecto-micro",
"bugs": {
"url": "https://github.com/jshttp/accepts/issues"
},
......@@ -60,26 +42,14 @@
}
],
"dependencies": {
"mime-types": "~2.1.16",
"mime-types": "~2.1.11",
"negotiator": "0.6.1"
},
"description": "Higher-level content negotiation",
"devDependencies": {
"eslint": "3.19.0",
"eslint-config-standard": "10.2.1",
"eslint-plugin-import": "2.7.0",
"eslint-plugin-markdown": "1.0.0-beta.6",
"eslint-plugin-node": "5.1.1",
"eslint-plugin-promise": "3.5.0",
"eslint-plugin-standard": "3.0.1",
"istanbul": "0.4.5",
"istanbul": "0.4.3",
"mocha": "~1.21.5"
},
"directories": {},
"dist": {
"shasum": "86246758c7dd6d21a6474ff084a4740ec05eb21f",
"tarball": "https://registry.npmjs.org/accepts/-/accepts-1.3.4.tgz"
},
"engines": {
"node": ">= 0.6"
},
......@@ -88,7 +58,6 @@
"HISTORY.md",
"index.js"
],
"gitHead": "71ea430741d6eb5484b6c67c95924540a98186a5",
"homepage": "https://github.com/jshttp/accepts#readme",
"keywords": [
"content",
......@@ -97,24 +66,15 @@
"accepts"
],
"license": "MIT",
"maintainers": [
{
"name": "dougwilson",
"email": "doug@somethingdoug.com"
}
],
"name": "accepts",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git+https://github.com/jshttp/accepts.git"
},
"scripts": {
"lint": "eslint --plugin markdown --ext js,md .",
"test": "mocha --reporter spec --check-leaks --bail test/",
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/",
"test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/"
},
"version": "1.3.4"
"version": "1.3.3"
}
{
"_args": [
[
{
"raw": "engine.io@~3.1.0",
"scope": null,
"escapedName": "engine.io",
"name": "engine.io",
"rawSpec": "~3.1.0",
"spec": ">=3.1.0 <3.2.0",
"type": "range"
},
"/Users/scollado/controlAcceso/node_modules/socket.io"
"engine.io@3.1.4",
"/Users/scollado/proyecto-micro"
]
],
"_from": "engine.io@>=3.1.0 <3.2.0",
"_from": "engine.io@3.1.4",
"_id": "engine.io@3.1.4",
"_inCache": true,
"_inBundle": false,
"_integrity": "sha1-PQIRtwpVLOhB/8fahiezAamkFi4=",
"_location": "/engine.io",
"_nodeVersion": "6.10.3",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/engine.io-3.1.4.tgz_1510521498883_0.9222093501593918"
"_phantomChildren": {
"mime-types": "2.1.17",
"negotiator": "0.6.1"
},
"_npmUser": {
"name": "darrachequesne",
"email": "damien.arrachequesne@gmail.com"
},
"_npmVersion": "3.10.10",
"_phantomChildren": {},
"_requested": {
"raw": "engine.io@~3.1.0",
"scope": null,
"escapedName": "engine.io",
"type": "version",
"registry": true,
"raw": "engine.io@3.1.4",
"name": "engine.io",
"rawSpec": "~3.1.0",
"spec": ">=3.1.0 <3.2.0",
"type": "range"
"escapedName": "engine.io",
"rawSpec": "3.1.4",
"saveSpec": null,
"fetchSpec": "3.1.4"
},
"_requiredBy": [
"/socket.io"
],
"_resolved": "https://registry.npmjs.org/engine.io/-/engine.io-3.1.4.tgz",
"_shasum": "3d0211b70a552ce841ffc7da8627b301a9a4162e",
"_shrinkwrap": null,
"_spec": "engine.io@~3.1.0",
"_where": "/Users/scollado/controlAcceso/node_modules/socket.io",
"_spec": "3.1.4",
"_where": "/Users/scollado/proyecto-micro",
"author": {
"name": "Guillermo Rauch",
"email": "guillermo@learnboost.com"
......@@ -95,33 +80,16 @@
"s": "0.1.1",
"superagent": "0.15.4"
},
"directories": {},
"dist": {
"shasum": "3d0211b70a552ce841ffc7da8627b301a9a4162e",
"tarball": "https://registry.npmjs.org/engine.io/-/engine.io-3.1.4.tgz"
},
"files": [
"lib/"
],
"gitHead": "1a685c02e19a6a70f7bacda71aed2bec5312f6cb",
"homepage": "https://github.com/socketio/engine.io",
"license": "MIT",
"main": "lib/engine.io",
"maintainers": [
{
"name": "darrachequesne",
"email": "damien.arrachequesne@gmail.com"
},
{
"name": "rauchg",
"email": "rauchg@gmail.com"
}
],
"name": "engine.io",
"optionalDependencies": {
"uws": "~0.14.4"
},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/socketio/engine.io.git"
......
......@@ -41,9 +41,9 @@ all_deps :=
CC.target ?= $(CC)
CFLAGS.target ?= $(CFLAGS)
CFLAGS.target ?= $(CPPFLAGS) $(CFLAGS)
CXX.target ?= $(CXX)
CXXFLAGS.target ?= $(CXXFLAGS) $(CPPFLAGS)
CXXFLAGS.target ?= $(CPPFLAGS) $(CXXFLAGS)
LINK.target ?= $(LINK)
LDFLAGS.target ?= $(LDFLAGS)
AR.target ?= $(AR)
......@@ -54,9 +54,9 @@ LINK ?= $(CXX.target)
# TODO(evan): move all cross-compilation logic to gyp-time so we don't need
# to replicate this environment fallback in make as well.
CC.host ?= gcc
CFLAGS.host ?=
CFLAGS.host ?= $(CPPFLAGS_host) $(CFLAGS_host)
CXX.host ?= g++
CXXFLAGS.host ?=
CXXFLAGS.host ?= $(CPPFLAGS_host) $(CXXFLAGS_host)
LINK.host ?= $(CXX.host)
LDFLAGS.host ?=
AR.host ?= ar
......@@ -126,46 +126,52 @@ cmd_cc = $(CC.$(TOOLSET)) $(GYP_CFLAGS) $(DEPFLAGS) $(CFLAGS.$(TOOLSET)) -c -o $
quiet_cmd_cxx = CXX($(TOOLSET)) $@
cmd_cxx = $(CXX.$(TOOLSET)) $(GYP_CXXFLAGS) $(DEPFLAGS) $(CXXFLAGS.$(TOOLSET)) -c -o $@ $<
quiet_cmd_objc = CXX($(TOOLSET)) $@
cmd_objc = $(CC.$(TOOLSET)) $(GYP_OBJCFLAGS) $(DEPFLAGS) -c -o $@ $<
quiet_cmd_objcxx = CXX($(TOOLSET)) $@
cmd_objcxx = $(CXX.$(TOOLSET)) $(GYP_OBJCXXFLAGS) $(DEPFLAGS) -c -o $@ $<
# Commands for precompiled header files.
quiet_cmd_pch_c = CXX($(TOOLSET)) $@
cmd_pch_c = $(CC.$(TOOLSET)) $(GYP_PCH_CFLAGS) $(DEPFLAGS) $(CXXFLAGS.$(TOOLSET)) -c -o $@ $<
quiet_cmd_pch_cc = CXX($(TOOLSET)) $@
cmd_pch_cc = $(CC.$(TOOLSET)) $(GYP_PCH_CXXFLAGS) $(DEPFLAGS) $(CXXFLAGS.$(TOOLSET)) -c -o $@ $<
quiet_cmd_pch_m = CXX($(TOOLSET)) $@
cmd_pch_m = $(CC.$(TOOLSET)) $(GYP_PCH_OBJCFLAGS) $(DEPFLAGS) -c -o $@ $<
quiet_cmd_pch_mm = CXX($(TOOLSET)) $@
cmd_pch_mm = $(CC.$(TOOLSET)) $(GYP_PCH_OBJCXXFLAGS) $(DEPFLAGS) -c -o $@ $<
# gyp-mac-tool is written next to the root Makefile by gyp.
# Use $(4) for the command, since $(2) and $(3) are used as flag by do_cmd
# already.
quiet_cmd_mac_tool = MACTOOL $(4) $<
cmd_mac_tool = ./gyp-mac-tool $(4) $< "$@"
quiet_cmd_mac_package_framework = PACKAGE FRAMEWORK $@
cmd_mac_package_framework = ./gyp-mac-tool package-framework "$@" $(4)
quiet_cmd_infoplist = INFOPLIST $@
cmd_infoplist = $(CC.$(TOOLSET)) -E -P -Wno-trigraphs -x c $(INFOPLIST_DEFINES) "$<" -o "$@"
quiet_cmd_touch = TOUCH $@
cmd_touch = touch $@
quiet_cmd_copy = COPY $@
# send stderr to /dev/null to ignore messages when linking directories.
cmd_copy = ln -f "$<" "$@" 2>/dev/null || (rm -rf "$@" && cp -af "$<" "$@")
cmd_copy = rm -rf "$@" && cp -af "$<" "$@"
quiet_cmd_alink = AR($(TOOLSET)) $@
cmd_alink = rm -f $@ && $(AR.$(TOOLSET)) crs $@ $(filter %.o,$^)
quiet_cmd_alink = LIBTOOL-STATIC $@
cmd_alink = rm -f $@ && ./gyp-mac-tool filter-libtool libtool $(GYP_LIBTOOLFLAGS) -static -o $@ $(filter %.o,$^)
quiet_cmd_alink_thin = AR($(TOOLSET)) $@
cmd_alink_thin = rm -f $@ && $(AR.$(TOOLSET)) crsT $@ $(filter %.o,$^)
# Due to circular dependencies between libraries :(, we wrap the
# special "figure out circular dependencies" flags around the entire
# input list during linking.
quiet_cmd_link = LINK($(TOOLSET)) $@
cmd_link = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ -Wl,--start-group $(LD_INPUTS) -Wl,--end-group $(LIBS)
# We support two kinds of shared objects (.so):
# 1) shared_library, which is just bundling together many dependent libraries
# into a link line.
# 2) loadable_module, which is generating a module intended for dlopen().
#
# They differ only slightly:
# In the former case, we want to package all dependent code into the .so.
# In the latter case, we want to package just the API exposed by the
# outermost module.
# This means shared_library uses --whole-archive, while loadable_module doesn't.
# (Note that --whole-archive is incompatible with the --start-group used in
# normal linking.)
# Other shared-object link notes:
# - Set SONAME to the library filename so our binaries don't reference
# the local, absolute paths used on the link command-line.
cmd_link = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o "$@" $(LD_INPUTS) $(LIBS)
quiet_cmd_solink = SOLINK($(TOOLSET)) $@
cmd_solink = $(LINK.$(TOOLSET)) -shared $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -Wl,-soname=$(@F) -o $@ -Wl,--whole-archive $(LD_INPUTS) -Wl,--no-whole-archive $(LIBS)
cmd_solink = $(LINK.$(TOOLSET)) -shared $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o "$@" $(LD_INPUTS) $(LIBS)
quiet_cmd_solink_module = SOLINK_MODULE($(TOOLSET)) $@
cmd_solink_module = $(LINK.$(TOOLSET)) -shared $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -Wl,-soname=$(@F) -o $@ -Wl,--start-group $(filter-out FORCE_DO_CMD, $^) -Wl,--end-group $(LIBS)
cmd_solink_module = $(LINK.$(TOOLSET)) -bundle $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ $(filter-out FORCE_DO_CMD, $^) $(LIBS)
# Define an escape_quotes function to escape single quotes.
......@@ -230,7 +236,7 @@ define do_cmd
$(if $(or $(command_changed),$(prereq_changed)),
@$(call exact_echo, $($(quiet)cmd_$(1)))
@mkdir -p "$(call dirx,$@)" "$(dir $(depfile))"
$(if $(findstring flock,$(word 1,$(cmd_$1))),
$(if $(findstring flock,$(word 2,$(cmd_$1))),
@$(cmd_$(1))
@echo " $(quiet_cmd_$(1)): Finished",
@$(cmd_$(1))
......@@ -268,6 +274,10 @@ $(obj).$(TOOLSET)/%.o: $(srcdir)/%.cpp FORCE_DO_CMD
@$(call do_cmd,cxx,1)
$(obj).$(TOOLSET)/%.o: $(srcdir)/%.cxx FORCE_DO_CMD
@$(call do_cmd,cxx,1)
$(obj).$(TOOLSET)/%.o: $(srcdir)/%.m FORCE_DO_CMD
@$(call do_cmd,objc,1)
$(obj).$(TOOLSET)/%.o: $(srcdir)/%.mm FORCE_DO_CMD
@$(call do_cmd,objcxx,1)
$(obj).$(TOOLSET)/%.o: $(srcdir)/%.S FORCE_DO_CMD
@$(call do_cmd,cc,1)
$(obj).$(TOOLSET)/%.o: $(srcdir)/%.s FORCE_DO_CMD
......@@ -282,6 +292,10 @@ $(obj).$(TOOLSET)/%.o: $(obj).$(TOOLSET)/%.cpp FORCE_DO_CMD
@$(call do_cmd,cxx,1)
$(obj).$(TOOLSET)/%.o: $(obj).$(TOOLSET)/%.cxx FORCE_DO_CMD
@$(call do_cmd,cxx,1)
$(obj).$(TOOLSET)/%.o: $(obj).$(TOOLSET)/%.m FORCE_DO_CMD
@$(call do_cmd,objc,1)
$(obj).$(TOOLSET)/%.o: $(obj).$(TOOLSET)/%.mm FORCE_DO_CMD
@$(call do_cmd,objcxx,1)
$(obj).$(TOOLSET)/%.o: $(obj).$(TOOLSET)/%.S FORCE_DO_CMD
@$(call do_cmd,cc,1)
$(obj).$(TOOLSET)/%.o: $(obj).$(TOOLSET)/%.s FORCE_DO_CMD
......@@ -295,6 +309,10 @@ $(obj).$(TOOLSET)/%.o: $(obj)/%.cpp FORCE_DO_CMD
@$(call do_cmd,cxx,1)
$(obj).$(TOOLSET)/%.o: $(obj)/%.cxx FORCE_DO_CMD
@$(call do_cmd,cxx,1)
$(obj).$(TOOLSET)/%.o: $(obj)/%.m FORCE_DO_CMD
@$(call do_cmd,objc,1)
$(obj).$(TOOLSET)/%.o: $(obj)/%.mm FORCE_DO_CMD
@$(call do_cmd,objcxx,1)
$(obj).$(TOOLSET)/%.o: $(obj)/%.S FORCE_DO_CMD
@$(call do_cmd,cc,1)
$(obj).$(TOOLSET)/%.o: $(obj)/%.s FORCE_DO_CMD
......@@ -308,8 +326,8 @@ ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
endif
quiet_cmd_regen_makefile = ACTION Regenerating $@
cmd_regen_makefile = cd $(srcdir); /usr/share/node-gyp/gyp/gyp_main.py -fmake --ignore-environment "--toplevel-dir=." -I/home/pi/proyecto-micro/node_modules/onoff/node_modules/epoll/build/config.gypi -I/usr/share/node-gyp/addon.gypi -I/usr/include/nodejs/common.gypi "--depth=." "-Goutput_dir=." "--generator-output=build" "-Dlibrary=shared_library" "-Dvisibility=default" "-Dnode_root_dir=/usr/include/nodejs" "-Dnode_gyp_dir=/usr/share/node-gyp" "-Dnode_lib_file=node.lib" "-Dmodule_root_dir=/home/pi/proyecto-micro/node_modules/onoff/node_modules/epoll" binding.gyp
Makefile: $(srcdir)/../../../../../../../usr/share/node-gyp/addon.gypi $(srcdir)/../../../../../../../usr/include/nodejs/common.gypi $(srcdir)/build/config.gypi $(srcdir)/binding.gyp
cmd_regen_makefile = cd $(srcdir); /usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py -fmake --ignore-environment "--toplevel-dir=." -I/Users/scollado/proyecto-micro/node_modules/epoll/build/config.gypi -I/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi -I/Users/scollado/.node-gyp/6.11.3/include/node/common.gypi "--depth=." "-Goutput_dir=." "--generator-output=build" "-Dlibrary=shared_library" "-Dvisibility=default" "-Dnode_root_dir=/Users/scollado/.node-gyp/6.11.3" "-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp" "-Dnode_lib_file=/Users/scollado/.node-gyp/6.11.3/<(target_arch)/node.lib" "-Dmodule_root_dir=/Users/scollado/proyecto-micro/node_modules/epoll" "-Dnode_engine=v8" binding.gyp
Makefile: $(srcdir)/../../../../../usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi $(srcdir)/build/config.gypi $(srcdir)/binding.gyp $(srcdir)/../../../.node-gyp/6.11.3/include/node/common.gypi
$(call do_cmd,regen_makefile)
# "all" is a concatenation of the "all" targets from all the included
......
cmd_Release/epoll.node := c++ -bundle -undefined dynamic_lookup -Wl,-no_pie -Wl,-search_paths_first -mmacosx-version-min=10.7 -arch x86_64 -L./Release -o Release/epoll.node Release/obj.target/epoll/src/epoll.o
cmd_Release/obj.target/epoll/src/epoll.o := c++ '-DNODE_GYP_MODULE_NAME=epoll' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/Users/scollado/.node-gyp/6.11.3/include/node -I/Users/scollado/.node-gyp/6.11.3/src -I/Users/scollado/.node-gyp/6.11.3/deps/uv/include -I/Users/scollado/.node-gyp/6.11.3/deps/v8/include -I../../nan -Os -gdwarf-2 -mmacosx-version-min=10.7 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=gnu++0x -fno-rtti -fno-exceptions -fno-threadsafe-statics -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/epoll/src/epoll.o.d.raw -c -o Release/obj.target/epoll/src/epoll.o ../src/epoll.cc
Release/obj.target/epoll/src/epoll.o: ../src/epoll.cc
../src/epoll.cc:
No preview for this file type
......@@ -8,31 +8,37 @@
"libraries": []
},
"variables": {
"arm_float_abi": "hard",
"arm_fpu": "vfp",
"arm_thumb": 0,
"arm_version": "6",
"asan": 0,
"coverage": "false",
"debug_devtools": "node",
"force_dynamic_crt": 0,
"host_arch": "arm",
"icu_gyp_path": "tools/icu/icu-system.gyp",
"icu_small": "false",
"host_arch": "x64",
"icu_data_file": "icudt58l.dat",
"icu_data_in": "../../deps/icu-small/source/data/in/icudt58l.dat",
"icu_endianness": "l",
"icu_gyp_path": "tools/icu/icu-generic.gyp",
"icu_locales": "en,root",
"icu_path": "deps/icu-small",
"icu_small": "true",
"icu_ver_major": "58",
"llvm_version": 0,
"node_byteorder": "little",
"node_enable_d8": "false",
"node_enable_v8_vtunejit": "false",
"node_install_npm": "false",
"node_module_version": 46,
"node_prefix": "/usr",
"node_release_urlbase": "",
"node_install_npm": "true",
"node_module_version": 48,
"node_no_browser_globals": "false",
"node_prefix": "/usr/local",
"node_release_urlbase": "https://nodejs.org/download/release/",
"node_shared": "false",
"node_shared_cares": "false",
"node_shared_http_parser": "false",
"node_shared_libuv": "true",
"node_shared_openssl": "true",
"node_shared_zlib": "true",
"node_shared_libuv": "false",
"node_shared_openssl": "false",
"node_shared_zlib": "false",
"node_tag": "",
"node_use_bundled_v8": "true",
"node_use_dtrace": "false",
"node_use_dtrace": "true",
"node_use_etw": "false",
"node_use_lttng": "false",
"node_use_openssl": "true",
......@@ -40,101 +46,130 @@
"node_use_v8_platform": "true",
"openssl_fips": "",
"openssl_no_asm": 0,
"shlib_suffix": "so.46",
"target_arch": "arm",
"shlib_suffix": "48.dylib",
"target_arch": "x64",
"uv_parent_path": "/deps/uv/",
"uv_use_dtrace": "false",
"uv_use_dtrace": "true",
"v8_enable_gdbjit": 0,
"v8_enable_i18n_support": 1,
"v8_inspector": "true",
"v8_no_strict_aliasing": 1,
"v8_optimized_debug": 0,
"v8_random_seed": 0,
"v8_use_snapshot": "true",
"want_separate_host_toolset": 0,
"nodedir": "/usr/include/nodejs",
"copy_dev_lib": "true",
"xcode_version": "7.0",
"nodedir": "/Users/scollado/.node-gyp/6.11.3",
"standalone_static_library": 1,
"cache_lock_stale": "60000",
"dry_run": "",
"legacy_bundling": "",
"save_dev": "",
"browser": "",
"commit_hooks": "true",
"only": "",
"viewer": "man",
"also": "",
"rollback": "true",
"usage": "",
"globalignorefile": "/usr/local/etc/npmignore",
"init_author_url": "",
"maxsockets": "50",
"shell": "/bin/bash",
"metrics_registry": "https://registry.npmjs.org/",
"parseable": "",
"shrinkwrap": "true",
"init_license": "ISC",
"timing": "",
"if_present": "",
"cache_max": "Infinity",
"init_author_email": "",
"sign_git_tag": "",
"user_agent": "npm/1.4.21 node/v4.8.2 linux arm",
"always_auth": "",
"bin_links": "true",
"key": "",
"description": "true",
"cert": "",
"git_tag_version": "true",
"local_address": "",
"long": "",
"fetch_retries": "2",
"registry": "https://registry.npmjs.org/",
"key": "",
"message": "%s",
"versions": "",
"globalconfig": "/usr/local/etc/npmrc",
"always_auth": "",
"logs_max": "10",
"prefer_online": "",
"cache_lock_retries": "10",
"global_style": "",
"heading": "npm",
"fetch_retry_mintimeout": "10000",
"offline": "",
"read_only": "",
"searchlimit": "20",
"access": "",
"json": "",
"allow_same_version": "",
"description": "true",
"engine_strict": "",
"https_proxy": "",
"init_module": "/Users/scollado/.npm-init.js",
"userconfig": "/Users/scollado/.npmrc",
"cidr": "",
"node_version": "6.11.3",
"user": "",
"force": "",
"cache_min": "10",
"init_license": "ISC",
"auth_type": "legacy",
"editor": "vi",
"rollback": "true",
"cache_max": "Infinity",
"userconfig": "/home/pi/.npmrc",
"engine_strict": "",
"init_author_name": "",
"init_author_url": "",
"tmp": "/tmp",
"ignore_prepublish": "",
"save": "true",
"script_shell": "",
"tag": "latest",
"global": "",
"progress": "true",
"ham_it_up": "",
"optional": "true",
"searchstaleness": "900",
"bin_links": "true",
"force": "",
"save_prod": "",
"searchopts": "",
"depth": "Infinity",
"save_dev": "",
"usage": "",
"https_proxy": "",
"onload_script": "",
"rebuild_bundle": "true",
"save_bundle": "",
"shell": "/bin/bash",
"prefix": "/usr/local",
"registry": "https://registry.npmjs.org/",
"__DO_NOT_MODIFY_THIS_FILE___use__etc_npmrc_instead_": "true",
"browser": "",
"cache_lock_wait": "10000",
"save_optional": "",
"searchopts": "",
"versions": "",
"cache": "/home/pi/.npm",
"ignore_scripts": "",
"searchsort": "name",
"version": "",
"local_address": "",
"viewer": "man",
"color": "true",
"fetch_retry_mintimeout": "10000",
"umask": "18",
"sso_poll_frequency": "500",
"unicode": "true",
"fetch_retry_maxtimeout": "60000",
"message": "%s",
"ca": "",
"cert": "",
"global": "",
"link": "",
"save": "",
"unicode": "true",
"long": "",
"production": "",
"unsafe_perm": "true",
"node_version": "4.8.2",
"tag": "latest",
"git_tag_version": "true",
"shrinkwrap": "true",
"fetch_retry_factor": "10",
"npat": "",
"proprietary_attribs": "true",
"save_exact": "",
"save_prefix": "^",
"scripts_prepend_node_path": "warn-only",
"sso_type": "oauth",
"strict_ssl": "true",
"username": "",
"globalconfig": "/etc/npmrc",
"tag_version_prefix": "v",
"dev": "",
"init_module": "/home/pi/.npm-init.js",
"parseable": "",
"globalignorefile": "/etc/npmignore",
"cache_lock_retries": "10",
"save_prefix": "^",
"group": "1000",
"init_author_email": "",
"fetch_retry_factor": "10",
"group": "20",
"save_exact": "",
"cache_lock_stale": "60000",
"prefer_offline": "",
"version": "",
"cache_min": "10",
"otp": "",
"cache": "/Users/scollado/.npm",
"searchexclude": "",
"color": "true",
"package_lock": "true",
"save_optional": "",
"user_agent": "npm/5.5.1 node/v6.11.3 darwin x64",
"ignore_scripts": "",
"cache_lock_wait": "10000",
"production": "",
"save_bundle": "",
"send_metrics": "",
"init_version": "1.0.0",
"umask": "0022",
"scope": "",
"git": "git",
"optional": "true",
"email": "",
"json": "",
"spin": "true"
"init_author_name": "",
"onload_script": "",
"tmp": "/var/folders/sf/4jq4y1ys2gn1nsjs0r5f_bbc0000gn/T",
"unsafe_perm": "true",
"prefix": "/usr/local",
"link": ""
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment