object-keys-x

v1.0.0
An ES6 Object.keys shim.
ES6 object keys module javascript nodejs browser

clean

rimraf README.md lib/*

clean:jasmine

rimraf tests/index.html tests/run.js

clean:all

npm run clean:jasmine && npm run clean

build

npm run clean && npm run lint && npm run browserify && npm run uglify && npm run docs && npm test && npm run security

build:jasmine

npm run clean:jasmine && make-jasmine-spec-runner-html

build:setver

PKG_VER=$(node -p -e "require('./package.json').version") && replace-x " @version .*" " @version ${PKG_VER}" index.js

production

npm run clean:all && npm run build:jasmine && npm run build:setver && npm run build

start

parallelshell "serve" "nodemon --watch index.js --exec 'npm run build'"

docs

jsdoc2md --name-format --example-lang js index.js > README.md

lint

eslint *.js tests/spec/*.js

lint-fix

npm run lint -- --fix

security

nsp check

test

jasmine-node --matchall tests/spec/

browserify

browserify -p browserify-derequire -e index.js -o lib/object-keys-x.js -u 'crypto' -s returnExports

uglify

uglifyjs lib/object-keys-x.js -o lib/object-keys-x.min.js --support-ie8 --compress --keep-fnames --mangle --beautify ascii_only=true,beautify=false --source-map

precommit

npm run production

prepush

npm run production

Metadata

  • MIT
  • *
  • Graham Fairweather
  • released 7/8/2017

Downloads

Maintainers