UNPKG

motion

Version:

motion - moving development forward

81 lines (80 loc) 3.03 kB
{ "_args": [ [ "trim-newlines@https://registry.npmjs.org/trim-newlines/-/trim-newlines-1.0.0.tgz", "/Users/nw/flint/packages/flint" ] ], "_from": "trim-newlines@>=1.0.0 <2.0.0", "_id": "trim-newlines@1.0.0", "_inCache": true, "_location": "/trim-newlines", "_phantomChildren": {}, "_requested": { "name": "trim-newlines", "raw": "trim-newlines@https://registry.npmjs.org/trim-newlines/-/trim-newlines-1.0.0.tgz", "rawSpec": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-1.0.0.tgz", "scope": null, "spec": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-1.0.0.tgz", "type": "remote" }, "_requiredBy": [ "/meow" ], "_resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-1.0.0.tgz", "_shasum": "5887966bb582a4503a41eb524f7d35011815a613", "_shrinkwrap": null, "_spec": "trim-newlines@https://registry.npmjs.org/trim-newlines/-/trim-newlines-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/trim-newlines/issues" }, "dependencies": {}, "description": "Trim newlines from the start and/or end of a string", "devDependencies": { "ava": "*", "xo": "*" }, "engines": { "node": ">=0.10.0" }, "files": [ "index.js" ], "homepage": "https://github.com/sindresorhus/trim-newlines#readme", "keywords": [ "crlf", "delete", "end", "left", "lf", "linebreak", "newline", "newlines", "remove", "right", "start", "str", "string", "strip", "trim" ], "license": "MIT", "name": "trim-newlines", "optionalDependencies": {}, "readme": "# trim-newlines [![Build Status](https://travis-ci.org/sindresorhus/trim-newlines.svg?branch=master)](https://travis-ci.org/sindresorhus/trim-newlines)\n\n> Trim [newlines](https://en.wikipedia.org/wiki/Newline) from the start and/or end of a string\n\n\n## Install\n\n```\n$ npm install --save trim-newlines\n```\n\n\n## Usage\n\n```js\nvar trimNewlines = require('trim-newlines');\n\ntrimNewlines('\\nunicorn\\r\\n');\n//=> 'unicorn'\n```\n\n\n## API\n\n### trimNewlines(input)\n\nTrim from the start and end of a string.\n\n### trimNewlines.start(input)\n\nTrim from the start of a string.\n\n### trimNewlines.end(input)\n\nTrim from the end of a string.\n\n\n## Related\n\n- [trim-left](https://github.com/sindresorhus/trim-left) - Similar to `String#trim()` but removes only whitespace on the left\n- [trim-right](https://github.com/sindresorhus/trim-right) - Similar to `String#trim()` but removes only whitespace on the right.\n\n\n## License\n\nMIT © [Sindre Sorhus](http://sindresorhus.com)\n", "readmeFilename": "readme.md", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/trim-newlines.git" }, "scripts": { "test": "xo && ava" }, "version": "1.0.0" }