4.1.0 • Published 3 years ago

datauri-cli v4.1.0

Weekly downloads
7
License
MIT
Repository
github
Last release
3 years ago

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

CLI Build Status

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

or

npx datauri-cli <file_path> <flags>

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 --className=MyNewClass
$ datauri brand.png --css --width --height
$ datauri brand.png --css --backgroundSize

ChangeLog

Requirements

Node.js 10+

License

MIT License (c) Data-URI.js

4.1.0

3 years ago

4.0.1

3 years ago

4.0.0

3 years ago

3.0.0

4 years ago

2.0.0

5 years ago

1.1.0

6 years ago

1.0.5

7 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

1.0.0-alpha.5

9 years ago

1.0.0-alpha.4

9 years ago

1.0.0-alpha.3

9 years ago

1.0.0-alpha.2

9 years ago

1.0.0-alpha.1

9 years ago