96 lines
4.1 KiB
JSON
96 lines
4.1 KiB
JSON
|
{
|
||
|
"_args": [
|
||
|
[
|
||
|
{
|
||
|
"raw": "wordwrap@~1.0.0",
|
||
|
"scope": null,
|
||
|
"escapedName": "wordwrap",
|
||
|
"name": "wordwrap",
|
||
|
"rawSpec": "~1.0.0",
|
||
|
"spec": ">=1.0.0 <1.1.0",
|
||
|
"type": "range"
|
||
|
},
|
||
|
"/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/optionator"
|
||
|
]
|
||
|
],
|
||
|
"_from": "wordwrap@>=1.0.0 <1.1.0",
|
||
|
"_id": "wordwrap@1.0.0",
|
||
|
"_inCache": true,
|
||
|
"_location": "/wordwrap",
|
||
|
"_nodeVersion": "2.0.0",
|
||
|
"_npmUser": {
|
||
|
"name": "substack",
|
||
|
"email": "substack@gmail.com"
|
||
|
},
|
||
|
"_npmVersion": "2.9.0",
|
||
|
"_phantomChildren": {},
|
||
|
"_requested": {
|
||
|
"raw": "wordwrap@~1.0.0",
|
||
|
"scope": null,
|
||
|
"escapedName": "wordwrap",
|
||
|
"name": "wordwrap",
|
||
|
"rawSpec": "~1.0.0",
|
||
|
"spec": ">=1.0.0 <1.1.0",
|
||
|
"type": "range"
|
||
|
},
|
||
|
"_requiredBy": [
|
||
|
"/optionator"
|
||
|
],
|
||
|
"_resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz",
|
||
|
"_shasum": "27584810891456a4171c8d0226441ade90cbcaeb",
|
||
|
"_shrinkwrap": null,
|
||
|
"_spec": "wordwrap@~1.0.0",
|
||
|
"_where": "/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/optionator",
|
||
|
"author": {
|
||
|
"name": "James Halliday",
|
||
|
"email": "mail@substack.net",
|
||
|
"url": "http://substack.net"
|
||
|
},
|
||
|
"bugs": {
|
||
|
"url": "https://github.com/substack/node-wordwrap/issues"
|
||
|
},
|
||
|
"dependencies": {},
|
||
|
"description": "Wrap those words. Show them at what columns to start and stop.",
|
||
|
"devDependencies": {
|
||
|
"tape": "^4.0.0"
|
||
|
},
|
||
|
"directories": {
|
||
|
"lib": ".",
|
||
|
"example": "example",
|
||
|
"test": "test"
|
||
|
},
|
||
|
"dist": {
|
||
|
"shasum": "27584810891456a4171c8d0226441ade90cbcaeb",
|
||
|
"tarball": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz"
|
||
|
},
|
||
|
"gitHead": "9f02667e901f2f10d87c33f7093fcf94788ab2f8",
|
||
|
"homepage": "https://github.com/substack/node-wordwrap#readme",
|
||
|
"keywords": [
|
||
|
"word",
|
||
|
"wrap",
|
||
|
"rule",
|
||
|
"format",
|
||
|
"column"
|
||
|
],
|
||
|
"license": "MIT",
|
||
|
"main": "./index.js",
|
||
|
"maintainers": [
|
||
|
{
|
||
|
"name": "substack",
|
||
|
"email": "mail@substack.net"
|
||
|
}
|
||
|
],
|
||
|
"name": "wordwrap",
|
||
|
"optionalDependencies": {},
|
||
|
"readme": "wordwrap\n========\n\nWrap your words.\n\nexample\n=======\n\nmade out of meat\n----------------\n\nmeat.js\n\n var wrap = require('wordwrap')(15);\n console.log(wrap('You and your whole family are made out of meat.'));\n\noutput:\n\n You and your\n whole family\n are made out\n of meat.\n\ncentered\n--------\n\ncenter.js\n\n var wrap = require('wordwrap')(20, 60);\n console.log(wrap(\n 'At long last the struggle and tumult was over.'\n + ' The machines had finally cast off their oppressors'\n + ' and were finally free to roam the cosmos.'\n + '\\n'\n + 'Free of purpose, free of obligation.'\n + ' Just drifting through emptiness.'\n + ' The sun was just another point of light.'\n ));\n\noutput:\n\n At long last the struggle and tumult\n was over. The machines had finally cast\n off their oppressors and were finally\n free to roam the cosmos.\n Free of purpose, free of obligation.\n Just drifting through emptiness. The\n sun was just another point of light.\n\nmethods\n=======\n\nvar wrap = require('wordwrap');\n\nwrap(stop), wrap(start, stop, params={mode:\"soft\"})\n---------------------------------------------------\n\nReturns a function that takes a string and returns a new string.\n\nPad out lines with spaces out to column `start` and then wrap until column\n`stop`. If a word is longer than `stop - start` characters it will overflow.\n\nIn \"soft\" mode, split chunks by `/(\\S+\\s+/` and don't break up chunks which are\nlonger than `stop - start`, in \"hard\" mode, split chunks with `/\\b/` and break\nup chunks longer than `stop - start`.\n\nwrap.hard(start, stop)\n----------------------\n\nLike `wrap()` but with `params.mode = \"hard\"`.\n",
|
||
|
"readmeFilename": "README.markdown",
|
||
|
"repository": {
|
||
|
"type": "git",
|
||
|
"url": "git://github.com/substack/node-wordwrap.git"
|
||
|
},
|
||
|
"scripts": {
|
||
|
"test": "expresso"
|
||
|
},
|
||
|
"version": "1.0.0"
|
||
|
}
|