nocode-converter
v1.0.0
Published
Convert nocode to JavaScript!
Downloads
2
Readme
nocode-converter
Convert nocode to javascript!
usage
index.no.js:
var NoCode = require('nocode-converter')
var fs = require('node:fs')
var jsThatIsntNocode = fs.readFileSync('index.js').toString()
var nocode = fs.readFileSync('index.no').toString()
eval(NoCode.convertToJavaScript(nocode, jsThatIsntNocode))
index.no:
index.js:
console.log('some random js')
The reason it takes in the js that isn't nocode is to make sure that the nocode corresponds with it. This package is only used if you are using the style of writing JS then making it into nocode but still wanting to import it with require.