How to use @observablehq/parser - 2 common examples

To help you get started, we’ve selected a few @observablehq/parser examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github asg017 / unofficial-observablehq-compiler / src / compiler.js View on Github external
const cells = obj.nodes.map(({value}) => {
      const cell = parseCell(value);
      cell.input = value;
      return cell;
    });
    const resolve = this.resolve;
github asg017 / unofficial-observablehq-compiler / src / compiler.js View on Github external
module(text) {
    const m1 = parseModule(text);
    return createModuleDefintion(m1, this.resolve, this.resolveFileAttachments);
  }
  notebook(obj) {

@observablehq/parser

An Acorn parser for Observable JavaScript

ISC
Latest version published 1 year ago

Package Health Score

60 / 100
Full package analysis

Similar packages