normalize-space-x

v1.0.0
Strips leading and trailing white-space from a string, replaces sequences of whitespace characters by a single space, and returns the resulting string.
es6 normalize-space module javascript nodejs browser

test

jasmine-node --matchall tests/spec/

security

nsp check

style

jscs index.js

eslint

eslint *.js tests/spec/*.js

docs

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

build

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

build-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

Metadata

  • MIT
  • *
  • Graham Fairweather
  • released 3/16/2017

Downloads

Maintainers