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

dr-webfont-inliner

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dr-webfont-inliner

Inlines webfonts in CSS

  • 0.4.1
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

dr-webfont-inliner

Inline webfonts in stylesheets.

Usage:

Command:

webfont-inliner <file> [options]
Options:
  • -o, --output [string] - Path to write output to. Defaults to appending -inline to input name, eg style.css will result in style-inline.css.
Examples:

Output stylesheet with inlined fonts at the same location as the source:

webfont-inliner style.css

Output stylesheet with inlined fonts in another location:

webfont-inliner my/path/style.css -o my/other/path/style.css

Module:

Arguments
  • input - Path to the stylesheet that needs to get webfonts inlined.
  • output - Optional. Path to write output to. Defaults to appending -inline to input name (unless callback is defined).
  • callback - Optional. A callback to receive inlined css.
Examples:

Output stylesheet with inlined fonts at the same location as the source:

var inline = require("dr-webfont-inliner");

inline("style.css", function (css) {
	console.log("inlined css:", css);
});

Output stylesheet with inlined fonts in another location:

var inline = require("dr-webfont-inliner");

inline("my/path/style.css", "my/other/path/style.css")

Changelog

0.4.0

Changes:

  • Now fully async.

Features:

  • Added callback argument.

0.3.0

Features:

  • woff2 added.

FAQs

Package last updated on 14 Oct 2014

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