0.0.1 • Published 10 years ago
emb-script v0.0.1
emb-script
embed external script to HTML
Installation
$ npm install emb-script
Usage
in.html
<!DOCTYPE html>
<html>
<body>
<script type="text/javascript" src="script.js"></script>
</body>
</html>
script.js
console.log('foo');
and
var emb = require('emb-script');
emb('in.html', function(err, out) {
console.log(out);
});
outputs
<!DOCTYPE html>
<html>
<body>
<script type="text/javascript">
console.log('foo');
</script>
</body>
</html>
License
MIT
0.0.1
10 years ago