pnpm
Version:
Fast, disk space efficient package manager
129 lines (128 loc) • 4.92 kB
JSON
{
"_args": [
[
{
"raw": "widest-line@^2.0.0",
"scope": null,
"escapedName": "widest-line",
"name": "widest-line",
"rawSpec": "^2.0.0",
"spec": ">=2.0.0 <3.0.0",
"type": "range"
},
"/home/zoltan/src/pnpm/pnpm/packages/pnpm/node_modules/boxen"
]
],
"_from": "widest-line@^2.0.0",
"_hasShrinkwrap": false,
"_id": "widest-line@2.0.1",
"_location": "/widest-line",
"_nodeVersion": "10.12.0",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/widest-line_2.0.1_1539713572686_0.18572373483175264"
},
"_npmUser": {
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
},
"_npmVersion": "6.4.1",
"_phantomChildren": {
"ansi-regex": "3.0.0"
},
"_requested": {
"raw": "widest-line@^2.0.0",
"scope": null,
"escapedName": "widest-line",
"name": "widest-line",
"rawSpec": "^2.0.0",
"spec": ">=2.0.0 <3.0.0",
"type": "range"
},
"_requiredBy": [
"/boxen"
],
"_resolved": "https://registry.npmjs.org/widest-line/-/widest-line-2.0.1.tgz",
"_shasum": "7438764730ec7ef4381ce4df82fb98a53142a3fc",
"_shrinkwrap": null,
"_spec": "widest-line@^2.0.0",
"_where": "/home/zoltan/src/pnpm/pnpm/packages/pnpm/node_modules/boxen",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"bugs": {
"url": "https://github.com/sindresorhus/widest-line/issues"
},
"dependencies": {
"string-width": "^2.1.1"
},
"description": "Get the visual width of the widest line in a string - the number of columns required to display it",
"devDependencies": {
"ava": "*",
"xo": "*"
},
"directories": {},
"dist": {
"integrity": "sha512-Ba5m9/Fa4Xt9eb2ELXt77JxVDV8w7qQrH0zS/TWSJdLyAwQjWoOzpzj5lwVftDz6n/EOu3tNACS84v509qwnJA==",
"shasum": "7438764730ec7ef4381ce4df82fb98a53142a3fc",
"tarball": "https://registry.npmjs.org/widest-line/-/widest-line-2.0.1.tgz",
"fileCount": 4,
"unpackedSize": 3159,
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbxiolCRA9TVsSAnZWagAAjAMQAJ6ujsqqctO6++0dwIuK\niSlfJEQIxGW+JsGdYRvdeKEjgz3/tZcv6dgvoBTa0jH8Ujq+oUdtg6gFVMUS\noIVe8tyX/c8QHhWrVhO4Q6eYKkGul3ssftEIT4cC+CkD1DlJXVyB47qV4FoJ\nyslyyOquu8Z/bo1dXnI/qm1DkAMEK/QG4nuwAdPR7qRMlF6HDQmmMxIllPn4\nFaxGtuJbQTXCCa9en++llzZ7iB1OX5Q6yJq6ETwQy7vZpWP9EiozHEhxq9O/\n0uB0quHwtkU5oaN3Z9eqzlpL+mtSj4n1iQlTYgdG3YoykszLqIh6cSFKNZ6U\nA/3rnM4phTLalLCgFIixmZVIFwlnLdpQQtexB67pbL6UaWa+CFfSi2dImeOf\no/PO9nlJ2DS0IMlifyVYlMGTp+PjIPujxCdL5NpGtFjvNSQ8u+6G+pI722bp\nBPVGJ9QI4JtxCxeDjeX3K7t7dXL2N98t3H5opb+boFWapwWuY5tD7c9tKoNT\npNKXOxwm2kgHhAsieKkPUQZ2Pmv+ABIy0cUwVpDazUNQ/gbcAc+4SzDdY9hF\nuOcc/VS4bi0lNYlY7PedaXey+RJDvXokxNZZ0CEX1NHe93oAW+c/SPqxLWzJ\n46vMD1onggq6e9qv8MHq5ArAivLCyH6Coa5QvPD5c5yAtCOr8fb9u6eC37Ja\nJEGO\r\n=oEsx\r\n-----END PGP SIGNATURE-----\r\n"
},
"engines": {
"node": ">=4"
},
"files": [
"index.js"
],
"gitHead": "11fc92452ad77233a53cec179202a6c68e2b8ad3",
"homepage": "https://github.com/sindresorhus/widest-line#readme",
"keywords": [
"string",
"str",
"character",
"char",
"unicode",
"width",
"visual",
"column",
"columns",
"fullwidth",
"full-width",
"full",
"ansi",
"escape",
"codes",
"cli",
"command-line",
"terminal",
"console",
"cjk",
"chinese",
"japanese",
"korean",
"fixed-width"
],
"license": "MIT",
"maintainers": [
{
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
}
],
"name": "widest-line",
"optionalDependencies": {},
"readme": "# widest-line [](https://travis-ci.org/sindresorhus/widest-line)\n\n> Get the visual width of the widest line in a string - the number of columns required to display it\n\nSome Unicode characters are [fullwidth](https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms) and use double the normal width. [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code) are stripped and doesn't affect the width.\n\nUseful to be able to know the maximum width a string will take up in the terminal.\n\n\n## Install\n\n```\n$ npm install widest-line\n```\n\n\n## Usage\n\n```js\nconst widestLine = require('widest-line');\n\nwidestLine('古\\n\\u001B[1m@\\u001B[22m');\n//=> 2\n```\n\n\n## Related\n\n- [string-width](https://github.com/sindresorhus/string-width) - Get the visual width of a string\n\n\n## License\n\nMIT © [Sindre Sorhus](https://sindresorhus.com)\n",
"readmeFilename": "readme.md",
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/widest-line.git"
},
"scripts": {
"test": "xo && ava"
},
"version": "2.0.1"
}