UNPKG

layaair2-cmd

Version:

layaair version 2 toolkit

124 lines (123 loc) 7.5 kB
{ "_args": [ [ { "raw": "glogg@^1.0.0", "scope": null, "escapedName": "glogg", "name": "glogg", "rawSpec": "^1.0.0", "spec": ">=1.0.0 <2.0.0", "type": "range" }, "E:\\Mine\\Project\\git\\laya\\dawawa\\layaairdoc_cmd\\node_modules\\gulplog" ] ], "_from": "glogg@^1.0.0", "_hasShrinkwrap": false, "_id": "glogg@1.0.2", "_location": "/glogg", "_nodeVersion": "8.11.1", "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/glogg_1.0.2_1544473264804_0.8854767146691764" }, "_npmUser": { "name": "phated", "email": "blaine.bublitz@gmail.com" }, "_npmVersion": "5.6.0", "_phantomChildren": {}, "_requested": { "raw": "glogg@^1.0.0", "scope": null, "escapedName": "glogg", "name": "glogg", "rawSpec": "^1.0.0", "spec": ">=1.0.0 <2.0.0", "type": "range" }, "_requiredBy": [ "/gulplog" ], "_resolved": "https://registry.npmjs.org/glogg/-/glogg-1.0.2.tgz", "_shasum": "2d7dd702beda22eb3bffadf880696da6d846313f", "_shrinkwrap": null, "_spec": "glogg@^1.0.0", "_where": "E:\\Mine\\Project\\git\\laya\\dawawa\\layaairdoc_cmd\\node_modules\\gulplog", "author": { "name": "Gulp Team", "email": "team@gulpjs.com", "url": "http://gulpjs.com/" }, "bugs": { "url": "https://github.com/gulpjs/glogg/issues" }, "contributors": [ { "name": "Blaine Bublitz", "email": "blaine.bublitz@gmail.com" } ], "dependencies": { "sparkles": "^1.0.0" }, "description": "Global logging utility", "devDependencies": { "eslint": "^2.13.0", "eslint-config-gulp": "^3.0.1", "expect": "^1.20.2", "istanbul": "^0.4.3", "istanbul-coveralls": "^1.0.3", "mocha": "^3.5.3" }, "directories": {}, "dist": { "integrity": "sha512-5mwUoSuBk44Y4EshyiqcH95ZntbDdTQqA3QYSrxmzj28Ai0vXBGMH1ApSANH14j2sIRtqCEyg6PfsuP7ElOEDA==", "shasum": "2d7dd702beda22eb3bffadf880696da6d846313f", "tarball": "https://registry.npmjs.org/glogg/-/glogg-1.0.2.tgz", "fileCount": 4, "unpackedSize": 6090, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcDsqxCRA9TVsSAnZWagAAmH0P/3tyVs4/xPsnU30Cc4Fu\n7BGvkqDA0GSHuKNFa9NBY2/tP0Tezr3bTLTU4MLeFB3xe1k6XZ7AJS7h+RbL\ndeqGU4kl9XdXFXzDDVZT961PDAR6voNPOa4IUlibeOkcdLOUNVMSE+gXuS7y\nfwk/zbNB91P6Ui0bzTmZHI8yeyO05tk9DYsgIVhEwCZrY8Z5UIiebybuO17p\nkzOCji/qNkaIJ9WSg6TPdsjkzBvI5J7zNF/vXCxfn4EkS21Nc1Vgnsgk22Vz\nKaLl+fpjjzm842w2eA3doPRHEMIfoGIpU0Gay7+CZPZJNOIQT/hiMSe+Zv7Y\nRvpupWqaqtflEZJSjPwhZ6WmLrm16THp0if1x3nhvZr17b5BgQoHc4NH7XhC\nzxgdeNL3tQS5LImBUhpKGQwz3EVu0N3I/hs48hleK0Mu91PM6CdaGllpQrUm\nRCJCSpFwogjZKY1q87xAe594pje9i0MPaF5trvbj3UnaoipjF9+B/edd/JXo\ndpL0YyZVGgTFsuloTdpr97oAqf8ei7N5wBpAYeH39QYrxgAKOgEk7iikXTrE\nUxgzXEcKsdxyu+Pq/GLxUfLQOa6Of8yivL5MUu+jMx4a0r/5eQYBEPyH7z9P\ncZKiv+yr+ekqjxfHCa/Bg3UaSEzHMPVfr/F9uRhEaJ/N5IO2cfsi+LjDsJ5j\nxZlW\r\n=3fFO\r\n-----END PGP SIGNATURE-----\r\n" }, "engines": { "node": ">= 0.10" }, "files": [ "LICENSE", "index.js" ], "gitHead": "6e0fdff7642ec485e14abc6d142580bcc493d6ed", "homepage": "https://github.com/gulpjs/glogg#readme", "keywords": [ "global", "log", "logger", "logging", "shared" ], "license": "MIT", "main": "index.js", "maintainers": [ { "name": "phated", "email": "blaine@iceddev.com" } ], "name": "glogg", "optionalDependencies": {}, "readme": "<p align=\"center\">\n <a href=\"http://gulpjs.com\">\n <img height=\"257\" width=\"114\" src=\"https://raw.githubusercontent.com/gulpjs/artwork/master/gulp-2x.png\">\n </a>\n</p>\n\n# glogg\n\n[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Travis Build Status][travis-image]][travis-url] [![AppVeyor Build Status][appveyor-image]][appveyor-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Gitter chat][gitter-image]][gitter-url]\n\nGlobal logging utility.\n\n## Usage\n\n```js\nvar getLogger = require('glogg');\n\nvar logger = getLogger('my-namespace');\n\n// logs strings\nlogger.debug('The MOST verbose!');\nlogger.info('Some important info');\nlogger.warn('All the warnings to you');\nlogger.error('OH NO! SOMETHING HAPPENED!');\n\n// supports util.format!\nlogger.info('%s style!', 'printf');\n\n// log anything\nlogger.debug({ my: 'obj' });\nlogger.info([1, 2, 3]);\n\n// somewhere else\nlogger.on('info', function(msg){\n // do something with msg\n});\n\n// must be handled to avoid crashing process\nlogger.on('error', function(msg){\n // now it won't crash\n});\n```\n\n## API\n\n__Note: This module makes no assumptions about the log levels and they will always\nbe emitted. If you are looking to filter some out, your listeners will need to have\nextra logic.__\n\n### getLogger([namespace])\n\nCreate a new logger at the given namespace (or the default if no namespace is provided).\nReturns an augmented [`sparkles`](https://github.com/phated/sparkles) EventEmitter object\nwith 4 methods: `debug()`, `info()`, `warn()` and `error()`. When called, these methods emit\nan event with the same name. If the first argument is a string, the arguments\nare passed through node's `util.format()` before being emitted. Other parts\nof a node program can get the logger by namespace and listen for the events to\nbe emitted.\n\n#### logger.debug(msg)\n\nEmits a `debug` event with the given `msg`.\n\nIf the first argument is a string, all arguments are passed to node's\n`util.format()` before being emitted.\n\n#### logger.info(msg)\n\nEmits a `info` event with the given `msg`.\n\nIf the first argument is a string, all arguments are passed to node's\n`util.format()` before being emitted.\n\n#### logger.warn(msg)\n\nEmits a `warn` event with the given `msg`.\n\nIf the first argument is a string, all arguments are passed to node's\n`util.format()` before being emitted.\n\n#### logger.error(msg)\n\nEmits a `error` event with the given `msg`.\n\nIf the first argument is a string, all arguments are passed to node's\n`util.format()` before being emitted.\n\n__Note: You must handle this event in some way or the node process will crash\nwhen an `error` event is emitted.__\n\n#### logger.on(event, fn)\n\nStandard API from node's `EventEmitter`. Use this to listen for events from\nthe logger methods.\n\n## License\n\nMIT\n\n[downloads-image]: http://img.shields.io/npm/dm/glogg.svg\n[npm-url]: https://www.npmjs.com/package/glogg\n[npm-image]: http://img.shields.io/npm/v/glogg.svg\n\n[travis-url]: https://travis-ci.org/gulpjs/glogg\n[travis-image]: http://img.shields.io/travis/gulpjs/glogg.svg?label=travis-ci\n\n[appveyor-url]: https://ci.appveyor.com/project/gulpjs/glogg\n[appveyor-image]: https://img.shields.io/appveyor/ci/gulpjs/glogg.svg?label=appveyor\n\n[coveralls-url]: https://coveralls.io/r/gulpjs/glogg\n[coveralls-image]: http://img.shields.io/coveralls/gulpjs/glogg/master.svg\n\n[gitter-url]: https://gitter.im/gulpjs/gulp\n[gitter-image]: https://badges.gitter.im/gulpjs/gulp.svg\n", "readmeFilename": "README.md", "repository": { "type": "git", "url": "git+https://github.com/gulpjs/glogg.git" }, "scripts": { "cover": "istanbul cover _mocha --report lcovonly", "coveralls": "npm run cover && istanbul-coveralls", "lint": "eslint .", "pretest": "npm run lint", "test": "mocha --async-only" }, "version": "1.0.2" }