Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pentatrion-fontello-cli

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pentatrion-fontello-cli

Create at the root of the project

  • 0.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

Pentatrion Fontello CLI

Create at the root of the project

pnpm add pentatrion-fontello-cli
// fontello.config.js
import { defineConfig } from "pentatrion-fontello-cli";

export default defineConfig({
  base: "src/fontello",
  name: "default"
});

During the first run, it will create a config.json file and a fontello.css.template file in the fontello folder.

The fontello.css.template file can be modified and will be used at each save.

If it finds the placeholders

  • {{FONT_FAMILY}}
  • {{URL_DATA}}
  • {{PREFIX}}
  • {{TIMESTAMP}}
  • {{CODES}}

they will be replaced; otherwise, it will leave what is in place.

If you do not want the font to be embedded in the stylesheet in base64, simply replace in the template file

@font-face {
  font-family: 'fontello';
  src: url('./fontello.woff2?{{TIMESTAMP}}');;
  font-weight: normal;
  font-style: normal;
}

Multiple Icon Packs

// fontello.config.js
import { defineConfig } from "pentatrion-fontello-cli";

export default defineConfig([
  {
    name: "default",
    base: "playground/basic/font",
  },
  {
    name: "advanced",
    base: "playground/advanced",
  },
]);

FAQs

Package last updated on 26 Jun 2024

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