index.js 402 B

12345678910111213141516171819
  1. /**
  2. * Node view for CyberChef.
  3. *
  4. * @author n1474335 [n1474335@gmail.com]
  5. * @copyright Crown Copyright 2017
  6. * @license Apache-2.0
  7. */
  8. require("babel-polyfill");
  9. var Chef = require("../core/Chef.js").default;
  10. const CyberChef = module.exports = {
  11. bake: function(input, recipeConfig) {
  12. this.chef = new Chef();
  13. return this.chef.bake(input, recipeConfig, {}, 0, false);
  14. }
  15. };