magicpen-media
v3.0.2
Published
Add media support to magicpen (images, audio, video)
Downloads
43,368
Readme
magicpen-media
Add media support to magicpen (images, audio, video). Can also be used as a plugin to Unexpected 9.0.0+.
var MagicPen = require('magicpen');
var pen = new MagicPen().installPlugin(require('magicpen-media')).clone('html');
pen.image('foo.png');
console.log(pen.toString());
Output:
<div style="font-family: monospace; white-space: nowrap">
<div><img src="foo.png" /></div>
</div>