This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

json-to-azure-node-schema

0.2.0 • Public • Published

json-to-azure-node-schema

npm version

A quicktype library that generates Azure DB Static Schemas for Node from JSON.

Example input (newtable.json):

{
    "text": "Example",
    "complete": true
}

Example output:

newtable.columns = {
    "text": "string",
    "complete": "boolean"
};

Because of the way this library was built, it is nearly as flexible as quicktype. Here is an example:

npm start -- "example/comment.json" --top-level NewTableName

Background

I was working with Azure Mobile App Easy Tables recently, and I learned a new kind of Node schema for backends. Wanting to use quicktype to write my data models once for the client and server, I didn't find anything that satisfies these requirements. I'm not sure what to call this format, but the format really isn't picky, so I built this "language".

It has only been designed for the most basic types, so if you find a useful one that outputting incorrectly (or causes an error to be thrown) please file a GitHub issue, or feel free to contribute a new feature!

Example Usage

npm install

npm install --only=dev

ts-node example/app.ts example/comment.json

Readme

Keywords

none

Package Sidebar

Install

npm i json-to-azure-node-schema

Weekly Downloads

5

Version

0.2.0

License

Apache-2.0

Unpacked Size

65.6 kB

Total Files

14

Last publish

Collaborators

  • sgvictorino