string-polyfills

0.9.1 • Public • Published

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

Package Sidebar

Install

npm i string-polyfills

Weekly Downloads

118

Version

0.9.1

License

MIT

Unpacked Size

29 kB

Total Files

6

Last publish

Collaborators

  • sylvain59