{"name":"format-io","version":"2.0.0","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"Format size, permissions","homepage":"http://github.com/coderaiser/format-io","repository":{"type":"git","url":"git://github.com/coderaiser/format-io.git"},"keywords":["format","size","permissions"],"scripts":{"fix:lint":"madrun fix:lint","lint":"madrun lint","lint:test":"madrun lint:test","test":"madrun test","report":"madrun report","coverage":"madrun coverage","watcher":"madrun watcher","watch:test":"madrun watch:test","watch:lint":"madrun watch:lint"},"dependencies":{"currify":"^4.0.0"},"license":"MIT","engines":{"node":">=8"},"main":"lib/format.js","devDependencies":{"coveralls":"^3.0.1","eslint":"^6.4.0","eslint-plugin-node":"^10.0.0","eslint-plugin-putout":"^2.0.0","madrun":"^3.0.5","mkdirp":"^0.5.1","nodemon":"^1.17.5","nyc":"^14.1.1","putout":"^6.1.0","supertape":"^1.2.3"},"gitHead":"8d64760539969da8da5e73d69d2ab6c0d5505e4c","bugs":{"url":"https://github.com/coderaiser/format-io/issues"},"_id":"format-io@2.0.0","_nodeVersion":"12.10.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-iQz8w2qr4f+doWBV6LsfScHbu1gXhccByjbmA1wjBTaKRhweH2baJL96UGR4C7Fjpr8zSkK7EXiLmbzZWTyQIA==","shasum":"8da8a37ccc6c5e0502cbf1d68be7734070105bf2","tarball":"http://registry-npm.ywwl.com/format-io/download/format-io-2.0.0.tgz","fileCount":6,"unpackedSize":8268,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdhLIvCRA9TVsSAnZWagAA2jQP/0VhFHRVLmvnQrIH7x11\nzzc0LS5xj0ue7wqdGeHokRkLwe8Mq1nUBwHI8QQ0RRc0aQ18118MCfYRUVIX\n7O6W9raRnh/Q3Ytkt/CJMXAFByOqXbiJCS5/cOSoV6x5h7PgjYzTPmP3UJMS\nFs2O/Ifs8ifT64WA9QIyBWE8JLUuAsh9zisuP6waQDGSau64OuDaJ7xWf3lD\nqeXAHbrppL4yfUhGxEM3FuwyT1xVxz5Ezm1xtMxRh4G/sOtChvwxFvBgIFAG\n5FGuNr+hp5V1XMTXX6lvIbtJvfC5NrdMwZR/dez+/n4eyN80CgAf/ScRyt6C\nE4/PsjFnO//wyHhbQKpM5ZYJamOvG+e7b/vhIPfAJTmhi1lOa4fV8i524qpO\nvYGBtmswxpanSQ7ejY26b4lSSTSmmG+GgxElAS+pfiL2jZ2aTV4FHo0ce2xS\ngbxS/qaMf4u801+6qWZV91cidvnASVMIi6McEHCl8OHaQx6Rp+MM4uRvSOFq\naLHMbIR1KEDfM1HAWsHhjb78X956at1lgbv/p5Z8/tlkTVbnQZuQ8nHuMaYd\nbtC5zawzsjwIsAQ4HmQc81tSvlsjpupgmSDpExrXCzLtOX36DyF4xtwzSd2h\nKRZZxKB1zFBQQX7HQwKyno8AwtnUlca9e1kUlWbjrLRzytcv7EcAW4BLToO5\nKfvh\r\n=R9ZT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC5DAwYz/TEDAdTSEFsUqlJGqq5oqNAn5767T/KN2JqDAiEAi2421pmzV7H4GSNeNUy+yw3i2csTuU79yWmvHCk3y70="}],"size":3399,"noattachment":false,"key":"/format-io/-/format-io-2.0.0.tgz"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/format-io_2.0.0_1568977454830_0.9221016394230199"},"_hasShrinkwrap":false,"readme":"# Format [![License][LicenseIMGURL]][LicenseURL] [![NPM version][NPMIMGURL]][NPMURL] [![Dependency Status][DependencyStatusIMGURL]][DependencyStatusURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Coverage Status][CoverageIMGURL]][CoverageURL]\n\nFormat size, permissions, etc.\n\n# How to use?\n\nFormat could be used in browser or node.\n\n```js\nconst format = require('format-io');\n```\n\n# API\n\n## size\n\n```js\nconst size = 1024 * 1024 * 5;\nformat.size(size);\n// returns\n'5.00mb'\n```\n\n## permissions.symbolic\n\n```js\nconst perm = '00777';\nformat.permissions.symbolic(perm);\n// returns\n'rwx rwx rwx'\n```\n\n## permissions.numeric\n\n```js\nconst perm = 'rwx rwx rwx';\nformat.permissions.numeric(perm);\n// returns\n'00777'\n```\n\n# License\n\nMIT\n\n[NPMIMGURL]:                https://img.shields.io/npm/v/format-io.svg?style=flat\n[BuildStatusIMGURL]:        https://img.shields.io/travis/coderaiser/format-io/master.svg?style=flat\n[DependencyStatusIMGURL]:   https://img.shields.io/david/coderaiser/format-io.svg?style=flat\n[LicenseIMGURL]:            https://img.shields.io/badge/license-MIT-317BF9.svg?style=flat\n[NPMURL]:                   https://npmjs.org/package/format-io \"npm\"\n[BuildStatusURL]:           https://travis-ci.org/coderaiser/format-io  \"Build Status\"\n[DependencyStatusURL]:      https://david-dm.org/coderaiser/format-io \"Dependency Status\"\n[LicenseURL]:               https://tldrlegal.com/license/mit-license \"MIT License\"\n\n[CoverageURL]:              https://coveralls.io/github/coderaiser/format-io?branch=master\n[CoverageIMGURL]:           https://coveralls.io/repos/coderaiser/format-io/badge.svg?branch=master&service=github\n\n","publish_time":1568977454978,"_cnpm_publish_time":1568977454978,"dist-tags":{"latest":"2.0.0"}}