Superstruct
Check structured JavaScript values against a reusable shape.
ianstormtaylor · Web and apps
GitHub projectOpen source Open on GitHubHow to try it
In a Node.js project, install [email protected]. Require a fruit name and a numeric count in a sample inventory item.
What we tested
2.0.2. Require a fruit name and a numeric count in a sample inventory item. Accepted a numeric count and rejected a text count.
Reviews
Rate this repoMore to explore
- cattrsConvert Python records to and from simple dictionary data.GitHub projectOpen source
- h2 for PythonBuild and parse HTTP/2 messages from Python.GitHub projectOpen source
- Go QuerystringBuild URL query parameters from fields of a Go structure.GitHub projectOpen source