decoders

v2.5.0
Elegant and battle-tested validation library for type-safe input data for TypeScript
Decoder decoders typescript runtime input schema validation type inference and 2 more...

actually-prepublish

echo "\n\nPlease run \`bin/publish.sh <options>\` instead.\n\n" && exit 2

build

tsup

docs

cog -cr docs/*.md

lint

eslint --color --report-unused-disable-directives src/ test/ && prettier --list-different src/ test/ test-d/

lint:docs

cog -c --check docs/*.md || (npm run docs; git diff; echo 'Error: docs not up-to-date, please re-run "npm docs" to update them.' && exit 1)

lint:package

publint --strict && attw --pack

format

eslint --color --report-unused-disable-directives --fix src/ test/ ; prettier --write src/ test/ test-d/

test

vitest run --coverage

test:completeness

./bin/check.sh

test:typescript

tsc --noEmit

test:types

npm run build && tsd --typings ./dist/index.d.ts

release

npm run test && npm run lint && npm run lint:docs && npm run build && npm run lint:package && release-it
npm i decoders

Metadata

  • MIT
  • Whatever
  • Vincent Driessen
  • released 9/18/2024

Downloads

Maintainers