"readme":"# npmlog\n\nThe logger util that npm uses.\n\nThis logger is very basic. It does the logging for npm. It supports\ncustom levels and colored output.\n\nBy default, logs are written to stderr. If you want to send log messages\nto outputs other than streams, then you can change the `log.stream`\nmember, or you can just listen to the events that it emits, and do\nwhatever you want with them.\n\n# Basic Usage\n\n```\nvar log = require('npmlog')\n\n// additional stuff ---------------------------+\n// message ----------+ |\n// prefix ----+ | |\n// level -+ | | |\n// v v v v\n log.info('fyi', 'I have a kitty cat: %j', myKittyCat)\n```\n\n## log.level\n\n* {String}\n\nThe level to display logs at. Any logs at or above this level will be\ndisplayed. The special level `silent` will prevent anything from being\ndisplayed ever.\n\n## log.record\n\n* {Array}\n\nAn array of all the log messages that have been entered.\n\n## log.maxRecordSize\n\n* {Number}\n\nThe maximum number of records to keep. If log.record gets bigger than\n10% over this value, then it is sliced down to 90% of this value.\n\nThe reason for the 10% window is so that it doesn't have to resize a\nlarge array on every log entry.\n\n## log.prefixStyle\n\n* {Object}\n\nA style object that specifies how prefixes are styled. (See below)\n\n## log.headingStyle\n\n* {Object}\n\nA style object that specifies how the heading is styled. (See below)\n\n## log.heading\n\n* {String} Default: \"\"\n\nIf set, a heading that is printed at the start of every line.\n\n## log.stream\n\n* {Stream} Default: `process.stderr`\n\nThe stream where output is written.\n\n## log.enableColor()\n\nForce colors to be used on all messages, regardless of the output\nstream.\n\n## log.disableColor()\n\nDisable colors on all messages.\n\n## log.pause()\n\nStop emitting messages to the stream, but do not drop them.\n\n## log.resume()\n\nEmit all buffered messages that were written while paused.\n\n## log.log(level, prefix, message, ...)\n\n* `level` {String} The level to emit the message at\n* `prefix` {String} A string prefix. Set to \"\"toskip.\n*`message...`Argumentsto`util.format`\n\nEmitalogmessageatthespecifiedlevel.\n\n##log\\[level](prefix,message,...)\n\nForexample,\n\n*log.silly(prefix,message,...)\n*log.verbose(prefix,message,...)\n*log.info(prefix,message,...)\n*log.http(prefix,message,...)\n*log.warn(prefix,message,...)\n*log.error(prefix,message,...)\n\nLike`log.log(level,prefix,message,...)`.Inthisway,eachlevelis\ngivenashorthand,soyoucando`log.info(prefix,message)`.\n\n##log.addLevel(level,n,style,disp)\n\n*`level`{String}Levelindicator\n*`n`{Number}Thenumericlevel\n*`style`{Object}Objectwithfg,bg,inverse,etc.\n*`disp`{String}Optionalreplacementfor`level`intheoutput.\n\nSetsupanewlevelwithashorthandfunctionandsoforth.\n\nNotethatifthenumberis`Infinity`,thensettingtheleveltothat\nwillcausealllogmessagestobesuppressed.Ifthenumberis\n`-Infinity`,thentheonlywaytoshowitistoenablealllogmessages.\n\n#Events\n\nEventsareallemittedwiththemessageobject.\n\n*`log`Emittedforallmessages\n*`log.<level>`Emittedforallmessageswiththe`<level>`level.\n*`<prefix>`Messageswithprefixesalsoemittheirprefixasanevent.\n\n#StyleObjects\n\nStyleobjectscanhavethefollowingfields:\n\n*`fg`{String}Colorfortheforegroundtext\n*`bg`{String}Colorforthebackground\n*`bold`,`inverse`,`underline`{Boolean}Settheassociatedproperty\n*`bell`{Boolean}Makeanoise(Thisisprettyannoying,probably.)\n\n#MessageObjects\n\nEverylogeventisemittedwithamessageobject,andthe`log.record`\nlistcontainsallofthemthathavebeencreated.Theyhavethe\nfollowingfields:\n\n*`id`{Number}\n*`level`{String}\n*`prefix`{String}\n*`message`{String}Resultof`util.format()`\n*`messag