This package has been deprecated

Author message:

Use @natlibfi/es6-polyfills instead

es6-polyfills

2.0.0 • Public • Published

ES6 polyfills NPM Version Build Status Test Coverage

A collection of ES6 polyfills that use native implementations if available and do not pollute the global namespace

List of polyfills

Polyfill implementations are from different projects:

Installation

Clone the sources and install the package (In the source directory) on command line using npm:

npm install

Testing

Run the following NPM script to lint, test and check coverage of the code:

 
npm run check
 

Usage

AMD

 
define(['es6-polyfills/lib/polyfills/promise'], function(Promise) {
 
 var p = new Promise(function(resolve, reject){
  resolve(); 
 });
 
});
 
 

Node.js

 
var Promise = require('es6-polyfills/lib/polyfills/promise');
var p = new Promise(function(resolve, reject){
  resolve();
});
 

License and copyright

Copyright (c) 2015-2016 University Of Helsinki (The National Library Of Finland)

This project's source code is licensed under the terms of GNU Lesser General Public License Version 3 or any later version. See each polyfill implementation for their respective licensing terms.

Package Sidebar

Install

npm i es6-polyfills

Weekly Downloads

992

Version

2.0.0

License

LGPL-3.0+

Last publish

Collaborators