{"dist":{"shasum":"e64c69886e02e47ceb8964f3ed2bdea514708076","tarball":"https://registry.npmjs.org/node-print/-/node-print-0.0.4.tgz","integrity":"sha512-9CFtSN2IZyfrQMDRIZ4cBcfmrVh2q8/XsP4kOp8FC5OVtnL5dJ8XGqjIsz6C6XAMeUvS660w3SaTsdno1xkK0g==","signatures":[{"sig":"MEUCICQE5tfI3RpoJaZtcJCPfuoHHmVhxpGFEbGH5+dFFq3UAiEAjB3fb08mQB6dwVb/59Rt4yj//c/bCFOMlOHYEaSoVVE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./print.js","name":"node-print","title":"Print","author":{"name":"nuysoft@gmail.com"},"readme":"# Print Tool\n\n1. printf in JavaScript\n2. Prettify log's color\n3. Prettify JSONArray to table\n4. Simple date format\n\n## Installation\n\n    npm install node-print\n\n\n## printf in JavaScript\n\n    // syntax\n    exports.pf(format, args)\n    format\n        %-ms    - String\n        %-m.nd  - Number (both integer and float)\n        %-mj    - JSON\n\n    // examples\n    print.pf('%s %10s %-10s %10s', 1, 1, 12345, '1');\n    print.pf('%s %10s %-10s %10s', 2, 12, 1234, '123');\n    print.pf('%s %10s %-10s %10s', 3, 123, 123, '123456');\n    print.pf('%s %10s %-10s %10s', 4, 1234, 12, '123456789');\n    print.pf('%s %10s %-10s %10s', 5, 12345, 1, '1234567890');\n    print.pf('%s %10.1d %-10s %10s', 6, 1.123, 123456, '1234567890123');\n    print.pf('%s %3s %3s %3s', 7, 1234, 12345, 123456);\n\n    // out\n    1          1 12345               1\n    2         12 1234              123\n    3        123 123            123456\n    4       1234 12          123456789\n    5      12345 1          1234567890\n    6        1.1 123456     1234567890123\n    7 1234 12345 123456\n\n## Prettify log's color\n    \n    // examples\n    var out = 'http://nuysoft.com/ nuysoft@gmail.com';\n    // \n    console.log(out.red);\n    print.red(out);\n    print.color('red', out);\n    // \n    print.bold(out);\n    print.italic(out);\n    print.underline(out);\n    print.inverse(out);\n    print.white(out);\n    print.grey(out);\n    print.black(out);\n    print.blue(out);\n    print.cyan(out);\n    print.green(out);\n    print.magenta(out);\n    print.red(out);\n    print.yellow(out);\n\n## Prettify JSONArray to table\n    \n    // examples\n    var list = [\n        { id: 1, foo: 'f', bar: 'barbarbarbar' },\n        { id: 2, foo: 'foo', bar: 'barbar' },\n        { id: 3, foo: 'foofoo', bar: 'bar' },\n        { id: 4, foo: 'foofoofoofoo', bar: 'b', fb: 'foobar' }\n    ];\n    print.pt(list);\n\n    // out\n    +----+--------------+--------------+-----------+\n    | id | foo          | bar          | fb        |\n    +----+--------------+--------------+-----------+\n    | 1  | f            | barbarbarbar | undefined |\n    | 2  | foo          | barbar       | undefined |\n    | 3  | foofoo       | bar          | undefined |\n    | 4  | foofoofoofoo | b            | foobar    |\n    +----+--------------+--------------+-----------+\n\n## Simple date format\n\n### Pattern Letters\n\n    Format  Description                                                 Example\n    ------- ----------------------------------------------------------- -------\n    yyyy    A full numeric representation of a year, 4 digits           1999 or 2003\n    yy      A two digit representation of a year                        99 or 03\n    y       A two digit representation of a year                        99 or 03\n    MM      Numeric representation of a month, with leading zeros       01 to 12\n    M       Numeric representation of a month, without leading zeros    1 to 12\n    dd      Day of the month, 2 digits with leading zeros               01 to 31\n    d       Day of the month without leading zeros                      1 to 31\n    HH      24-hour format of an hour with leading zeros                00 to 23\n    H       24-hour format of an hour without leading zeros             0 to 23\n    hh      12-hour format of an hour without leading zeros             1 to 12\n    h       12-hour format of an hour with leading zeros                01 to 12\n    mm      Minutes, with leading zeros                                 00 to 59\n    m       Minutes, without leading zeros                              0 to 59\n    ss      Seconds, with leading zeros                                 00 to 59\n    s       Seconds, without leading zeros                              0 to 59\n    SS      Milliseconds, with leading zeros                            000 to 999\n    S       Milliseconds, without leading zeros                         0 to 999\n    A       Uppercase Ante meridiem and Post meridiem                   AM or PM\n    a       Lowercase Ante meridiem and Post meridiem                   am or pm\n\n### Examples\n\n    print.pln(new Date(), 'yyyy-MM-dd A HH:mm:ss');\n    print.pln(new Date(), 'yyyy-MM-dd a HH:mm:ss');\n    print.pln(new Date(), 'yy-MM-dd HH:mm:ss');\n    print.pln(new Date(), 'y-MM-dd HH:mm:ss');\n    print.pln(new Date(), 'y-M-d H:m:s');\n\n","engines":{"node":""},"_npmUser":{"name":"nuysoft","email":"nuysoft@gmail.com"},"homepage":"https://github.com/nuysoft/node-print","keywords":["print","printf","color","date","table"],"licenses":[{"url":"https://github.com/nuysoft/node-print/blob/master/README.md","type":"MIT"}],"repository":{"url":"git://github.com/nuysoft/node-print.git","type":"git"},"_npmVersion":"1.1.59","description":"Print Tool","maintainers":[{"name":"nuysoft","email":"nuysoft@gmail.com"}],"dependencies":{},"devDependencies":{},"_id":"node-print@0.0.4","version":"0.0.4"}