{"name":"string.prototype.trimend","version":"1.0.9","author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"contributors":[{"name":"Jordan Harband","email":"ljharb@gmail.com"},{"name":"Khaled Al-Ansari","email":"khaledelansari@gmail.com"}],"funding":{"url":"https://github.com/sponsors/ljharb"},"description":"ES2019 spec-compliant String.prototype.trimEnd shim.","license":"MIT","main":"index.js","scripts":{"prepack":"npmignore --auto --commentLines=autogenerated","prepublish":"not-in-publish || npm run prepublishOnly","prepublishOnly":"safe-publish-latest","lint":"eslint --ext=js,mjs .","postlint":"es-shim-api --bound","pretest":"npm run lint","test":"npm run tests-only","posttest":"npx npm@'>= 10.2' audit --production","tests-only":"nyc tape 'test/**/*.js'","version":"auto-changelog && git add CHANGELOG.md","postversion":"auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""},"repository":{"type":"git","url":"git://github.com/es-shims/String.prototype.trimEnd.git"},"keywords":["es6","es7","es8","javascript","prototype","polyfill","utility","trim","trimLeft","trimRight","trimStart","trimEnd","tc39"],"dependencies":{"call-bind":"^1.0.8","call-bound":"^1.0.2","define-properties":"^1.2.1","es-object-atoms":"^1.0.0"},"devDependencies":{"@es-shims/api":"^2.5.1","@ljharb/eslint-config":"^21.1.1","auto-changelog":"^2.5.0","encoding":"^0.1.13","eslint":"=8.8.0","functions-have-names":"^1.2.3","has-strict-mode":"^1.0.1","in-publish":"^2.0.1","npmignore":"^0.3.1","nyc":"^10.3.2","safe-publish-latest":"^2.0.0","tape":"^5.9.0"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"publishConfig":{"ignore":[".github/workflows"]},"engines":{"node":">= 0.4"},"_id":"string.prototype.trimend@1.0.9","gitHead":"a465f20ab333265a79a8459e2322f26d6fd08cf5","bugs":{"url":"https://github.com/es-shims/String.prototype.trimEnd/issues"},"homepage":"https://github.com/es-shims/String.prototype.trimEnd#readme","_nodeVersion":"23.4.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-G7Ok5C6E/j4SGfyLCloXTrngQIQU3PWtXGst3yM7Bea9FRURf1S42ZHlZZtsNque2FN2PoUhfZXYLNWwEr4dLQ==","shasum":"62e2731272cd285041b36596054e9f66569b6942","tarball":"http://registry-npm.ywwl.com/string.prototype.trimend/download/string.prototype.trimend-1.0.9.tgz","fileCount":16,"unpackedSize":23582,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGZbgLeBjGTGazKrT1XqdAeZrJ4jkmvqjEwyQqE5SeqlAiEAuAteBu7cNec2U5MwAgylHknoSlMw4rZTrPpZAe+yAjQ="}],"size":8088,"noattachment":false,"key":"/string.prototype.trimend/-/string.prototype.trimend-1.0.9.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/string.prototype.trimend_1.0.9_1733941245840_0.9595413443926526"},"_hasShrinkwrap":false,"readme":"# String.prototype.trimEnd <sup>[![Version Badge][npm-version-svg]][package-url]</sup>\n\n[![github actions][actions-image]][actions-url]\n[![coverage][codecov-image]][codecov-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\nAn ES2019-spec-compliant `String.prototype.trimEnd` shim. Invoke its \"shim\" method to shim `String.prototype.trimEnd` 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](https://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 trimEnd = require('string.prototype.trimend');\n\nassert(trimEnd(' \\t\\na \\t\\n') === 'a \\t\\n');\n\nif (!String.prototype.trimEnd) {\n\ttrimEnd.shim();\n}\n\nassert(trimEnd(' \\t\\na \\t\\n ') === ' \\t\\na \\t\\n '.trimEnd());\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[package-url]: https://npmjs.com/package/string.prototype.trimend\n[npm-version-svg]: https://vb.teelaun.ch/es-shims/String.prototype.trimEnd.svg\n[deps-svg]: https://david-dm.org/es-shims/String.prototype.trimEnd.svg\n[deps-url]: https://david-dm.org/es-shims/String.prototype.trimEnd\n[dev-deps-svg]: https://david-dm.org/es-shims/String.prototype.trimEnd/dev-status.svg\n[dev-deps-url]: https://david-dm.org/es-shims/String.prototype.trimEnd#info=devDependencies\n[npm-badge-png]: https://nodei.co/npm/string.prototype.trimend.png?downloads=true&stars=true\n[license-image]: https://img.shields.io/npm/l/string.prototype.trimend.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/string.prototype.trimend.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=string.prototype.trimend\n[codecov-image]: https://codecov.io/gh/es-shims/String.prototype.trimEnd/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/es-shims/String.prototype.trimEnd/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/es-shims/String.prototype.trimEnd\n[actions-url]: https://github.com/es-shims/String.prototype.trimEnd/actions\n","publish_time":1733941246076,"maintainers":[{"name":"khaledelansari","email":"khaledelansari@gmail.com"},{"name":"ljharb","email":"ljharb@gmail.com"}],"_cnpm_publish_time":1733941246076,"dist-tags":{"latest":"1.0.10"}}