0.3.1 • Published 4 years ago

slice2json v0.3.1

Weekly downloads
406
License
GPL-2.0
Repository
github
Last release
4 years ago

slice2json

Parser for the Slice language.

Usage

import {readFileSync} from 'fs';
import {parse} from 'slice2json';

const contents = readFileSync('MySlice.ice', 'utf-8');
const result = parse(contents);
/*
  {
    "pragmaOnce": true,
    "includes": [...],
    "modules": {
      "type": "module",
      "name": "MyModule",
      "content": [...]
    }
  }
*/

See types.ts for the schema of returned object.

0.3.0

4 years ago

0.3.1

4 years ago

0.2.1

4 years ago

0.2.0

5 years ago

0.1.6

5 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago