You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
421 B
15 lines
421 B
const { spawn } = require('child_process'); |
|
|
|
module.exports = function(content, map, meta) { |
|
const cb = this.async(); |
|
const expr = `(import sxml-serializer)(display (serialize-sxml ${content}))`; |
|
const scheme = spawn('chicken-csi', ['-e', expr]); |
|
|
|
scheme.stdout.on('data', data => { |
|
cb(null, data, map, meta); |
|
}); |
|
|
|
scheme.stderr.on('data', data => { |
|
console.error(data); |
|
}); |
|
}
|
|
|