string-polyfills

All polyfills about String

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
string-polyfills
100.9.15 years ago5 years agoMinified + gzip package size for string-polyfills in KB

Readme

string-polyfills
build version package dependencies minified linter tests license hits
The lastest version of this document is available on Github > string-polyfills

Goal

The purpose of this module is to gather all the polyfills on the strings in a single module without dependencies.

Availables operations

  • endsWith
  • startsWith
  • fromCodePoint
  • includes
  • padEnd
  • padStart
  • repeat
  • substr
  • trim
  • trimLeft
  • trimRight

Installation

npm install string-polyfills --save
or
yarn add string-polyfills --save

prerequisites

for browsers

<script src="node_modules/string-polyfills/distrib/string-polyfills.min.js"></script>
Note tests with IE 11, IE 10, Chrome 64, Firefox 58
Author & License
  • Sylvain Longepée
  • Released under MIT license
  • Based on separated scripts referenced at MDN