Big news!Introducing Socket AI - ChatGPT-Powered Threat Analysis.Learn more
Socket
Socket

string.prototype.trimend

Package Overview
Dependencies
3
Maintainers
2
Versions
9
Issues
File Explorer

Advanced tools

string.prototype.trimend

ES2019 spec-compliant String.prototype.trimEnd shim.

    1.0.6latest
    GitHub
    npm

Version published
Maintainers
2
Weekly downloads
28,908,968
increased by7.43%

Weekly downloads

Changelog

Source

v1.0.6 - 2022-11-07

Commits

  • [meta] use npmignore to autogenerate an npmignore file 1d1e717
  • [actions] update rebase action to use reusable workflow 83f2683
  • [Dev Deps] update aud, tape a3a9129
  • [Deps] update es-abstract a6e476d

Readme

Source

String.prototype.trimEnd Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

An ES2019-spec-compliant String.prototype.trimEnd shim. Invoke its "shim" method to shim String.prototype.trimEnd if it is unavailable.

This package implements the es-shim API interface. It works in an ES3-supported environment and complies with the spec. In an ES6 environment, it will also work properly with Symbols.

Most common usage:

var trimEnd = require('string.prototype.trimend'); assert(trimEnd(' \t\na \t\n') === 'a \t\n'); if (!String.prototype.trimEnd) { trimEnd.shim(); } assert(trimEnd(' \t\na \t\n ') === ' \t\na \t\n '.trimEnd());

Tests

Simply clone the repo, npm install, and run npm test

Keywords

FAQs

Last updated on 07 Nov 2022

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket
Socket SOC 2 Logo

Product

  • Package Issues
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc