CyberChef/src/node/index.js

28 lines
486 B
JavaScript
Raw Normal View History

/**
* Node view for CyberChef.
*
* @author n1474335 [n1474335@gmail.com]
* @copyright Crown Copyright 2017
* @license Apache-2.0
*/
2017-03-25 13:56:46 +00:00
require("babel-polyfill");
2017-04-13 17:08:50 +00:00
const Chef = require("../core/Chef.js").default;
2017-10-04 21:35:44 +00:00
const CyberChef = {
bake: function(input, recipeConfig) {
this.chef = new Chef();
return this.chef.bake(
2017-07-24 13:49:16 +00:00
input,
recipeConfig,
{},
0,
false
);
}
};
2017-10-04 21:35:44 +00:00
module.exports = CyberChef;