{ "_id": "strip-eof", "_rev": "5-fd3cc05081671d890398a7ad801715ee", "name": "strip-eof", "description": "Strip the final newline character from a string/buffer", "dist-tags": { "latest": "2.0.0" }, "versions": { "1.0.0": { "name": "strip-eof", "version": "1.0.0", "description": "Strip the End-Of-File (EOF) character from a string/buffer", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/sindresorhus/strip-eof" }, "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "sindresorhus.com" }, "engines": { "node": ">=0.10.0" }, "scripts": { "test": "xo && ava" }, "files": [ "index.js" ], "keywords": [ "strip", "trim", "remove", "delete", "eof", "end", "file", "newline", "linebreak", "character", "string", "buffer" ], "devDependencies": { "ava": "*", "xo": "*" }, "gitHead": "365dfe6c19b4e607a0cc2cf7dad0b0620f238333", "bugs": { "url": "https://github.com/sindresorhus/strip-eof/issues" }, "homepage": "https://github.com/sindresorhus/strip-eof", "_id": "strip-eof@1.0.0", "_shasum": "bb43ff5598a6eb05d89b59fcd129c983313606bf", "_from": ".", "_npmVersion": "2.14.7", "_nodeVersion": "4.2.1", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "shasum": "bb43ff5598a6eb05d89b59fcd129c983313606bf", "tarball": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" } ], "directories": {} }, "2.0.0": { "name": "strip-eof", "version": "2.0.0", "description": "Strip the final newline character from a string/buffer", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/strip-eof.git" }, "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "sindresorhus.com" }, "engines": { "node": ">=6" }, "scripts": { "test": "xo && ava" }, "keywords": [ "strip", "trim", "remove", "delete", "final", "last", "end", "file", "newline", "linebreak", "character", "string", "buffer" ], "devDependencies": { "ava": "^0.25.0", "xo": "^0.23.0" }, "gitHead": "c2f362408cb129b068a5670af0a886ff665e5438", "bugs": { "url": "https://github.com/sindresorhus/strip-eof/issues" }, "homepage": "https://github.com/sindresorhus/strip-eof#readme", "_id": "strip-eof@2.0.0", "_npmVersion": "6.4.1", "_nodeVersion": "10.12.0", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-zLsJC+5P5hGu4Zmoq6I4uo6bTf1Nx6Z/vnZedxwnrcfkc38Vz6UiuqGOtS9bewFaoTCDErpqkV7v02htp9KEow==", "shasum": "2e3f3c5145d02de826eafb23e65b2faf675448b4", "tarball": "https://registry.npmjs.org/strip-eof/-/strip-eof-2.0.0.tgz", "fileCount": 4, "unpackedSize": 2634, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb1XJ+CRA9TVsSAnZWagAAArIP/34FbuiZ17N1dQGREGYk\nyG2hvd5hR4rVGVjU4/QDPVlgJzXFmCmxlpKgy+pa9Igpc7ouHiqwCCwrPbgz\nigYNp3R/EkRcUx+VkkiF3P2HKCBgnOvmPFQJ3OCqmQ2/zEZ7SiDnA52JTply\nihJtrc98kyKCPbe2sYnmA4os4bfoIIek+yz10vKkpQdhZa2JCONdcui9XnAQ\ni0fYxVa7c+rkvM9U/PQbLhNiOdBgRhRgWvcqv/F26f9mX8ZDPwcIK3VYFmna\nEgEva1N0H0+Mc5WoVrrq0RmdqqX6IBnvVUXVMxyZxHXOQRfd8PgggZxFD2v3\nWdYzeZuTvhYtciWnphRVi2KOQ87Sc4i42OPDENoJMeCmPwWajWHXCvaqJAH8\npln3pCPvSz/wQFry0gkeQoTVcNIdIOtj3fmj25HlAfUtIUXQZ0Fy2i608I6a\nCEQzhY9GxHpxtz+Ljf69cgoWp+EDSYhKtJs3k97O9ASW1IuymDxeAz9YqBAF\nsVCToV3OYPjrfz2C0/juFRPg2UgCs6p8XnoG3XTQtv/7i/SW2cB8cszsP6nb\nXpVC1nwoiF/WWFRmXTbJpHVJS6VQZY+Z2X7HLF+9p9XEWGt6n2OdOOtSbYit\nDYOzIKjvtskLFxHwo1k5+QOZoMLhIl9vGWdOiYvuEIvey10ZJiMVlrF+96O3\nUY48\r\n=pxER\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/strip-eof_2.0.0_1540715134076_0.3997127143864665" }, "_hasShrinkwrap": false, "deprecated": "Renamed to `strip-final-newline` to better represent its functionality." } }, "readme": "# strip-eof [![Build Status](https://travis-ci.com/sindresorhus/strip-eof.svg?branch=master)](https://travis-ci.com/sindresorhus/strip-eof)\n\n> Strip the [End-Of-File](https://en.wikipedia.org/wiki/End-of-file) (EOF) character from a string/buffer\n\n\n## Install\n\n```\n$ npm install strip-eof\n```\n\n\n## Usage\n\n```js\nconst stripEof = require('strip-eof');\n\nstripEof('foo\\nbar\\n\\n');\n//=> 'foo\\nbar\\n'\n\nstripEof(Buffer.from('foo\\nbar\\n\\n')).toString();\n//=> 'foo\\nbar\\n'\n```\n\n\n## License\n\nMIT © [Sindre Sorhus](https://sindresorhus.com)\n", "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" } ], "time": { "modified": "2019-01-05T13:39:14.549Z", "created": "2015-12-05T11:49:53.556Z", "1.0.0": "2015-12-05T11:49:53.556Z", "2.0.0": "2018-10-28T08:25:34.212Z" }, "homepage": "https://github.com/sindresorhus/strip-eof#readme", "keywords": [ "strip", "trim", "remove", "delete", "final", "last", "end", "file", "newline", "linebreak", "character", "string", "buffer" ], "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/strip-eof.git" }, "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "sindresorhus.com" }, "bugs": { "url": "https://github.com/sindresorhus/strip-eof/issues" }, "license": "MIT", "readmeFilename": "readme.md" }