UNPKG

motion

Version:

motion - moving development forward

76 lines (75 loc) 2.98 kB
{ "_args": [ [ "indent-string@https://registry.npmjs.org/indent-string/-/indent-string-2.1.0.tgz", "/Users/nw/flint/packages/flint" ] ], "_from": "indent-string@>=2.1.0 <3.0.0", "_id": "indent-string@2.1.0", "_inCache": true, "_location": "/indent-string", "_phantomChildren": { "is-finite": "1.0.1" }, "_requested": { "name": "indent-string", "raw": "indent-string@https://registry.npmjs.org/indent-string/-/indent-string-2.1.0.tgz", "rawSpec": "https://registry.npmjs.org/indent-string/-/indent-string-2.1.0.tgz", "scope": null, "spec": "https://registry.npmjs.org/indent-string/-/indent-string-2.1.0.tgz", "type": "remote" }, "_requiredBy": [ "/redent" ], "_resolved": "https://registry.npmjs.org/indent-string/-/indent-string-2.1.0.tgz", "_shasum": "8e2d48348742121b4a8218b7a137e9a52049dc80", "_shrinkwrap": null, "_spec": "indent-string@https://registry.npmjs.org/indent-string/-/indent-string-2.1.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/indent-string/issues" }, "dependencies": { "repeating": "^2.0.0" }, "description": "Indent each line in a string", "devDependencies": { "mocha": "*" }, "engines": { "node": ">=0.10.0" }, "files": [ "index.js" ], "homepage": "https://github.com/sindresorhus/indent-string#readme", "keywords": [ "align", "indent", "line", "pad", "str", "string", "text" ], "license": "MIT", "name": "indent-string", "optionalDependencies": {}, "readme": "# indent-string [![Build Status](https://travis-ci.org/sindresorhus/indent-string.svg?branch=master)](https://travis-ci.org/sindresorhus/indent-string)\n\n> Indent each line in a string\n\n\n## Install\n\n```\n$ npm install --save indent-string\n```\n\n\n## Usage\n\n```js\nvar indentString = require('indent-string');\n\nindentString('Unicorns\\nRainbows', '♥', 4);\n//=> ♥♥♥♥Unicorns\n//=> ♥♥♥♥Rainbows\n```\n\n\n## API\n\n### indentString(string, indent, count)\n\n#### string\n\n**Required** \nType: `string`\n\nThe string you want to indent.\n\n#### indent\n\n**Required** \nType: `string`\n\nThe string to use for the indent.\n\n#### count\n\nType: `number` \nDefault: `1`\n\nHow many times you want `indent` repeated.\n\n\n## Related\n\n- [indent-string-cli](https://github.com/sindresorhus/indent-string-cli) - CLI for this module\n- [strip-indent](https://github.com/sindresorhus/strip-indent) - Strip leading whitespace from every line in a string\n\n\n## License\n\nMIT © [Sindre Sorhus](http://sindresorhus.com)\n", "readmeFilename": "readme.md", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/indent-string.git" }, "scripts": { "test": "mocha" }, "version": "2.1.0" }