Socket
Book a DemoInstallSign in
Socket

@deckchair-technicians/vice

Package Overview
Dependencies
Maintainers
2
Versions
107
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@deckchair-technicians/vice

Validation and coercion toolkit

latest
npmnpm
Version
0.1.9
Version published
Maintainers
2
Created
Source

build status npm version

Why?

  • Schema and class are defined in the same place
  • Less noisy and verbose that field decorators
  • Schema can be separated from the class, and created without a class
  • Type safety ensure schema output matches intended field type
  • Provide some reassurance that if x instanceof SomeDataClass, then x conforms to the schema of SomeClass. Removes the need to consider whether x needs to be validated again.

How to run the tests in WebStorm

Remember to add --require require-ts-node.js to Extra Mocha Options in the runner config screen

FAQs

Package last updated on 25 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts