# splicon

> Generate cordova/splash files from a single svg, and update config.xml

Latest version **0.0.15** (published 2022-02-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install splicon
pnpm add splicon
yarn add splicon
bun add splicon
```

Provides the commands `splicon-icons`, `splicon-splashes`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.15 |
| Published | 2022-02-25 |
| First published | 2016-07-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 64.5 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 12 |
| Author | Alex Blom |
| Maintainers | alexblom, jordanyee |
| Keywords | cordova, phonegap, splash, icon |

## Links

- npm: https://www.npmjs.com/package/splicon
- Repository: https://github.com/isleofcode/splicon
- Issues: https://github.com/isleofcode/splicon/issues
- npm.io page: https://npm.io/package/splicon

## Dependencies (6)

- [pn](https://npm.io/package/pn.md) ^1.0.0
- [rsvp](https://npm.io/package/rsvp.md) ^3.2.1
- [chalk](https://npm.io/package/chalk.md) ^0.4.0
- [lodash](https://npm.io/package/lodash.md) ^4.13.1
- [xml2js](https://npm.io/package/xml2js.md) ^0.4.16
- [phantomjs-prebuilt](https://npm.io/package/phantomjs-prebuilt.md) ^2.1.12

## Alternatives

- [@fortawesome/react-fontawesome](https://npm.io/package/@fortawesome/react-fontawesome.md) — 2.2M weekly downloads
- [roboto-fontface](https://npm.io/package/roboto-fontface.md) — 196.0K weekly downloads
- [@react-native-vector-icons/common](https://npm.io/package/@react-native-vector-icons/common.md) — 150.4K weekly downloads
- [stockfish](https://npm.io/package/stockfish.md) — 27.0K weekly downloads
- [@procore/core-icons](https://npm.io/package/@procore/core-icons.md) — 4.6K weekly downloads

## Recent versions

- 0.0.15 (latest) — 2022-02-25
- 0.0.14 — 2017-11-16
- 0.0.13 — 2017-11-02
- 0.0.12 — 2017-10-20
- 0.0.11 — 2017-06-12
- 0.0.10 — 2017-03-24
- 0.0.9 — 2017-01-06
- 0.0.8 — 2017-01-06
- 0.0.7 — 2016-10-12
- 0.0.6 — 2016-09-29
- 0.0.5 — 2016-08-30
- 0.0.4 — 2016-08-29
- 0.0.3 — 2016-07-13
- 0.0.2 — 2016-07-12
- 0.0.1 — 2016-07-12

## README

Splicon (beta)
--------------
[![Build
Status](https://travis-ci.org/isleofcode/splicon.svg?branch=master)](https://travis-ci.org/isleofcode/splicon)

Splicon is a command-line tool and library for generating icons and splash
screens for Cordova projects. It generates the images for each platform's
required sizes using a single source SVG and updates the project's config.xml.

It was originally built for use in [ember-cordova](https://github.com/isleofcode/ember-cordova).

It is built for Node 0.12+ but may work on earlier versions.

## Icons

For an integration example, see the [ember-cordova `make-icon` command](https://github.com/isleofcode/ember-cordova/tree/master/lib/commands/make-icons.js).

Using the CLI, from your Cordova project, run:

```
 splicon-icons
```

This command will:

1. Look for a file called 'icon.svg';
2. Resize the SVG for each required platform/icon combination;
3. Move the icons to res/icons/platformName (and create the dir if it does not
   exist);
4. Update your config.xml to represent the new icons & paths;
5. Ensure there are no duplicate icon nodes in config.xml;

By default, images for all platforms will be generated. To generate images for
specific platforms you can pass the platforms as arguments:

```
splicon-icons ios android windows
```

For more granular control (such as setting the destination path), you
will need to require src/icon-task and run the function yourself.

There is a TODO to enhance CLI flag, but in most cases this is handled in
[ember-cordova](https://github.com/isleofcode/ember-cordova).

## Splash Screens

```
splicon-splashes
```

Like `splicon-icons`, by default images for all platforms will be generated. To
generate images for specific platforms you can pass the platforms as arguments:

```
splicon-splashes ios
```

## Testing

```
npm test
```

## Contributing

PRs are very welcome. You can read our style guides
[here](https://github.com/isleofcode/style-guide).

If you are unsure about your contribution idea, please feel free to open an
issue for feedback.

## Credits

[ember-cordova](https://github.com/isleofcode/ember-cordova) is maintained by
[Isle of Code](https://isleofcode.com) and was written by Alex Blom and Jordan
Yee based on work by Chris Thoburn and Alex Blom.

---
_Source: https://npm.io/package/splicon · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
