ico-tools 🖼 [WIP]
Tools for building and validating ICO files
TODO
- Describe supported input formats
- Document specifics of ICO variations supported
- Add output size options to CLI
Build
Build an ICO file with multiple resolutions from a single PNG.
npm install ico-tools
const build = ;const inputFileData = await fs;const imageBuffer = await ;await fs;
Parse
Parse and return detailed metadata from an ICO in JSON format.
const parse = ;const inputFileData = await fs;const data = await ;
CLI
Wrapper to use the Build and Parse functions from the command line.
Usage: ico-tools [options] [command]
Options:
-V, --version output the version number
-h, --help display help for command
Commands:
build [options] <input> <output>
parse <input>
help [command] display help for command
Usage: ico-tools build [options] <input> <output>
Options:
-d, --debug debug log messages
-h, --help display help for command
Usage: ico-tools parse [options] <input>
Options:
-h, --help display help for command