UNPKG

8.71 kBMarkdownView Raw
1fur
2==========
3
4<!-- Badge Start -->
5<a name="badges"></a>
6
7[![Build Status][bd_travis_shield_url]][bd_travis_url]
8[![Code Climate][bd_codeclimate_shield_url]][bd_codeclimate_url]
9[![Code Coverage][bd_codeclimate_coverage_shield_url]][bd_codeclimate_url]
10[![Dependency Status][bd_gemnasium_shield_url]][bd_gemnasium_url]
11[![npm Version][bd_npm_shield_url]][bd_npm_url]
12
13[bd_repo_url]: https://github.com/fur-repo/fur
14[bd_travis_url]: http://travis-ci.org/fur-repo/fur
15[bd_travis_shield_url]: http://img.shields.io/travis/fur-repo/fur.svg?style=flat
16[bd_license_url]: https://github.com/fur-repo/fur/blob/master/LICENSE
17[bd_codeclimate_url]: http://codeclimate.com/github/fur-repo/fur
18[bd_codeclimate_shield_url]: http://img.shields.io/codeclimate/github/fur-repo/fur.svg?style=flat
19[bd_codeclimate_coverage_shield_url]: http://img.shields.io/codeclimate/coverage/github/fur-repo/fur.svg?style=flat
20[bd_gemnasium_url]: https://gemnasium.com/fur-repo/fur
21[bd_gemnasium_shield_url]: https://gemnasium.com/fur-repo/fur.svg
22[bd_npm_url]: http://www.npmjs.org/package/fur
23[bd_npm_shield_url]: http://img.shields.io/npm/v/fur.svg?style=flat
24
25<!-- Badge End -->
26
27
28<!-- Description Start -->
29<a name="description"></a>
30
31Quick generator for banner, favicon, etc...
32
33<!-- Description End -->
34
35
36<!-- Overview Start -->
37<a name="overview"></a>
38<a href="https://github.com/fur-repo/fur#readme"><img style="height:128px;" src="docs/fur-banner.png" height="128"/></a>
39
40```javascript
41// Generate favicon with command options.
42$ fur favicon "my-favicon.png" --color b --font n --text oh --shape c
43```
44
45
46
47<!-- Overview End -->
48
49
50<!-- Sections Start -->
51<a name="sections"></a>
52
53<!-- Section from "docs/readme/02-howto.md.hbs" Start -->
54
55<a name="section-docs-readme-02-howto-md"></a>
56Getting started
57------
58
59### Requirements
60
61+ [node.js&gt;=0.10.3][nodejs_url]
62+ [phantomjs>=2.0.0](http://phantomjs.org/)
63
64### Installation
65
66fur is available as an [npm][npm_url] package.
67
68```bash
69# Install fur as a global module.
70$ npm install fur -g
71```
72
73Or you can install it without `-g` option and use [Programmatic API](#programmatic-api).
74
75<a name="available commands"/>
76### Available Commands
77
78```bash
79$ fur -h
80
81 Usage: fur [options] [command]
82
83
84 Commands:
85
86 banner [options] <filename> Generate a banner.
87 favicon [options] <filename> Generate a favicon.
88
89 Options:
90
91 -h, --help output usage information
92 -V, --version output the version number
93
94
95```
96
97<a name="programmatic-api"/>
98### Programmatic API
99
100fur provides programmatic API which enables you to execute fur commands from Node.js program.
101
102```javascript
103var fur = require('fur');
104fur.banner('my-banner.svg', {
105text: "coz",
106color: "o",
107font: "aa",
108style: "plain",
109shape: "k"
110}, function (err) {
111});
112```
113
114
115[nodejs_url]: https://nodejs.org/
116[npm_url]: https://www.npmjs.com
117
118<!-- Section from "docs/readme/02-howto.md.hbs" End -->
119
120<!-- Section from "docs/readme/03-banners.md.hbs" Start -->
121
122<a name="section-docs-readme-03-banners-md"></a>
123Generating Logo Banner
124------------------
125
126### Banner Examples
127
128| Image | Command |
129| ----- | ------- |
130| <img src="https://raw.githubusercontent.com/fur-repo/fur-examples/master/examples/01-fur/banner.png" height="40" style="height:40px;"/> | ` $ fur banner "fur-banner.png" --text="FUR" --color="#ff9100" --font="bt" --shape="a" ` |
131| <img src="https://raw.githubusercontent.com/fur-repo/fur-examples/master/examples/02-coz/banner.png" height="40" style="height:40px;"/> | ` $ fur banner "coz-banner.png" --text="coz" --color="#00b560" --font="aa" --shape="b" ` |
132| <img src="https://raw.githubusercontent.com/fur-repo/fur-examples/master/examples/03-apeman/banner.png" height="40" style="height:40px;"/> | ` $ fur banner "apeman-banner.png" --text="apeman" --color="n" --font="p" --shape="a" ` |
133| <img src="https://raw.githubusercontent.com/fur-repo/fur-examples/master/examples/04-pudding/banner.png" height="40" style="height:40px;"/> | ` $ fur banner "pudding-banner.png" --text="PUDDING" --color="bi" --font="cn" --shape="e" ` |
134| <img src="https://raw.githubusercontent.com/fur-repo/fur-examples/master/examples/05-pon/banner.png" height="40" style="height:40px;"/> | ` $ fur banner "pon-banner.png" --text="pon" --color="ah" --font="ar" --shape="f" ` |
135
136These examples are available [here]().
137
138### Banner Usage
139
140```bash
141$ fur banner -h
142
143
144 Usage: banner [options] <filename>
145
146 Generate a banner.
147
148 Options:
149
150 -h, --help output usage information
151 -c, --color <color> Color expression string or color theme name.
152 -s, --shape <shape> Banner style.
153 -f, --font <font> Font file name or font theme name.
154 -F, --font-size <fontSize> Size of font.
155 -H, --height <height> Banner height.
156 -o, --format <format> File format. 'svg' or 'png'.
157 -t, --text <text> Banner text.
158 -W, --width <width> Banner width.
159 -v, --verbose Emit verbose log.
160
161
162```
163
164
165<!-- Section from "docs/readme/03-banners.md.hbs" End -->
166
167<!-- Section from "docs/readme/04-favicons.md.hbs" Start -->
168
169<a name="section-docs-readme-04-favicons-md"></a>
170Generating Favicon
171------------------
172
173### Favicon Examples
174
175| Image | Command |
176| ----- | ------- |
177| <img src="https://raw.githubusercontent.com/fur-repo/fur-examples/master/examples/01-fur/favicon.png" height="40" style="height:40px;" /> | ` $ fur favicon "f-favicon.png" --text="F" --color="#ff9100" --font="bt" --shape="a" ` |
178| <img src="https://raw.githubusercontent.com/fur-repo/fur-examples/master/examples/02-coz/favicon.png" height="40" style="height:40px;" /> | ` $ fur favicon "c-favicon.png" --text="c" --color="#00b560" --font="aa" --shape="c" ` |
179| <img src="https://raw.githubusercontent.com/fur-repo/fur-examples/master/examples/03-apeman/favicon.png" height="40" style="height:40px;" /> | ` $ fur favicon "ap-favicon.png" --text="ap" --color="n" --font="p" --shape="g" ` |
180| <img src="https://raw.githubusercontent.com/fur-repo/fur-examples/master/examples/04-pudding/favicon.png" height="40" style="height:40px;" /> | ` $ fur favicon "p-favicon.png" --text="P" --color="bi" --font="cn" --shape="a" ` |
181| <img src="https://raw.githubusercontent.com/fur-repo/fur-examples/master/examples/05-pon/favicon.png" height="40" style="height:40px;" /> | ` $ fur favicon "pon-favicon.png" --text="pon" --color="ah" --font="ar" --shape="g" ` |
182
183These examples are available [here]().
184
185
186### Favicon Usage
187
188```bash
189$ fur favicon -h
190
191
192 Usage: favicon [options] <filename>
193
194 Generate a favicon.
195
196 Options:
197
198 -h, --help output usage information
199 -c, --color <color> Color expression string or color theme name.
200 -f, --font <font> Font file name or font theme name.
201 -F, --font-size <fontSize> Size of font.
202 -S, --size <size> Favicon size.
203 -s, --shape <shape> Banner style.
204 -t, --text <text> Favicon text.
205 -o, --format <format> File format. 'svg' or 'png'.
206 -v, --verbose Emit verbose log.
207
208
209```
210
211<!-- Section from "docs/readme/04-favicons.md.hbs" End -->
212
213<!-- Section from "docs/readme/05-Themes.md.hbs" Start -->
214
215<a name="section-docs-readme-05-themes-md"></a>
216Theme Gallery
217------------
218
219+ [Color Themes](http://fur-repo.github.io/fur-colors)
220+ [Font Themes](http://fur-repo.github.io/fur-fonts)
221+ [Shape Themes](http://fur-repo.github.io/fur-themes)
222
223
224<!-- Section from "docs/readme/05-Themes.md.hbs" End -->
225
226<!-- Section from "docs/readme/11-project.md.hbs" Start -->
227
228<a name="section-docs-readme-11-project-md"></a>
229About this project
230--------
231
232<a name="11-project-author"></a>
233### Author
234
235+ [Taka Okunishi](http://okunishitaka.com)
236
237<a name="11-project-donation"></a>
238### Donation
239
240Support this project and [others by okunishinishi][my_gratipay_url] via [gratipay][my_gratipay_url].
241
242[<img src="https://cdn.rawgit.com/gratipay/gratipay-badge/2.3.0/dist/gratipay.svg" alt="Support via Gratipay"/>][my_gratipay_url]
243
244
245
246[my_gratipay_url]: https://gratipay.com/okunishinishi/
247[my_gratipay_budge_url]: http://img.shields.io/gratipay/okunishinishi.svg?style=flat
248
249<!-- Section from "docs/readme/11-project.md.hbs" End -->
250
251
252<!-- Sections Start -->
253
254
255<!-- LICENSE Start -->
256<a name="license"></a>
257
258License
259-------
260This software is released under the [MIT License](https://github.com/fur-repo/fur/blob/master/LICENSE).
261
262<!-- LICENSE End -->
263
264
265<!-- Links Start -->
266<a name="links"></a>
267
268Links
269------
270
271+ [fur-examples](https://github.com/fur-repo/fur-examples)
272+ [fur-colors](https://github.com/fur-repo/fur-colors)
273+ [fur-fonts](https://github.com/fur-repo/fur-fonts)
274+ [fur-shapes](https://github.com/fur-repo/fur-shapes)
275
276<!-- Links End -->