# iconfont-map-builder

> Transform iconfont's css file to js 'name-character' map

Latest version **1.0.2** (published 2015-11-24) · ISC license · 0 weekly downloads

## Install

```sh
npm install iconfont-map-builder
pnpm add iconfont-map-builder
yarn add iconfont-map-builder
bun add iconfont-map-builder
```

Provides the commands `iconmap`, `iconmap-codepoint`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2015-11-24 |
| First published | 2015-11-23 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | sospartan@gmail.com |
| Maintainers | sospartan |
| Keywords | css, iconfont, font |

## Links

- npm: https://www.npmjs.com/package/iconfont-map-builder
- Repository: https://github.com/sospartan/iconfont-map-builder
- Homepage: https://github.com/sospartan/iconfont-map-builder#readme
- Issues: https://github.com/sospartan/iconfont-map-builder/issues
- npm.io page: https://npm.io/package/iconfont-map-builder

## Dependencies (1)

- [cssom](https://npm.io/package/cssom.md) ^0.3.0

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2015-11-24
- 1.0.1 — 2015-11-23
- 1.0.0 — 2015-11-23

## README

# iconfont-map-builder  
Simple command tool to transform iconfont's css/codepoint file to a js mapping moudle .

I'm using the module in [react-native-iconic-font](<https://github.com/sospartan/react-native-iconic-font>) to generate the iconic map file

## Usage  
install this tool via npm  
`npm install iconfont-map-builder -g`  
  
now use 'iconmap' command to transform css file
`iconmap -f test/font-awesome-v4.4.0.css -p '^\.fa-([a-z0-9-]+?):before$'`

this command will generate a js  file (...-iconmap.js) in the same folder with css file. You can use it in your project in any way you like.  

Example:  

```javascript
var getIconChar = require('your-iconmap-file.js');

//react native render  
return (
<Text style={{fontFamily: 'fontawesome',fontSize:30}}>
map icon:{getIconChar('map')}
</Text>
);
```

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