normalize-space-x
v1.2.0 es6 normalize-space module javascript nodejs browser
build
npm run build:setver && npm run security && npm run eslint && npm run browserify && npm run uglify && npm run docs && npm run build:jasmine && npm test
build: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
build:watch
nodemon --watch index.js --watch package.json --exec 'npm run build'
docs
jsdoc2md --name-format --example-lang js index.js > README.md
eslint
eslint *.js tests/spec/*.js
security
nsp check
test
jasmine-node --matchall tests/spec/
test:watch
nodemon --watch tests/spec/test.js --exec 'npm test'
browserify
browserify -p browserify-derequire -e index.js -o lib/normalize-space-x.js -u 'crypto' -s returnExports
uglify
uglifyjs lib/normalize-space-x.js -o lib/normalize-space-x.min.js --compress --keep-fnames --mangle --beautify ascii_only=true,beautify=false --source-map lib/normalize-space-x.map