{"_id":"string.prototype.trimright","_rev":"25647","name":"string.prototype.trimright","description":"ES2019 spec-compliant String.prototype.trimLeft shim.","dist-tags":{"latest":"2.1.3"},"maintainers":[{"name":"ljharb","email":""}],"time":{"modified":"2021-06-03T10:02:28.000Z","created":"2015-07-29T22:40:09.615Z","2.1.3":"2020-11-22T22:08:47.227Z","2.1.2":"2020-03-30T08:02:47.781Z","2.1.1":"2019-12-18T22:01:18.888Z","2.1.0":"2019-09-10T04:50:23.715Z","2.0.0":"2016-02-07T05:59:57.738Z","1.0.1":"2015-07-29T22:40:09.615Z"},"users":{},"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"repository":{"type":"git","url":"git://github.com/es-shims/String.prototype.trimRight.git"},"versions":{"2.1.3":{"name":"string.prototype.trimright","version":"2.1.3","author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"funding":{"url":"https://github.com/sponsors/ljharb"},"description":"ES2019 spec-compliant String.prototype.trimLeft shim.","license":"MIT","main":"index.js","scripts":{"prepublish":"safe-publish-latest","pretest":"npm run lint","test":"npm run tests-only","posttest":"aud --production","tests-only":"nyc tape 'test/**/*.js'","lint":"eslint .","postlint":"es-shim-api --bound"},"repository":{"type":"git","url":"git://github.com/es-shims/String.prototype.trimRight.git"},"keywords":["String.prototype.trimRight","string","ES7","ES2019","shim","trim","trimLeft","trimStart","trimRight","trimEnd","polyfill","es-shim API"],"dependencies":{"call-bind":"^1.0.0","define-properties":"^1.1.3","string.prototype.trimend":"^1.0.3"},"devDependencies":{"@es-shims/api":"^2.1.2","@ljharb/eslint-config":"^17.2.0","aud":"^1.1.3","eslint":"^7.14.0","functions-have-names":"^1.2.1","has-strict-mode":"^1.0.0","nyc":"^10.3.2","safe-publish-latest":"^1.1.4","tape":"^5.0.1"},"testling":{"files":"test/index.js","browsers":["iexplore/9.0..latest","firefox/4.0..6.0","firefox/15.0..latest","firefox/nightly","chrome/4.0..10.0","chrome/20.0..latest","chrome/canary","opera/11.6..latest","opera/next","safari/5.0..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2"]},"engines":{"node":">= 0.4"},"gitHead":"260269f2c4b23bc7ec7ab272d1bd53cf7e9d8993","bugs":{"url":"https://github.com/es-shims/String.prototype.trimRight/issues"},"homepage":"https://github.com/es-shims/String.prototype.trimRight#readme","_id":"string.prototype.trimright@2.1.3","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"shasum":"dc16a21d7456cbc8b2c54d47fe01f06d9efe94eb","size":5899,"noattachment":false,"key":"/string.prototype.trimright/-/string.prototype.trimright-2.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/string.prototype.trimright/download/string.prototype.trimright-2.1.3.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/string.prototype.trimright_2.1.3_1606082927107_0.4863423285780166"},"_hasShrinkwrap":false,"publish_time":1606082927227,"_cnpm_publish_time":1606082927227},"2.1.2":{"name":"string.prototype.trimright","version":"2.1.2","author":{"name":"Jordan Harband"},"funding":{"url":"https://github.com/sponsors/ljharb"},"description":"ES2019 spec-compliant String.prototype.trimLeft shim.","license":"MIT","main":"index.js","scripts":{"prepublish":"safe-publish-latest","pretest":"npm run lint && es-shim-api --bound","test":"npm run tests-only","posttest":"npx aud","tests-only":"npm run test:shimmed && npm run test:module","test:shimmed":"node test/shimmed","test:module":"node test","coverage":"covert test/*.js","lint":"eslint ."},"repository":{"type":"git","url":"git://github.com/es-shims/String.prototype.trimRight.git"},"keywords":["String.prototype.trimRight","string","ES7","ES2019","shim","trim","trimLeft","trimStart","trimRight","trimEnd","polyfill","es-shim API"],"dependencies":{"define-properties":"^1.1.3","es-abstract":"^1.17.5","string.prototype.trimend":"^1.0.0"},"devDependencies":{"@es-shims/api":"^2.1.2","@ljharb/eslint-config":"^16.0.0","covert":"^1.1.1","eslint":"^6.8.0","functions-have-names":"^1.2.1","safe-publish-latest":"^1.1.4","tape":"^5.0.0-next.4"},"testling":{"files":"test/index.js","browsers":["iexplore/9.0..latest","firefox/4.0..6.0","firefox/15.0..latest","firefox/nightly","chrome/4.0..10.0","chrome/20.0..latest","chrome/canary","opera/11.6..latest","opera/next","safari/5.0..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2"]},"engines":{"node":">= 0.4"},"gitHead":"1aa1537aa636b47b10d3c52e0e1fca6a074f8870","bugs":{"url":"https://github.com/es-shims/String.prototype.trimRight/issues"},"homepage":"https://github.com/es-shims/String.prototype.trimRight#readme","_id":"string.prototype.trimright@2.1.2","_nodeVersion":"13.12.0","_npmVersion":"6.14.4","dist":{"shasum":"c76f1cef30f21bbad8afeb8db1511496cfb0f2a3","size":4741,"noattachment":false,"key":"/string.prototype.trimright/-/string.prototype.trimright-2.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/string.prototype.trimright/download/string.prototype.trimright-2.1.2.tgz"},"maintainers":[{"name":"ljharb","email":""}],"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/string.prototype.trimright_2.1.2_1585555367694_0.7726971519268537"},"_hasShrinkwrap":false,"publish_time":1585555367781,"_cnpm_publish_time":1585555367781},"2.1.1":{"name":"string.prototype.trimright","version":"2.1.1","author":{"name":"Jordan Harband"},"funding":{"url":"https://github.com/sponsors/ljharb"},"description":"ES7 spec-compliant String.prototype.trimRight shim.","license":"MIT","main":"index.js","scripts":{"pretest":"npm run lint && es-shim-api --bound","test":"npm run tests-only","posttest":"npx aud","tests-only":"npm run test:shimmed && npm run test:module","test:shimmed":"node test/shimmed","test:module":"node test","coverage":"covert test/*.js","lint":"eslint ."},"repository":{"type":"git","url":"git://github.com/es-shims/String.prototype.trimRight.git"},"keywords":["String.prototype.trimRight","string","ES7","shim","trim","trimLeft","trimRight","polyfill","es-shim API"],"dependencies":{"define-properties":"^1.1.3","function-bind":"^1.1.1"},"devDependencies":{"@es-shims/api":"^2.1.2","@ljharb/eslint-config":"^15.0.2","covert":"^1.1.1","eslint":"^6.7.2","functions-have-names":"^1.2.0","tape":"^4.12.0"},"testling":{"files":"test/index.js","browsers":["iexplore/9.0..latest","firefox/4.0..6.0","firefox/15.0..latest","firefox/nightly","chrome/4.0..10.0","chrome/20.0..latest","chrome/canary","opera/11.6..latest","opera/next","safari/5.0..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2"]},"engines":{"node":">= 0.4"},"gitHead":"e38a0d277fb07788a84989499f154d1f83cbda07","bugs":{"url":"https://github.com/es-shims/String.prototype.trimRight/issues"},"homepage":"https://github.com/es-shims/String.prototype.trimRight#readme","_id":"string.prototype.trimright@2.1.1","_nodeVersion":"13.3.0","_npmVersion":"6.13.1","dist":{"shasum":"440314b15996c866ce8a0341894d45186200c5d9","size":4611,"noattachment":false,"key":"/string.prototype.trimright/-/string.prototype.trimright-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/string.prototype.trimright/download/string.prototype.trimright-2.1.1.tgz"},"maintainers":[{"name":"ljharb","email":""}],"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/string.prototype.trimright_2.1.1_1576706478760_0.44108023368441707"},"_hasShrinkwrap":false,"publish_time":1576706478888,"_cnpm_publish_time":1576706478888},"2.1.0":{"name":"string.prototype.trimright","version":"2.1.0","author":{"name":"Jordan Harband"},"description":"ES7 spec-compliant String.prototype.trimRight shim.","license":"MIT","main":"index.js","scripts":{"pretest":"npm run lint && es-shim-api --bound","test":"npm run tests-only","posttest":"npx aud","tests-only":"npm run test:shimmed && npm run test:module","test:shimmed":"node test/shimmed","test:module":"node test","coverage":"covert test/*.js","lint":"eslint ."},"repository":{"type":"git","url":"git://github.com/es-shims/String.prototype.trimRight.git"},"keywords":["String.prototype.trimRight","string","ES7","shim","trim","trimLeft","trimRight","polyfill","es-shim API"],"dependencies":{"define-properties":"^1.1.3","function-bind":"^1.1.1"},"devDependencies":{"@es-shims/api":"^2.1.2","@ljharb/eslint-config":"^14.1.0","covert":"^1.1.1","eslint":"^6.3.0","functions-have-names":"^1.1.1","tape":"^4.11.0"},"testling":{"files":"test/index.js","browsers":["iexplore/9.0..latest","firefox/4.0..6.0","firefox/15.0..latest","firefox/nightly","chrome/4.0..10.0","chrome/20.0..latest","chrome/canary","opera/11.6..latest","opera/next","safari/5.0..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2"]},"engines":{"node":">= 0.4"},"gitHead":"cc5ac7d9e2dcafc6394ebdfd3d601dc5f5abb2f9","bugs":{"url":"https://github.com/es-shims/String.prototype.trimRight/issues"},"homepage":"https://github.com/es-shims/String.prototype.trimRight#readme","_id":"string.prototype.trimright@2.1.0","_nodeVersion":"12.10.0","_npmVersion":"6.10.3","dist":{"shasum":"669d164be9df9b6f7559fa8e89945b168a5a6c58","size":5316,"noattachment":false,"key":"/string.prototype.trimright/-/string.prototype.trimright-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/string.prototype.trimright/download/string.prototype.trimright-2.1.0.tgz"},"maintainers":[{"name":"ljharb","email":""}],"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/string.prototype.trimright_2.1.0_1568091023545_0.6012024758007699"},"_hasShrinkwrap":false,"publish_time":1568091023715,"_cnpm_publish_time":1568091023715},"2.0.0":{"name":"string.prototype.trimright","version":"2.0.0","author":{"name":"Jordan Harband"},"description":"ES7 spec-compliant String.prototype.trimRight shim.","license":"MIT","main":"index.js","scripts":{"test":"npm run lint && es-shim-api --bound && npm run tests-only && npm run security","tests-only":"npm run test:shimmed && npm run test:module","test:shimmed":"node test/shimmed.js","test:module":"node test/index.js","coverage":"covert test/*.js","coverage-quiet":"covert test/*.js --quiet","lint":"npm run jscs && npm run eslint","eslint":"eslint test/*.js *.js","jscs":"jscs test/*.js *.js","security":"nsp check"},"repository":{"type":"git","url":"git://github.com/es-shims/String.prototype.trimRight.git"},"keywords":["String.prototype.trimRight","string","ES7","shim","trim","trimLeft","trimRight","polyfill","es-shim API"],"dependencies":{"define-properties":"^1.1.2","function-bind":"^1.0.2"},"devDependencies":{"tape":"^4.4.0","covert":"^1.1.0","jscs":"^2.9.0","nsp":"^2.2.0","eslint":"^1.10.3","@ljharb/eslint-config":"^1.6.1","@es-shims/api":"^1.1.0"},"testling":{"files":"test/index.js","browsers":["iexplore/9.0..latest","firefox/4.0..6.0","firefox/15.0..latest","firefox/nightly","chrome/4.0..10.0","chrome/20.0..latest","chrome/canary","opera/11.6..latest","opera/next","safari/5.0..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2"]},"engines":{"node":">= 0.4"},"gitHead":"0df2b83b28b705004b88868f2970a274584516d1","bugs":{"url":"https://github.com/es-shims/String.prototype.trimRight/issues"},"homepage":"https://github.com/es-shims/String.prototype.trimRight#readme","_id":"string.prototype.trimright@2.0.0","_shasum":"ab4a56d802a01fbe7293e11e84f24dc8164661dd","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.5.0","_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"dist":{"shasum":"ab4a56d802a01fbe7293e11e84f24dc8164661dd","size":5642,"noattachment":false,"key":"/string.prototype.trimright/-/string.prototype.trimright-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/string.prototype.trimright/download/string.prototype.trimright-2.0.0.tgz"},"maintainers":[{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"packages-5-east.internal.npmjs.com","tmp":"tmp/string.prototype.trimright-2.0.0.tgz_1454824795643_0.04415615135803819"},"directories":{},"publish_time":1454824797738,"_cnpm_publish_time":1454824797738,"_hasShrinkwrap":false},"1.0.1":{"name":"string.prototype.trimright","version":"1.0.1","author":{"name":"Jordan Harband"},"description":"ES7 spec-compliant String.prototype.trimRight shim.","license":"MIT","main":"index.js","scripts":{"test":"npm run lint && npm run test:shimmed && npm run test:module && npm run security","test:shimmed":"node test/shimmed.js","test:module":"node test/index.js","coverage":"covert test/*.js","coverage-quiet":"covert test/*.js --quiet","lint":"npm run jscs && npm run eslint","eslint":"eslint test/*.js *.js","jscs":"jscs test/*.js *.js","security":"nsp package"},"repository":{"type":"git","url":"git://github.com/es-shims/String.prototype.trimRight.git"},"keywords":["String.prototype.trimRight","string","ES7","shim","trim","trimLeft","trimRight","polyfill"],"dependencies":{"define-properties":"^1.1.1","function-bind":"^1.0.2"},"devDependencies":{"tape":"^4.0.1","covert":"^1.1.0","jscs":"^1.13.1","nsp":"^1.0.3","eslint":"^1.0.0-rc-3","@ljharb/eslint-config":"^1.0.3"},"testling":{"files":"test/index.js","browsers":["iexplore/9.0..latest","firefox/4.0..6.0","firefox/15.0..latest","firefox/nightly","chrome/4.0..10.0","chrome/20.0..latest","chrome/canary","opera/11.6..latest","opera/next","safari/5.0..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2"]},"engines":{"node":">= 0.4"},"gitHead":"9ea53172b3bc16c7c33591569e655c2280984bad","bugs":{"url":"https://github.com/es-shims/String.prototype.trimRight/issues"},"homepage":"https://github.com/es-shims/String.prototype.trimRight#readme","_id":"string.prototype.trimright@1.0.1","_shasum":"b8dedf42fcb98670bf90a8a6ec3281dbd61819fa","_from":".","_npmVersion":"2.13.0","_nodeVersion":"2.4.0","_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"dist":{"shasum":"b8dedf42fcb98670bf90a8a6ec3281dbd61819fa","size":4663,"noattachment":false,"key":"/string.prototype.trimright/-/string.prototype.trimright-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/string.prototype.trimright/download/string.prototype.trimright-1.0.1.tgz"},"maintainers":[{"name":"ljharb","email":""}],"directories":{},"publish_time":1438209609615,"_cnpm_publish_time":1438209609615,"_hasShrinkwrap":false}},"readme":"String.prototype.trimRight <sup>[![Version Badge][npm-version-svg]][package-url]</sup>\n\n[![Build Status][travis-svg]][travis-url]\n[![dependency status][deps-svg]][deps-url]\n[![dev dependency status][dev-deps-svg]][dev-deps-url]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\n[![npm badge][npm-badge-png]][package-url]\n\n[![browser support][testling-svg]][testling-url]\n\nA ES2019-spec-compliant `String.prototype.trimRight` shim. Invoke its \"shim\" method to shim `String.prototype.trimRight` if it is unavailable.\n\nThis package implements the [es-shim API](https://github.com/es-shims/api) interface. It works in an ES3-supported environment and complies with the [spec](http://www.ecma-international.org/ecma-262/6.0/#sec-object.assign). In an ES6 environment, it will also work properly with `Symbol`s.\n\nMost common usage:\n```js\nvar trimRight = require('string.prototype.trimright');\n\nassert(trimRight(' \\t\\na \\t\\n') === 'a \\t\\n');\n\nif (!String.prototype.trimRight) {\n\ttrimRight.shim();\n}\n\nassert(trimRight(' \\t\\na \\t\\n ') === ' \\t\\na \\t\\n '.trimRight());\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[package-url]: https://npmjs.com/package/string.prototype.trimright\n[npm-version-svg]: http://vb.teelaun.ch/es-shims/String.prototype.trimRight.svg\n[travis-svg]: https://travis-ci.org/es-shims/String.prototype.trimRight.svg\n[travis-url]: https://travis-ci.org/es-shims/String.prototype.trimRight\n[deps-svg]: https://david-dm.org/es-shims/String.prototype.trimRight.svg\n[deps-url]: https://david-dm.org/es-shims/String.prototype.trimRight\n[dev-deps-svg]: https://david-dm.org/es-shims/String.prototype.trimRight/dev-status.svg\n[dev-deps-url]: https://david-dm.org/es-shims/String.prototype.trimRight#info=devDependencies\n[testling-svg]: https://ci.testling.com/es-shims/String.prototype.trimRight.png\n[testling-url]: https://ci.testling.com/es-shims/String.prototype.trimRight\n[npm-badge-png]: https://nodei.co/npm/string.prototype.trimright.png?downloads=true&stars=true\n[license-image]: http://img.shields.io/npm/l/string.prototype.trimright.svg\n[license-url]: LICENSE\n[downloads-image]: http://img.shields.io/npm/dm/string.prototype.trimright.svg\n[downloads-url]: http://npm-stat.com/charts.html?package=string.prototype.trimright\n","_attachments":{},"homepage":"https://github.com/es-shims/String.prototype.trimRight#readme","bugs":{"url":"https://github.com/es-shims/String.prototype.trimRight/issues"},"license":"MIT"}