{"_id":"@alanmarcell/ptz-log","_rev":"2-a5272c7dddef5d71211a6461efaa2f31","name":"@alanmarcell/ptz-log","dist-tags":{"latest":"1.2.3"},"versions":{"1.2.3":{"name":"@alanmarcell/ptz-log","version":"1.2.3","description":"Awesome log for javascript","main":"dist/index.js","typings":"src/index.ts","scripts":{"lint":"tslint ./src/**/*.ts ./src/**/*.test.ts ./src/**/*.d.ts","js":"rimraf dist-esnext && tsc && npm run babel","tsc:w":"rimraf dist-esnext && tsc -w","babel":"rimraf dist && babel dist-esnext -d dist --source-maps","babel:w":"rimraf dist && babel dist-esnext --watch -d dist --source-maps","pretest":"npm-run-all --parallel js lint","mocha":"mocha ./dist/**/*.js --require babel-polyfill","mocha:w":"mocha --watch ./dist/**/*.js --require babel-polyfill","test":"nyc npm run mocha && nyc report --reporter=text-lcov > coverage.lcov && codecov --token=967f3c1a-c27c-4a43-b22a-c473b5313bf5","predebug":"npm run pretest","debug":"node --nolazy --debug-brk=5858 dist/index.js"},"repository":{"type":"git","url":"git+https://github.com/polutz/ptz-log.git"},"author":{"name":"github.com/angeloocana"},"contributors":[{"name":"Alan Marcell","email":"alanmarcell@live.com","url":"https://alanmarcell.github.io/"}],"license":"ISC","bugs":{"url":"https://github.com/polutz/ptz-log/issues"},"homepage":"https://github.com/polutz/ptz-log#readme","devDependencies":{"@types/mocha":"^2.2.43","@types/node":"^8.0.30","babel-cli":"^6.26.0","babel-preset-env":"^1.6.0","codecov":"^2.3.0","istanbul":"^0.4.5","mocha":"^3.5.3","mocha-lcov-reporter":"^1.3.0","npm-run-all":"^4.1.1","nyc":"^11.2.1","ptz-assert":"^1.6.8","rimraf":"^2.6.2","sinon":"^3.3.0","tslint":"^5.7.0","typescript":"^2.5.2"},"dependencies":{"json-stringify-safe":"^5.0.1","moment":"^2.18.1","ramda":"^0.25.0"},"gitHead":"cd2b752f74d8f71edc34188c7aeb6e045002b6d8","_id":"@alanmarcell/ptz-log@1.2.3","_npmVersion":"5.6.0","_nodeVersion":"8.9.1","_npmUser":{"name":"alanmarcell","email":"alanmarcell@live.com"},"dist":{"integrity":"sha512-ACYrmNIE0GD/7FdRB8ZTp7Qklt9AbBvVNm2WKXZPyvnv9IN3qG36bsCUe8Q+mpum5q28lwwZTTZj4fXVMg7mXg==","shasum":"07d5e2412cabe64aeba927ce12adaf48711b793f","tarball":"https://registry.npmjs.org/@alanmarcell/ptz-log/-/ptz-log-1.2.3.tgz","fileCount":23,"unpackedSize":160548,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFjc50dIEBRZ8Gcw9axPTvPMwkccEC1AnNLzCOeiXJ3EAiARuWGnYN1ESHcGBFeIlWXZ/ly23YUJvBBAVF2JBf1WGg=="}]},"maintainers":[{"name":"alanmarcell","email":"alanmarcell@live.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ptz-log_1.2.3_1519454713186_0.1478085260122921"},"_hasShrinkwrap":false}},"time":{"created":"2018-02-24T06:45:13.121Z","1.2.3":"2018-02-24T06:45:13.338Z","modified":"2022-04-04T12:33:09.612Z"},"maintainers":[{"name":"alanmarcell","email":"alanmarcell@live.com"}],"description":"Awesome log for javascript","homepage":"https://github.com/polutz/ptz-log#readme","repository":{"type":"git","url":"git+https://github.com/polutz/ptz-log.git"},"contributors":[{"name":"Alan Marcell","email":"alanmarcell@live.com","url":"https://alanmarcell.github.io/"}],"author":{"name":"github.com/angeloocana"},"bugs":{"url":"https://github.com/polutz/ptz-log/issues"},"license":"ISC","readme":"# ptz-log\n\n[![Build Status](https://travis-ci.org/polutz/ptz-log.svg)](https://travis-ci.org/polutz/ptz-log)\n[![NPM](https://img.shields.io/npm/v/ptz-log.svg)](https://www.npmjs.com/package/ptz-log)\n[![codecov.io](http://codecov.io/github/polutz/ptz-log/coverage.svg)](http://codecov.io/github/polutz/ptz-log)\n[![Dependency Status](https://gemnasium.com/polutz/ptz-log.svg)](https://gemnasium.com/polutz/ptz-log)\n[![bitHound Score](https://www.bithound.io/github/gotwarlost/istanbul/badges/score.svg)](https://www.bithound.io/github/polutz/ptz-log)\n[![MIT license](http://img.shields.io/badge/license-MIT-brightgreen.svg)](http://opensource.org/licenses/MIT)\n\nAwesome log and types for javascript and typescript!\n\n## Translations\n[pt-br](https://github.com/polutz/ptz-log/blob/master/README.pt-br.md)\n[en-us](https://github.com/polutz/ptz-log/blob/master/README.md)\n\n## Use\n\n### Install\n```\n    npm install --save ptz-log\n```\n\n### How to use\n```javasript\n    import log from 'ptz-log';\n\n    log('hi');\n    // Colors or breakLine are optional \n    // Default behavior: BreakLine after every arg and do not breakLine after color config obj\n    log({ ptzColorLog: 'red'}, 'welcome', { ptzColorLog: 'yellow', breakLine: true  }, // welcome to\n         'to', { ptzColorLog: 'green' }, 'polutz!');                                   // polutz\n    \n```\n\nHow to use Ilog type as dependency injection, and provide your custom logs\n```javasript\n    import { Ilog, log } from 'ptz-log';\n\n    const myLog: Ilog = function (...args) {\n        console.log('From my custom logging:', ...args);\n    }\n\n    class Test {\n        log: Ilog;\n\n        constructor({ log: Ilog }) {\n            this.log = log;\n        }\n\n        testing() {\n            log('returning true!');\n            return true;\n        }\n    }\n\n    const test = new Test({ log: myLog });\n    test.testing();\n```\n\n\n\n## Contribute\n\n### NPM Global packages\n```\n    npm install -g ts-node babel-cli\n```\n\n### Setup\n```\n    npm install   \n```\n\n### Test\n```\n    npm test\n```\n","readmeFilename":"README.md"}