- const npos = require('npos')
- const parser = npos.parser()
- const buffer = Buffer.from('\x1B\x40Hola mundo\x0A\x1B\x61\x49probando')
- console.log(buffer)
- parser.parse(buffer).then(function (ast) {
- console.log(ast)
- npos.textualize(ast).then(function (txt) {
- console.log(txt)
- })
- })
|