Skip to content

Add media support to magicpen (images, audio, video)

Notifications You must be signed in to change notification settings

mawtex/magicpen-media

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

magicpen-media

Add media support to magicpen (images, audio, video). Can also be used as a plugin to Unexpected 9.0.0+.

NPM version Build Status Coverage Status Dependency Status

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>

About

Add media support to magicpen (images, audio, video)

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%