es-constants

1.0.1 • Public • Published

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

Package Sidebar

Install

npm i es-constants

Weekly Downloads

36

Version

1.0.1

License

MIT

Unpacked Size

25.5 kB

Total Files

90

Last publish

Collaborators

  • ljharb