Skip to content

corn-config/corn.js

Repository files navigation

Corn.JS

Native Typescript implementation of the Corn parser.

This is compliant with the (currently unfinished) v0.11 spec.

Installation

Add the @cornjs/parser package.

Usage

import { parse } from '@cornjs/parser';

const corn = "{ let $foo = 42 } in { value = $foo }";
const res = parse(corn);

if(res.ok) console.log(res.value); // { value: 42 }

About

Native Typescript Corn parser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published