Big update!Announcing Socket for GitHub 1.0. Learn more
Socket
BlogLoveFAQ
Install
Log in

string.prototype.trimend

Package Overview
Dependencies
3
Maintainers
2
Versions
8
Issues
File Explorer

Advanced tools

string.prototype.trimend

ES2019 spec-compliant String.prototype.trimEnd shim.

    1.0.5latest

Version published
Maintainers
2
Weekly downloads
28,176,526
increased by0.81%

Weekly downloads

Changelog

Source

v1.0.5 - 2022-05-02

Commits

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

What is string.prototype.trimend?

ES2019 spec-compliant String.prototype.trimEnd shim.

Is string.prototype.trimend popular?

The npm package string.prototype.trimend receives a total of 22,959,537 weekly downloads. As such, string.prototype.trimend popularity was classified as popular.

Is string.prototype.trimend well maintained?

We found that string.prototype.trimend demonstrated a healthy version release cadence and project activity. It has 2 open source maintainers collaborating on the project.

Last updated on 03 May 2022
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc