{"version":3,"sources":["jsdelivr-header.js","/npm/create_file_with_content@1.0.2/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACDA,IAAI,GAAK,QAAQ,MAEjB,QAAQ,WAAa,SAAS,EAAU,GACvC,GAAG,KAAK,EAAU,KAAK,SAAS,EAAK,GAClC,GAAI,EAAK,MAAM,EACf,QAAQ,IAAI,yBACZ,GAAG,UAAU,EAAU,GAAa,SAAS,GAC3C,GAAI,EAAK,MAAM,EACf,QAAQ,IAAK,oCACf,GACH,GACD","file":"/npm/create_file_with_content@1.0.2/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/create_file_with_content@1.0.2/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","/*\r\n * Required File System module\r\n * use required() for import module\r\n */\r\n \r\nvar fs = require('fs');\r\n\r\nexports.createFile = function(filePath, fileContent){\r\n\tfs.open(filePath, 'w', function(err, file){\r\n    if (err) throw err;\r\n    console.log('file has been created');\r\n    fs.writeFile(filePath, fileContent, function(err){\r\n      if (err) throw err;\r\n      console.log ('content has been added in a file.');\r\n    })\r\n\t})\r\n}"]}