Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Apr 29, 2024 via pnpm

es6-shim 0.35.8

ECMAScript 6 (Harmony) compatibility shims for legacy JavaScript engines
Package summary
Share
0
issues
1
license
1
MIT
Package created
25 Dec 2011
Version published
23 Mar 2023
Maintainers
2
Total deps
1
Direct deps
0
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
es6-shim@0.35.8
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
β“˜ This is a list of es6-shim 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does es6-shim do?

ES6-shim is a powerful, ECMAScript 6 (Harmony) compatible tool designed to create seamless compatibility shims for legacy JavaScript engines. With ES6-shim, your JavaScript environment mimics as closely as possible to ECMAScript 6 (Harmony), allowing more progressive coding patterns and language features to be executed even on systems that may not natively support them. Notably, it caters to several functionalities such as Map, Set, Promise, and various String, Object, Number, Array, RegExp, Math functions, and more.

How do you use es6-shim?

To use ES6-shim, you have two main options:

  1. For use in a browser, you need to include the es6-shim before your scripts. If your browser doesn't support ECMAScript 5, you should also include es5-shim before es6-shim.

  2. For node.js, io.js or any npm-managed workflow, you just have to install it through the npm package manager with the command npm install es6-shim.

For better String.prototype.normalize support, it is recommended to install the unorm package alongside es6-shim.

Below is a basic usage code snippet:

require('es6-shim');
var assert = require('assert');

//Using startsWith and endsWith String methods
assert.equal(true, 'abc'.startsWith('a'));
assert.equal(false, 'abc'.endsWith('a'));

//Using Map, a replacement for `{}` key-value storage.
var map = new Map([['Bob', 42], ['Foo', 'bar']]);
map.set('John', 25);
map.set('Alice', 400);
map.set(['meh'], 555);
//... and so on

Consult the README of es6-shim for a detailed usage guide.

Where are the es6-shim docs?

For detailed documentation and support, visit the official GitHub repository git://github.com/paulmillr/es6-shim.git. The repository contains comprehensive information about what's provided by ES6-shim, and how to use it effectively. For a more detailed understanding of ECMAScript 6 spec shims, you can visit the HTML version of the final ECMAScript 6 spec here.