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

string.prototype.trimstart

Package Overview
Dependencies
2
Maintainers
2
Versions
8
Issues
File Explorer

Advanced tools

string.prototype.trimstart

ES2019 spec-compliant String.prototype.trimStart shim.

    1.0.0

Version published
Maintainers
2
Weekly downloads
24,376,402
decreased by-1.62%

Weekly downloads

Changelog

Source

v1.0.0 - 2020-03-30

Commits

Readme

Source

String.prototype.trimStart Version Badge

Build Status dependency status dev dependency status License Downloads

npm badge

browser support

An ES2019-spec-compliant String.prototype.trimStart shim. Invoke its "shim" method to shim String.prototype.trimStart 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 trimStart = require('string.prototype.trimstart'); assert(trimStart(' \t\na \t\n') === 'a \t\n'); if (!String.prototype.trimStart) { trimStart.shim(); } assert(trimStart(' \t\na \t\n') === ' \t\na \t\n'.trimStart());

Tests

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

Keywords

FAQs

What is string.prototype.trimstart?

ES2019 spec-compliant String.prototype.trimStart shim.

Is string.prototype.trimstart popular?

The npm package string.prototype.trimstart receives a total of 20,177,243 weekly downloads. As such, string.prototype.trimstart popularity was classified as popular.

Is string.prototype.trimstart well maintained?

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

Last updated on 30 Mar 2020
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