UNPKG

motion

Version:

motion - moving development forward

81 lines (80 loc) 2.71 kB
{ "_args": [ [ "redent@https://registry.npmjs.org/redent/-/redent-1.0.0.tgz", "/Users/nw/flint/packages/flint" ] ], "_from": "redent@>=1.0.0 <2.0.0", "_id": "redent@1.0.0", "_inCache": true, "_location": "/redent", "_phantomChildren": {}, "_requested": { "name": "redent", "raw": "redent@https://registry.npmjs.org/redent/-/redent-1.0.0.tgz", "rawSpec": "https://registry.npmjs.org/redent/-/redent-1.0.0.tgz", "scope": null, "spec": "https://registry.npmjs.org/redent/-/redent-1.0.0.tgz", "type": "remote" }, "_requiredBy": [ "/meow" ], "_resolved": "https://registry.npmjs.org/redent/-/redent-1.0.0.tgz", "_shasum": "cf916ab1fd5f1f16dfb20822dd6ec7f730c2afde", "_shrinkwrap": null, "_spec": "redent@https://registry.npmjs.org/redent/-/redent-1.0.0.tgz", "_where": "/Users/nw/flint/packages/flint", "author": { "email": "sindresorhus@gmail.com", "name": "Sindre Sorhus", "url": "sindresorhus.com" }, "bugs": { "url": "https://github.com/sindresorhus/redent/issues" }, "dependencies": { "indent-string": "^2.1.0", "strip-indent": "^1.0.1" }, "description": "Strip redundant indentation and indent the string", "devDependencies": { "ava": "*", "xo": "*" }, "engines": { "node": ">=0.10.0" }, "files": [ "index.js" ], "homepage": "https://github.com/sindresorhus/redent#readme", "keywords": [ "add", "indent", "indentation", "normalize", "reindent", "remove", "space", "str", "string", "strip", "trim", "whitespace" ], "license": "MIT", "name": "redent", "optionalDependencies": {}, "readme": "# redent [![Build Status](https://travis-ci.org/sindresorhus/redent.svg?branch=master)](https://travis-ci.org/sindresorhus/redent)\n\n> [Strip redundant indentation](https://github.com/sindresorhus/strip-indent) and [indent the string](https://github.com/sindresorhus/indent-string)\n\n\n## Install\n\n```\n$ npm install --save redent\n```\n\n\n## Usage\n\n```js\nconst redent = require('redent');\n\nredent('\\n foo\\n bar\\n', 1);\n//=> '\\n foo\\n bar\\n'\n```\n\n\n## API\n\n### redent(input, [count], [indent])\n\n#### input\n\nType: `string`\n\n#### count\n\nType: `number` \nDefault: `0`\n\nHow many times you want `indent` repeated.\n\n#### indent\n\nType: `string` \nDefault: `' '`\n\nThe string to use for the indent.\n\n\n## License\n\nMIT © [Sindre Sorhus](http://sindresorhus.com)\n", "readmeFilename": "readme.md", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/redent.git" }, "scripts": { "test": "xo && ava" }, "version": "1.0.0" }