dropcap.js
dropcap.js copied to clipboard
Make it importable in Node
It would be great if this module were importable in Node. That would allow us to build with it using Browserify in the usual way. Right now we have to sort of hack it in.
The trick would be to detect the presence of export
and write to that instead of window
. I can cook up a PR if you're up for it.
+1
@steve-king the issue wasn't closed but AFAIK it now works.
Not for me.
When I do var Dropcap = require('dropcap.js')
or import Dropcap from 'dropcap.js
, Dropcap
is an empty object. I still have to use window.Dropcap
instead.