New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

datauri-cli

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

datauri-cli

Create DataURI scheme using terminal

  • 4.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 22 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc