• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1var pz = require('../promzard')
2
3var path = require('path')
4var file = path.resolve(__dirname, 'substack-input.js')
5var buf = require('fs').readFileSync(file)
6var ctx = { basename: path.basename(path.dirname(file)) }
7
8pz.fromBuffer(buf, ctx, function (er, res) {
9  if (er)
10    throw er
11  console.error(JSON.stringify(res, null, 2))
12})
13