New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

icomoon-pull

Package Overview
Dependencies
Maintainers
6
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

icomoon-pull

Download icomoon font to the local filesystem

latest
Source
npmnpm
Version
1.1.0
Version published
Weekly downloads
1
Maintainers
6
Weekly downloads
 
Created
Source

icomoon-pull

Simple package to pull icomoon font files to the local filesystem. This is useful if you want to use the icomoon fonts in your project without using the icomoon link.

Usage

Create .icomoonrc.json in your project root and add the icomoon links you want to download. Then run npx icomoon-pull.

{
  "first": {
    "link": "https://i.icomoon.io/public/someThing/Project/style.css",
    "fontsPath": "path/to/fonts/icomoon/first",
    "fontsRelativePath": "../../fonts/icomoon/first",
    "styleFile": "path/to/style/icomoon/first/_init.less",
    "clean": false 
  },
  "second": {
    "link": "https://i.icomoon.io/public/other/Project/style.css",
    "fontsPath": "path/to/fonts/icomoon/second",
    "fontsRelativePath": "../../fonts/icomoon/second",
    "styleFile": "path/to/style/icomoon/second/_init.less",
    "clean": false
  }
}

To pull only some of the icomoon fonts, just add the name of the icomoon link to the command. E.g. npx icomoon-pull first second.

Options

Type: String Default value: '' Required: yes

A required string to the icomoon development css link. E.g. https://i.icomoon.io/public/123456/myFoobarProject/style.css

clean

Type: Boolean Default value: false Required: no

A true/false value to determine whether to delete the extracted icomoon sources or not. Caution: If you set this to true, the whole fonts folder will be deleted.

fontsPath

Type: String Default value: '.' Required: no

Absolute path to your fonts folder where icomoon generated fonts will be copied.

fontsRelativePath

Type: String Default value: 'fonts' Required: no

Relative path to your fonts folder. It should be relative to your icomoon styles file.

styleFile

Type: String Default value: 'icomoon.css' Required: no

Absolute path to your icomoon partial file (including filename). It can be a Sass partial or vanilla CSS file.

FAQs

Package last updated on 23 Nov 2023

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