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

@morgul/macos-folder-icons

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@morgul/macos-folder-icons

custom folder icons for macOS

  • 1.1.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

Create mac folder

npm GitHub license

A cli tool to create macOS style folders from SVG files.

  • 💩 No extra tools
  • 👻 No phantomjs
  • 👽 No node-canvas
  • 🎟 One http-server instance.
  • 🎟 One puppeteer instance.

Creates .png and .icns files from SVGs. Tested with various icon types via svg-icon. create-mac-folder will attempt to make all SVGs compatible though there are limitations of what can be done. Most SVGs will work just fine (See examples below).

Installation

npm install --global macos-folder-icons

Usage

OptionAliasTypeDefaultDescription
<input>n.a.stringn.a.Default command
--out-dir-ostring./macos-folder-iconsDefines the output directory
--ignore-istringundefinedDefines ignore patterns
--port-pnumber1337Change the port if 1337 is taken
--size-snumber424Change the size of the icon viewBox

Core options

OptionDescription
--helpprints help
--versionprints version

Single files

create-mac-folder path/to/my.svg

Multiple files

create-mac-folder one.svg two.svg
create-mac-folder '{one,two,four}.svg'
create-mac-folder 'path/to/my/*.svg'

Options

Input

Input is required. It allows using multiple strings or glob patterns,

  • Type: string

path/to/my.svg --> ./macos-folder-icons/my.svg

create-mac-folder path/to/my.svg

Glob patterns

Make sure to put your glob patterns in quotes '**/glob/*/pattern'.

create-mac-folder 'path/to/my/*.svg'

Out Dir

Defines the output directory relative to the current working directory (process.cwd()).

  • Type: string

path/to/my.svg --> ./out/my.svg

create-mac-folder path/to/my.svg -o out

Ignore

Defines files to ignore. Allows glob patterns and multiple definitions

Make sure to put your glob patterns in quotes '**/glob/*/pattern'.

  • Type: string

**/*.svg, !**/qux/*.svg, !foo/bar/baz.svg --> ./macos-folder-icons/*

create-mac-folder '**/*.svg' --ignore '**/qux/*.svg' --ignore 'foo/bar/baz.svg'

Port

Change the port in case 1337 is already in use

  • Type: number
create-mac-folder path/to/my.svg --port 3000

Size

Define the size of the icon. The default is optimized to use circular icons from svg-icon/simple (e.g. The github logo)

  • Type: number
create-mac-folder path/to/my.svg --size 300

Examples

Take a look at the Example files.

Input / Output

The github logo Example folder using the github logo

The sass logo Example folder using the sass logo

Keywords

FAQs

Package last updated on 13 May 2018

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