{ "_args": [ [ { "raw": "detect-newline@^2.1.0", "scope": null, "escapedName": "detect-newline", "name": "detect-newline", "rawSpec": "^2.1.0", "spec": ">=2.1.0 <3.0.0", "type": "range" }, "/home/jdaugherty/work/GT2/GT2-Android/node_modules/jest-docblock" ] ], "_from": "detect-newline@>=2.1.0 <3.0.0", "_id": "detect-newline@2.1.0", "_inCache": true, "_location": "/detect-newline", "_nodeVersion": "4.3.0", "_npmOperationalInternal": { "host": "packages-9-west.internal.npmjs.com", "tmp": "tmp/detect-newline-2.1.0.tgz_1455648165578_0.057551848934963346" }, "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "_npmVersion": "2.14.12", "_phantomChildren": {}, "_requested": { "raw": "detect-newline@^2.1.0", "scope": null, "escapedName": "detect-newline", "name": "detect-newline", "rawSpec": "^2.1.0", "spec": ">=2.1.0 <3.0.0", "type": "range" }, "_requiredBy": [ "/jest-docblock", "/jest-runner/jest-docblock", "/jest-runtime/jest-docblock", "/jest/jest-docblock" ], "_resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-2.1.0.tgz", "_shasum": "f41f1c10be4b00e87b5f13da680759f2c5bfd3e2", "_shrinkwrap": null, "_spec": "detect-newline@^2.1.0", "_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/jest-docblock", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "sindresorhus.com" }, "bugs": { "url": "https://github.com/sindresorhus/detect-newline/issues" }, "dependencies": {}, "description": "Detect the dominant newline character of a string", "devDependencies": { "ava": "*", "xo": "*" }, "directories": {}, "dist": { "shasum": "f41f1c10be4b00e87b5f13da680759f2c5bfd3e2", "tarball": "https://registry.npmjs.org/detect-newline/-/detect-newline-2.1.0.tgz" }, "engines": { "node": ">=0.10.0" }, "files": [ "index.js" ], "gitHead": "6d96229078f55b65e6252dd2c0a42006e6a81833", "homepage": "https://github.com/sindresorhus/detect-newline#readme", "keywords": [ "newline", "linebreak", "line-break", "line", "lf", "crlf", "eol", "linefeed", "character", "char" ], "license": "MIT", "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" } ], "name": "detect-newline", "optionalDependencies": {}, "readme": "# detect-newline [![Build Status](https://travis-ci.org/sindresorhus/detect-newline.svg?branch=master)](https://travis-ci.org/sindresorhus/detect-newline)\n\n> Detect the dominant newline character of a string\n\n\n## Install\n\n```\n$ npm install --save detect-newline\n```\n\n\n## Usage\n\n```js\nconst detectNewline = require('detect-newline');\n\ndetectNewline('foo\\nbar\\nbaz\\r\\n');\n//=> '\\n'\n```\n\n\n## API\n\n### detectNewline(input)\n\nReturns detected newline or `null` when no newline character is found.\n\n### detectNewline.graceful(input)\n\nReturns detected newline or `\\n` when no newline character is found.\n\n\n## Related\n\n- [detect-newline-cli](https://github.com/sindresorhus/detect-newline-cli) - CLI for this module\n- [detect-indent](https://github.com/sindresorhus/detect-indent) - Detect the indentation of code\n\n\n## License\n\nMIT © [Sindre Sorhus](http://sindresorhus.com)\n", "readmeFilename": "readme.md", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/detect-newline.git" }, "scripts": { "test": "xo && ava" }, "version": "2.1.0" }