UNPKG

to-width

Version:

The essential building block for command line tables: truncate & pad strings to given width, taking care of wide characters, accents and ANSI colors

42 lines 1.14 kB
{ "name": "to-width", "version": "1.2.0", "description": "The essential building block for command line tables: truncate & pad strings to given width, taking care of wide characters, accents and ANSI colors", "main": "lib/main.js", "repository": { "type": "git", "url": "https://github.com/loveencounterflow/to-width.git" }, "keywords": [ "text", "leftpad", "left-pad", "truncate", "pad", "wide characters", "combining characters", "cli", "command line", "terminal", "table", "wrap", "CJK" ], "author": "", "license": "MIT", "bugs": { "url": "https://github.com/loveencounterflow/to-width/issues" }, "homepage": "https://github.com/loveencounterflow/to-width", "dependencies": { "string-width": "4.2.3", "wcstring": "^2.1.1" }, "scripts": { "build": "coffee --map -o lib -c src", "push": "git add . && git commit -m'update' && git push", "pub": "npm run build && doctoc README.md && npm run push && npm version patch && npm publish", "test-travis": "node lib/tests.js", "test": "npm run build && node lib/tests.js" } }