replacor
small module to replace code blocks with custom code, like for css code generators for example.
(technically it's also a very tiny template engine haha)
npm i -S replacor
var rp = // Replace from a stringvar res1 = rp // 'var test = 1' // You can also replace multiple ones, just keep the ordervar res2 = rp // 'var test2 = /()/' // If you have a lot of them and you don't want to remember the order, you// can name themvar res3 = rp // 'var test = "cool var" (and so on...)'
license
MIT