system: Linux mars.sprixweb.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
| Direktori : /usr/lib/node_modules/npm/node_modules/promzard/example/ |
| Current File : //usr/lib/node_modules/npm/node_modules/promzard/example/buffer.js |
var pz = require('../promzard')
var path = require('path')
var file = path.resolve(__dirname, 'substack-input.js')
var buf = require('fs').readFileSync(file)
var ctx = { basename: path.basename(path.dirname(file)) }
pz.fromBuffer(buf, ctx, function (er, res) {
if (er)
throw er
console.error(JSON.stringify(res, null, 2))
})