{ "_args": [ [ { "raw": "remove-trailing-separator@^1.0.1", "scope": null, "escapedName": "remove-trailing-separator", "name": "remove-trailing-separator", "rawSpec": "^1.0.1", "spec": ">=1.0.1 <2.0.0", "type": "range" }, "/home/jdaugherty/work/GT2/GT2-Android/node_modules/normalize-path" ] ], "_from": "remove-trailing-separator@>=1.0.1 <2.0.0", "_id": "remove-trailing-separator@1.1.0", "_inCache": true, "_location": "/remove-trailing-separator", "_nodeVersion": "7.6.0", "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/remove-trailing-separator-1.1.0.tgz_1502872321750_0.834721862571314" }, "_npmUser": { "name": "darsain", "email": "darsain@gmail.com" }, "_npmVersion": "4.2.0", "_phantomChildren": {}, "_requested": { "raw": "remove-trailing-separator@^1.0.1", "scope": null, "escapedName": "remove-trailing-separator", "name": "remove-trailing-separator", "rawSpec": "^1.0.1", "spec": ">=1.0.1 <2.0.0", "type": "range" }, "_requiredBy": [ "/normalize-path" ], "_resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz", "_shasum": "c24bce2a283adad5bc3f58e0d48249b92379d8ef", "_shrinkwrap": null, "_spec": "remove-trailing-separator@^1.0.1", "_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/normalize-path", "author": { "name": "darsain" }, "bugs": { "url": "https://github.com/darsain/remove-trailing-separator/issues" }, "dependencies": {}, "description": "Removes separators from the end of the string.", "devDependencies": { "ava": "^0.16.0", "coveralls": "^2.11.14", "nyc": "^8.3.0", "xo": "^0.16.0" }, "directories": {}, "dist": { "shasum": "c24bce2a283adad5bc3f58e0d48249b92379d8ef", "tarball": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz" }, "files": [ "index.js" ], "gitHead": "f4e8acca09106efeef5a5164f1ad2192fe97fd69", "homepage": "https://github.com/darsain/remove-trailing-separator#readme", "keywords": [ "remove", "strip", "trailing", "separator" ], "license": "ISC", "main": "index.js", "maintainers": [ { "name": "darsain", "email": "darsain@gmail.com" } ], "name": "remove-trailing-separator", "optionalDependencies": {}, "readme": "# remove-trailing-separator\n\n[![NPM version][npm-img]][npm-url] [![Build Status: Linux][travis-img]][travis-url] [![Build Status: Windows][appveyor-img]][appveyor-url] [![Coverage Status][coveralls-img]][coveralls-url]\n\nRemoves all separators from the end of a string.\n\n## Install\n\n```\nnpm install remove-trailing-separator\n```\n\n## Examples\n\n```js\nconst removeTrailingSeparator = require('remove-trailing-separator');\n\nremoveTrailingSeparator('/foo/bar/') // '/foo/bar'\nremoveTrailingSeparator('/foo/bar///') // '/foo/bar'\n\n// leaves only/last separator\nremoveTrailingSeparator('/') // '/'\nremoveTrailingSeparator('///') // '/'\n\n// returns empty string\nremoveTrailingSeparator('') // ''\n```\n\n## Notable backslash, or win32 separator behavior\n\n`\\` is considered a separator only on WIN32 systems. All POSIX compliant systems\nsee backslash as a valid file name character, so it would break POSIX compliance\nto remove it there.\n\nIn practice, this means that this code will return different things depending on\nwhat system it runs on:\n\n```js\nremoveTrailingSeparator('\\\\foo\\\\')\n// UNIX => '\\\\foo\\\\'\n// WIN32 => '\\\\foo'\n```\n\n[npm-url]: https://npmjs.org/package/remove-trailing-separator\n[npm-img]: https://badge.fury.io/js/remove-trailing-separator.svg\n[travis-url]: https://travis-ci.org/darsain/remove-trailing-separator\n[travis-img]: https://travis-ci.org/darsain/remove-trailing-separator.svg?branch=master\n[appveyor-url]: https://ci.appveyor.com/project/darsain/remove-trailing-separator/branch/master\n[appveyor-img]: https://ci.appveyor.com/api/projects/status/wvg9a93rrq95n2xl/branch/master?svg=true\n[coveralls-url]: https://coveralls.io/github/darsain/remove-trailing-separator?branch=master\n[coveralls-img]: https://coveralls.io/repos/github/darsain/remove-trailing-separator/badge.svg?branch=master\n", "readmeFilename": "readme.md", "repository": { "type": "git", "url": "git+https://github.com/darsain/remove-trailing-separator.git" }, "scripts": { "lint": "xo", "pretest": "npm run lint", "report": "nyc report --reporter=html", "test": "nyc ava" }, "version": "1.1.0" }