{"_id":"trim-right","_rev":"40917","name":"trim-right","description":"Similar to `String#trim()` but removes only whitespace on the right","dist-tags":{"latest":"2.0.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2021-08-04T03:34:49.000Z","created":"2015-02-17T03:52:37.807Z","2.0.0":"2021-04-21T10:54:15.051Z","1.0.1":"2015-07-15T20:19:55.126Z","1.0.0":"2015-02-17T03:52:37.807Z"},"users":{},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/trim-right.git"},"versions":{"2.0.0":{"name":"trim-right","version":"2.0.0","description":"Similar to `String#trim()` but removes only whitespace on the right","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/trim-right.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12"},"scripts":{"test":"xo && ava"},"keywords":["trim","right","string","whitespace","space","remove","delete","end","trailing"],"devDependencies":{"ava":"^3.15.0","xo":"^0.39.1"},"gitHead":"73ea799f19070ec45801c6c17f432d1ebf526bad","bugs":{"url":"https://github.com/sindresorhus/trim-right/issues"},"homepage":"https://github.com/sindresorhus/trim-right#readme","_id":"trim-right@2.0.0","_nodeVersion":"12.22.1","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"19f987a2fca0c81b46ab72a54e0e4d41e099d689","size":1756,"noattachment":false,"key":"/trim-right/-/trim-right-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/trim-right/download/trim-right-2.0.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/trim-right_2.0.0_1619002454921_0.6349658169530177"},"_hasShrinkwrap":false,"publish_time":1619002455051,"_cnpm_publish_time":1619002455051,"deprecated":"Deprecated. Use `String#trimEnd()` instead."},"1.0.1":{"name":"trim-right","version":"1.0.1","description":"Similar to String#trim() but removes only whitespace on the right","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/trim-right"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["trim","right","string","str","util","utils","utility","whitespace","space","remove","delete"],"devDependencies":{"ava":"0.0.4"},"gitHead":"105fb46669afb0deb49d14bd688b276297e59dff","bugs":{"url":"https://github.com/sindresorhus/trim-right/issues"},"homepage":"https://github.com/sindresorhus/trim-right","_id":"trim-right@1.0.1","_shasum":"cb2e1203067e0c8de1f614094b9fe45704ea6003","_from":".","_npmVersion":"2.11.2","_nodeVersion":"0.12.5","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"cb2e1203067e0c8de1f614094b9fe45704ea6003","size":1575,"noattachment":false,"key":"/trim-right/-/trim-right-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/trim-right/download/trim-right-1.0.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1436991595126,"_cnpm_publish_time":1436991595126,"_hasShrinkwrap":false},"1.0.0":{"name":"trim-right","version":"1.0.0","description":"Similar to String#trim() but removes only whitespace on the right","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/trim-right"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["trim","right","string","str","util","utils","utility","whitespace","space","remove","delete"],"devDependencies":{"ava":"0.0.4"},"gitHead":"24d7eef85e9faf926af7a74403ff3122d020c30b","bugs":{"url":"https://github.com/sindresorhus/trim-right/issues"},"homepage":"https://github.com/sindresorhus/trim-right","_id":"trim-right@1.0.0","_shasum":"c59f9d6185e89f328687afdedddbecf0d8f2627c","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"dist":{"shasum":"c59f9d6185e89f328687afdedddbecf0d8f2627c","size":1524,"noattachment":false,"key":"/trim-right/-/trim-right-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/trim-right/download/trim-right-1.0.0.tgz"},"directories":{},"publish_time":1424145157807,"_cnpm_publish_time":1424145157807,"_hasShrinkwrap":false}},"readme":"# trim-right\n\n> Similar to [`String#trim()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/Trim) but removes only whitespace on the right\n\n## Install\n\n```\n$ npm install trim-right\n```\n\n## Usage\n\n```js\nimport trimRight from 'trim-right';\n\ntrimRight('  unicorn  ');\n//=> '  unicorn'\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-off-newlines`](https://github.com/stevemao/trim-off-newlines) - Similar to `String#trim()` but removes only newlines\n\n---\n\n<div align=\"center\">\n\t<b>\n\t\t<a href=\"https://tidelift.com/subscription/pkg/npm-trim-right?utm_source=npm-trim-right&utm_medium=referral&utm_campaign=readme\">Get professional support for this package with a Tidelift subscription</a>\n\t</b>\n\t<br>\n\t<sub>\n\t\tTidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.\n\t</sub>\n</div>\n","_attachments":{},"homepage":"https://github.com/sindresorhus/trim-right#readme","bugs":{"url":"https://github.com/sindresorhus/trim-right/issues"},"license":"MIT"}