Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/stackcss/sheetify-inline

a plugin transforms img to base64 for sheetify
https://github.com/stackcss/sheetify-inline

Last synced: about 1 month ago
JSON representation

a plugin transforms img to base64 for sheetify

Awesome Lists containing this project

README

        

# sheetify-inline [![stability][0]][1]
[![npm version][2]][3] [![downloads][4]][5]
![travis build][6]

Plugin transforms img to base64 for sheetify

works with async functions (node 7.6+)

## Example

before:

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

after:

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

```

## Test

`npm test`

## Command line
```sh
$ browserify entry.js -t [ sheetify/transform -t sheetify-inline ]
```

## JS api
```js
const browserify = require('browserify')

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

## Installation
```sh
$ npm install sheetify-inline
```

## License
[MIT](https://tldrlegal.com/license/mit-license)

[0]: https://img.shields.io/badge/stability-experimental-orange.svg?style=flat-square
[1]: https://nodejs.org/api/documentation.html#documentation_stability_index
[2]: https://img.shields.io/npm/v/sheetify-inline.svg?style=flat-square
[3]: https://npmjs.org/package/sheetify-inline
[4]: http://img.shields.io/npm/dm/sheetify-inline.svg?style=flat-square
[5]: https://npmjs.org/package/sheetify-inline
[6]: https://travis-ci.org/stackcss/sheetify-inline.svg?branch=master