{"name":"pino-pretty","version":"3.0.0-rc.1","keywords":["pino"],"author":{"name":"James Sumners","email":"james.sumners@gmail.com"},"license":"MIT","_id":"pino-pretty@3.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":"4c6ec2b2620451d464229fdeab9c104242794f09","tarball":"http://registry-npm.ywwl.com/pino-pretty/download/pino-pretty-3.0.0-rc.1.tgz","fileCount":16,"integrity":"sha512-3ceCscOU7x99GDoZez91kEQGRTKTRkElc26CkBPCpeKa56e4C4C64AujX8WsDC9KcLGsRke4SoTB4Ifjyyfrng==","signatures":[{"sig":"MEQCICvkC761l8+8wmDqHuUi2mW93REbLyjSUzXK1RVFfi0SAiBxlSMdoaMEfN1TeXlRcxYldDqhH6eeRh5VpcitWAE9Og==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":226004,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcoReVCRA9TVsSAnZWagAA/qcQAIsYWqWCzSB8dKR08Qgv\nnRmbAdQItQSpgayUeuSOEs7pD95Nk5mZRq7DyPOl6Pt3ZGKRUW02980Ka9pk\ncCF9kxdohHWkdTQdMyrvakRd1qdbGe1wW0V16YMbVKo/3046czdtTRmyVT39\nXf/oCSMWOuJuGJtYY7VuYrMLtKV4spYKfflyevlojqbvf9RZWywR0i5Fm80I\nmcM9HshCfkJRFBG9//BW0y1PdNkbGyybe9YVvkSS3eTSiqSqOxkB3dNPJZ5+\nEtkyWFsw/RNRqNklDYzBJUxmkZOrsPu1ylit9CAq9unkli75FcZ6yJfO9XAN\nfdA51eVfEs6XPlI4tim1C9s7ILgn2jp5MrQ1DTkgYBkqbDI5WCDvR2AZc81m\nsGTnx+/TUEt/1cPllE7V1H3CG5I/l+rIIftgAVat2YP/okaGXPe996NtrnOa\nZ7jvHeQUMoKrTRLd8cH8bi7T/GVBSlZU4GvMk3e6CetInw2xXcYbuw/XoSbt\nxcHzldYDIonyf2s29JyvsSOsPQZf3WbaZmpPE7zFH2T7ATj79S/LCJur/CbW\nhvUdPy9UQ21arfzgFB5KjZ8VNfBcx3x1QpTANszt75eZ8A5wTO8M75+FHn31\nQT5J3H5ioB+LRCdu49bCuIHcyv2pbBDNrX8rwykTSneg0t5JBLbdwOjHhHQ3\nfpRw\r\n=4Ui1\r\n-----END PGP SIGNATURE-----\r\n","size":180726,"noattachment":false,"key":"/pino-pretty/-/pino-pretty-3.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\n<a id=\"usage\"></a>\n## Usage\n\nIt's recommended to use `pino-pretty` with `pino` \nby piping output to the CLI tool: \n\n```sh\npino app.js | 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. This flag also can set the format string to apply when\ntranslating the date to human readable format. For a list of available pattern\nletters see the [`dateformat` documentation](https://www.npmjs.com/package/dateformat).\n  - The default format is `yyyy-mm-dd HH:MM:ss.l o` in UTC.\n  - Require a `SYS:` prefix to translate time to the local system's timezone. A\n    shortcut `SYS:standard` to translate time to `yyyy-mm-dd HH:MM:ss.l o` in\n    system timezone.\n+ `--search` (`-s`): Specify a search pattern according to\n  [jmespath](http://jmespath.org/).\n+ `--ignore` (`-i`): Ignore one or several keys: (`-i time,hostname`)\n\n<a id=\"integration\"></a>\n## Programmatic Integration \n\nWe recommend against using `pino-pretty` in production, and highly\nrecommend installing `pino-pretty` as a development dependency.\n\nWhen installed, `pino-pretty` will be used by `pino` as the default \nprettifier.\n\nInstall `pino-pretty` alongside `pino` and set the \n`prettyPrint` option to `true`:\n\n```js\nconst pino = require('pino')\nconst logger = pino({\n  prettyPrint: true\n})\n\nlogger.info('hi')\n```\n\nThe `prettyPrint` option can also be an object containing `pretty-print`\noptions:\n\n```js\nconst pino = require('pino')\nconst logger = pino({\n  prettyPrint: { colorize: true }\n})\n\nlogger.info('hi')\n```\n\nSee the [Options](#options) section for all possible options.\n\n<a id=\"options\"></a>\n### Options\n\n`pino-pretty` exports a factory function that can be used to format log strings.\nThis factory function is used internally by pino, and accepts an options argument\nwith keys corresponding to the options described in [CLI Arguments](#cliargs):\n\n```js\n{\n  colorize: chalk.supportsColor, // --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  ignore: 'pid,hostname' // --ignore\n}\n```\n\nThe `colorize` default follows\n[`chalk.supportsColor](https://www.npmjs.com/package/chalk#chalksupportscolor).\n\n<a id=\"license\"><a>\n## License\n\nMIT License\n","gitHead":"64db81d24cd74b40f98536e5690a302070f4a992","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":"6.8.0","description":"Prettifier for Pino log lines","directories":{},"_nodeVersion":"10.15.2","dependencies":{"args":"^5.0.0","pump":"^3.0.0","chalk":"^2.3.2","bourne":"^1.1.2","split2":"^3.0.0","jmespath":"^0.15.0","dateformat":"^3.0.3","readable-stream":"^3.0.6","fast-safe-stringify":"^2.0.6"},"_hasShrinkwrap":false,"readmeFilename":"Readme.md","devDependencies":{"tap":"^12.1.0","pino":"^5.9.0","snazzy":"^8.0.0","standard":"^12.0.1","pre-commit":"^1.2.2"},"_npmOperationalInternal":{"tmp":"tmp/pino-pretty_3.0.0-rc.1_1554061204581_0.45171085853449844","host":"s3://npm-registry-packages"},"publish_time":1554061204845,"_cnpm_publish_time":1554061204845,"dist-tags":{"latest":"13.2.0","next":"3.0.0-rc.2"}}