1.0.0 • Published 4 years ago
jsonotron-example-doc-types v1.0.0
A library of example doc type definitions used to demonstrate the Jsonotron engine
A library of example doc type definitions used to demonstrate the Jsonotron engine.
This package is part of the Jsonotron system.
Jsonotron is...
- a small set of components for building a NodeJS microservice
- for storing, patching and querying JSON documents
- stored in a schemaless/NoSQL database
- that have known, enforceable, and evolving schemas.
Visit https://karlhulme.github.io/jsonotron/ for details on how to get started.
Installation
npm install jsonotron-examples-doc-types --save
Usage
const { exampleDocTypes } = require('jsonotron-example-doc-types')
const dt = exampleDocTypes.find(docType => docType.name === 'scientist')
console.log(dt.pluralName) // outputs 'scientists'
Development
Code base adheres to the rules chosen by https://standardjs.com/. Code is formatted with 2 spaces.
Tests are written using Jest with 100% coverage.
npm test
Continuous Deployment
Any commits to master will cause the library to be re-published.