to-object-x

v1.3.0
ES6-compliant shim for ToObject.
ES6 ToObject 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

eslint --fix *.js tests/spec/*.js

security

nsp check

test

jasmine-node --matchall tests/spec/

browserify

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

uglify

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

precommit

npm run production

prepush

npm run production

Metadata

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

Downloads

Maintainers