Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

datauri-cli

3.0.0 • Public • Published

datauri-cli

CLI to generate Data URI scheme using datauri module.

The data URI scheme is a uniform resource identifier (URI) scheme that provides a way to include data in-line in web pages as if they were external resources.

from: Wikipedia

Build Status [NPM version

CLI

npm install -g datauri-cli (it may require Root privileges)

Print

To print a data-uri scheme from a file

$ datauri brand.png

or copy into your clipboard

$ datauri brand.png --copy

CSS Background

To output css with data-uri background:

$ datauri brand.png --css
$ datauri brand.png --css --copy

or create/update file:

$ datauri brand.png --css=asset/background.css

If you want to define a Class Name, width and etc just type:

$ datauri brand.png --css --class=MyNewClass
$ datauri brand.png --css --width --height
$ datauri brand.png --css --background-size

ChangeLog

Requirements

Node.js 8+

License

MIT License (c) Data-URI.js

Install

npm i datauri-cli

DownloadsWeekly Downloads

3

Version

3.0.0

License

MIT

Unpacked Size

4.51 kB

Total Files

6

Last publish

Collaborators

  • avatar