9.2.3 • Published 3 years ago

@enkidevs/curriculum-parser-json v9.2.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

JSON -> AST for Enki Curriculum

This parser processes an Enki JSON and produces the Enki Curriculum AST.

const {
  contentTypes: { INSIGHT }
} = require("@enkidevs/curriculum-helpers");
const {
  getParser: getMarkdownParser
} = require("@enkidevs/curriculum-parser-markdown");
const {
  getCompiler: getJSONCompiler
} = require("@enkidevs/curriculum-compiler-json");
const {
  getParser: getJSONParser
} = require("@enkidevs/curriculum-parser-json");

const jsonCompiler = getJSONCompiler(INSIGHT);
const mdParser = getMarkdownParser(INSIGHT);
const jsonParser = getJSONParser(INSIGHT);

// get ast from a string
const ast = mdParser.parseSync(sampleInsight)

// get json from ast
const json = jsonCompiler.compileSync(ast)

// get ast back from json (using this package)
const ast2 = jsonParser.parseSync(json)
9.2.3

3 years ago

9.2.2

3 years ago

9.2.0

3 years ago

9.1.1

3 years ago

9.1.0

4 years ago

9.0.2

4 years ago

9.0.1

4 years ago

9.0.0

4 years ago

8.0.0

4 years ago

7.2.0

4 years ago

7.1.2

4 years ago

7.1.1

4 years ago

7.1.0

4 years ago

7.0.3

4 years ago

7.0.2

4 years ago

7.0.1

4 years ago

7.0.0

4 years ago

6.0.5

4 years ago

6.0.4

4 years ago

6.0.3

4 years ago

6.0.2

4 years ago

5.1.0

5 years ago

5.0.0

5 years ago

4.0.1

5 years ago

4.0.0

5 years ago

3.1.1

6 years ago

3.1.0

6 years ago

3.0.2

6 years ago