decoders

v2.3.0-beta.2
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...

docs

cog -cr docs/*.md

lint

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

test

vitest run --coverage

build

tsup

format

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

release

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

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)

test:types

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

lint:package

publint --strict && attw --pack

test:typescript

tsc --noEmit

test:completeness

./bin/check.sh

actually-prepublish

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

Metadata

  • MIT
  • Whatever
  • Vincent Driessen
  • released 1/7/2024

Downloads

Maintainers