Skip to content

An ES-spec-compliant shim/polyfill/replacement for JS language Math and Number constant values that works as far down as ES3

License

Notifications You must be signed in to change notification settings

es-shims/es-constants

Repository files navigation

es-constants Version Badge

github actions coverage License Downloads

npm badge

An ES-spec-compliant shim/polyfill/replacement for JS language Math and Number constant values that works as far down as ES3.

This package implements the es-shim API “multi” interface. It works in an ES3-supported environment and complies with the spec.

The main export of the package itself is simply an array of the available directory names. It’s sole intended use is for build tooling and testing.

Supported methods

Getting started

npm install --save es-constants

Usage/Examples

var assert = require('assert');
require('./auto'); // shim all of the constants

require('./Number.MAX_VALUE/auto'); // shim the Number.MAX_VALUE constant

Tests

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

About

An ES-spec-compliant shim/polyfill/replacement for JS language Math and Number constant values that works as far down as ES3

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks