cleaners

v0.3.17
Cleans & validates untrusted data, with TypeScript & Flow support
conversion json validation

clean

rimraf lib

fix

eslint . --fix

flow

flow

lib

rollup -c && cp src/index.js.flow lib/cjs && echo '{"type":"module"}' > lib/esm/package.json

lint

eslint .

precommit

lint-staged && npm-run-all -p flow types

prepare

husky install && npm-run-all clean -p lib types

test

nyc mocha 'test/**/*.test.ts'

types

tsc

verify

npm-run-all -p flow types -s lib lint test
npm i cleaners

Metadata

  • MIT
  • Whatever
  • William Swanson
  • released 9/9/2024

Downloads

Maintainers