index.js 417 B

12345678910111213141516171819202122232425
  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. const 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(
  14. input,
  15. recipeConfig,
  16. {},
  17. 0,
  18. false
  19. );
  20. }
  21. };