es6-shim

v0.35.8
ECMAScript 6 (Harmony) compatibility shims for legacy JavaScript engines
ecmascript harmony es6 shim promise promises setPrototypeOf map set and 2 more...

prepublishOnly

safe-publish-latest && npm run minify

prepublih

not-in-publish || npm run prepublishOnly

pretest

npm run lint && evalmd *.md

test

NODE_OPTIONS='--unhandled-rejections=none' npm run tests-only

posttest

aud --production

tests-only

nyc mocha 'test/**/*.js' 'test-sham/*.js'

test:shim

nyc mocha 'test/**/*.js'

test:sham

nyc mocha 'test-sham/*.js'

test:native

NO_ES6_SHIM=1 npm run tests-only

lint

npm run lint:shim && npm run lint:sham

lint:shim

eslint es6-shim.js test/*.js test/*/*.js

lint:sham

eslint es6-sham.js test-sham/*.js

minify

npm run minify:shim && npm run minify:sham

minify:shim

uglifyjs es6-shim.js --support-ie8 --keep-fnames --comments --source-map=es6-shim.map -m -b ascii_only=true,beautify=false > es6-shim.min.js

minify:sham

uglifyjs es6-sham.js --support-ie8 --keep-fnames --comments --source-map=es6-sham.map -m -b ascii_only=true,beautify=false > es6-sham.min.js

sauce-connect

curl -L https://gist.githubusercontent.com/henrikhodne/9322897/raw/sauce-connect.sh | bash && export TRAVIS_SAUCE_CONNECT=true

sauce

npm run sauce-connect && grunt sauce
npm i es6-shim

Metadata

  • MIT
  • Whatever
  • Paul Miller
  • released 3/23/2023

Downloads