Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including sheetify-inline with all npm packages installed. Try it out:

var sheetifyInline = require("sheetify-inline")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

sheetify-inline v1.2.3

a plugin converts img to base64 for sheetify

sheetify-inline stability

npm version downloads travis build

Plugin transforms img to base64 for sheetify

works with async functions (node 7.6+)

Example

before:

div{
  background: url('test.png')
}

after:

div{
  background: url('data:image/png;base64,iVBORw0KGgoAAA...')
}

Test

npm test

Command line

$ browserify entry.js -t [ sheetify/transform -u sheetify-inline ]

JS api

const browserify = require('browserify')

browserify()
 .transform('sheetify/transform', { use: [ 'sheetify-inline' ] })
 .bundle()

Installation

$ npm install sheetify-inline

License

MIT

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free