@zkochan/pnpm
Version:
Fast, disk space efficient package manager
123 lines (122 loc) • 3.81 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/zkochan/src/pnpm/packages/pnpm/node_modules/boxen"
]
],
"_from": "widest-line@>=2.0.0 <3.0.0",
"_id": "widest-line@2.0.0",
"_inCache": true,
"_location": "/widest-line",
"_nodeVersion": "4.8.4",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/widest-line-2.0.0.tgz_1512075148854_0.25011543300934136"
},
"_npmUser": {
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
},
"_npmVersion": "2.15.11",
"_phantomChildren": {},
"_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.0.tgz",
"_shasum": "0142a4e8a243f8882c0233aa0e0281aa76152273",
"_shrinkwrap": null,
"_spec": "widest-line@^2.0.0",
"_where": "/home/zkochan/src/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": {
"shasum": "0142a4e8a243f8882c0233aa0e0281aa76152273",
"tarball": "https://registry.npmjs.org/widest-line/-/widest-line-2.0.0.tgz"
},
"engines": {
"node": ">=4"
},
"files": [
"index.js"
],
"gitHead": "af57e1e5eb6b7d8542eac408c64b7c34207d0d7e",
"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.0"
}