UNPKG

otiluke

Version:

Deploy JavaScript code transformers written in JavaScript themselves on node and browsers

11 lines 282 B
const Infect = require("./infect.js"); module.exports = (Virus, options) => { const command = options._; options = Object.assign({}, options); delete options._; Virus(options, (error, transform) => { if (error) throw error; Infect(transform, command); }); };