sql2gbnf

0.0.15 • Public • Published

SQL2GBNF

Latest sql2gbnf NPM Version License for sql2gbnf Downloads per week on NPM for sql2gbnf Status of tests for sql2gbnf repository Code Coverage for sql2gbnf DeepSource issues for sql2gbnf

A library for parsing JSON schema definitions into .gbnf grammar files in Javascript.

Install

npm install sql2gbnf

Usage

import SQL2GBNF from 'sql2gbnf';

const grammar = SQL2GBNF({
  type: 'object',
  properties: {
    number: { type: 'number' },
    street_name: { type: 'string' },
    street_type: { enum: ['Street', 'Avenue', 'Boulevard'] },

  },
});

console.log(grammar); // GBNF grammar

/sql2gbnf/

    Package Sidebar

    Install

    npm i sql2gbnf

    Weekly Downloads

    16

    Version

    0.0.15

    License

    MIT

    Unpacked Size

    42.7 MB

    Total Files

    8

    Last publish

    Collaborators

    • thekevinscott