{"name":"pino-pretty","version":"2.0.0-rc.1","keywords":["pino"],"author":{"name":"James Sumners","email":"james.sumners@gmail.com"},"license":"MIT","_id":"pino-pretty@2.0.0-rc.1","maintainers":[{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"matteo.collina","email":"hello@matteocollina.com"},{"name":"watson","email":"w@tson.dk"}],"homepage":"https://github.com/pinojs/pino-pretty#readme","bugs":{"url":"https://github.com/pinojs/pino-pretty/issues"},"bin":{"pino-pretty":"./bin.js"},"dist":{"shasum":"9a90cae408aba67ae9e6efc808462d1cf6649876","tarball":"http://registry-npm.ywwl.com/pino-pretty/download/pino-pretty-2.0.0-rc.1.tgz","fileCount":13,"integrity":"sha512-hB92UFZCby/+XAj7rIKBm+iYqEWlebR89CKBdMhzP1Rs8zEn2fN+LcpoeZsmG6aUeYMpxFDI/3kLzi31XUKiRw==","signatures":[{"sig":"MEUCIQDVAy68xFXMSf0QYQ+9Ey2N8lh7YbKkxou19Gb2rZaZCgIgF6guxzRXF9XJGdW8Owij1bMZALRYqNkUqjIO4xRDIDI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":214635,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa57XKCRA9TVsSAnZWagAAVp8P/3cm1H/xbsYJCVaAAzZN\n77ygR+T3+i3VP6ebvi86n+saum4jjB67i5nsptmbdOc9PWrGP0H4JapLD0OB\nsWjRAEhqMR2svfTp11ODzkmmVeKd7KHW8Gtz+8XC2DgoghTqluj1SkqPaZ1O\nlfBUHQJOaWMJdDjk7hz45S/KqvkZ651EZd1v85HG02w2kwO6xESzLYGpYpua\nJmdmdzpVHtskSrTqkLruH9TaniDIQRSa7IqIsc89uZLACJAvaI+dhYrMrqVB\n9N4rBMDn4S9fz94FsQGGyLMinPJyVR5+hhXyZpqoCI1FRI8r1UaOOrr2bjO7\nAPv9Q2s9JUIrOUpAxeJBZzTBoP+LsgabITG5+E60YytRpAKdbiqr4dzDOpLn\nMHiIt1WFDjSIPttIKf6yZ0MJ7JB9iTF634vFoY+tptmdJ6gucUG+pzj36/Cw\nVvBARsZZyXDOSC88iamQD5uALPGvpGHVDiIp1yHlkg8oEvp9qET3ydG3agtR\n3mLD1C5DtYgutJgQlwNJBv6qM32O4YiXqabOegePeM3rCa6KpjHolMSxtB6I\n7jmA4VPE352bRcHVq7wNwhPbOe5Z1LHdQH1T715QDw+7DEjgbsF1G1ziy5ah\nGC1mSJ2qGh9jbyLaZKkGBg/0D3opXA83ghl6v+OIZ6nlkzribb94qRMdOlP6\niRfh\r\n=/H9k\r\n-----END PGP SIGNATURE-----\r\n","size":178150,"noattachment":false,"key":"/pino-pretty/-/pino-pretty-2.0.0-rc.1.tgz"},"main":"index.js","readme":"<a id=\"intro\"></a>\n# pino-pretty\n[![Build Status](https://travis-ci.org/pinojs/pino-pretty.svg?branch=master)](https://travis-ci.org/pinojs/pino-pretty)\n[![Coverage Status](https://coveralls.io/repos/github/pinojs/pino-pretty/badge.svg?branch=master)](https://coveralls.io/github/pinojs/pino-pretty?branch=master)\n\nThis module provides a basic log prettifier for the [Pino](https://getpino.io/)\nlogging library. It reads a standard Pino log line like:\n\n```\n{\"level\":30,\"time\":1522431328992,\"msg\":\"hello world\",\"pid\":42,\"hostname\":\"foo\",\"v\":1}\n```\n\nAnd formats it to:\n\n```\n[1522431328992] INFO (42 on foo): hello world\n```\n\n<a id=\"example\"></a>\n## Example\n\nUsing the [example script][exscript] from the Pino module, and specifying\nthat logs should be colored and the time translated, we can see what the\nprettified logs will look like:\n\n![demo](demo.png)\n\n[exscript]: https://github.com/pinojs/pino/blob/fc4c83b/example.js\n\n<a id=\"install\"></a>\n## Install\n\n```sh\n$ npm install -g pino-pretty\n```\n\n<a id=\"cliargs\"></a>\n## CLI Arguments\n\n+ `--colorize` (`-c`): Adds terminal color escape sequences to the output.\n+ `--crlf` (`-f`): Appends carriage return and line feed, instead of just a line\nfeed, to the formatted log line.\n+ `--errorProps` (`-e`): When formatting an error object, display this list\nof properties. The list should be a comma separated list of properties Default: `''`.\n+ `--levelFirst` (`-l`): Display the log level name before the logged date and time.\n+ `--errorLikeObjectKeys` (`-k`): Define the log keys that are associated with\nerror like objects. Default: `err,error`.\n+ `--messageKey` (`-m`): Define the key that contains the main log message.\nDefault: `msg`.\n+ `--translateTime` (`-t`): Translate the epoch time value into a human readable\ndate and time string in `UTC`. The default pattern is `'yyyy-mm-dd HH:MM:ss.l o'`.\nIf you want to translate to the local system's timezone, then you must prefix the format\nstring with `SYS:`, e.g. `'SYS:yyyy-mm-dd HH:MM:ss'`. See [`dateformat` documentation](https://www.npmjs.com/package/dateformat#mask-options)\nfor more available pattern letters.\n+ `--search` (`-s`): Specifiy a search pattern according to\n  [jmespath](http://jmespath.org/).\n\n<a id=\"api\"></a>\n## API\n\n`pino-pretty` exports a factory function that can be used to format log strings.\nIt accepts an options argument with keys corresponding to the options described\nin [CLI Arguments](#cliargs):\n\n```js\n{\n  colorize: false, // --colorize\n  crlf: false, // --crlf\n  errorLikeObjectKeys: ['err', 'error'], // --errorLikeObjectKeys\n  errorProps: '', // --errorProps\n  levelFirst: false, // --levelFirst\n  messageKey: 'msg', // --messageKey\n  translateTime: false, // --translateTime\n  search: 'foo == `bar`' // --search\n}\n```\n\nSee the [Pino's prettifier documentation](#usemetadata) for information on how\nto use this directly with `pino`.\n\n[#usemetadata]: https://getpino.io/#/docs/pretty\n\n<a id=\"license\"><a>\n## License\n\nMIT License\n","gitHead":"a6de664492ca19eee1410302588a46607aba999d","scripts":{"lint":"standard | snazzy","test":"tap --no-cov 'test/**/*.test.js'","lint-ci":"standard","test-ci":"tap --cov 'test/**/*.test.js'"},"_npmUser":{"name":"jsumners","email":"james.sumners@gmail.com"},"precommit":["lint","test"],"repository":{"url":"git+ssh://git@github.com/pinojs/pino-pretty.git","type":"git"},"_npmVersion":"5.6.0","description":"Prettifier for Pino log lines","directories":{},"_nodeVersion":"8.9.4","dependencies":{"args":"^4.0.0","pump":"^3.0.0","chalk":"^2.3.2","split2":"^2.2.0","jmespath":"^0.15.0","through2":"^2.0.3","dateformat":"^3.0.3","fast-json-parse":"^1.0.3"},"_hasShrinkwrap":false,"readmeFilename":"Readme.md","devDependencies":{"tap":"^11.1.3","pino":"^5.0.0-rc.2","snazzy":"^7.1.1","standard":"^11.0.1","pre-commit":"^1.2.2"},"_npmOperationalInternal":{"tmp":"tmp/pino-pretty_2.0.0-rc.1_1525134794484_0.05885347817270037","host":"s3://npm-registry-packages"},"publish_time":1525134794606,"_cnpm_publish_time":1525134794606,"dist-tags":{"latest":"13.2.0","next":"3.0.0-rc.2"}}