food
Version:
unicode characters are tasty food for programs! feed your apps some emojis
101 lines (65 loc) • 1.82 kB
Markdown
>
Unicode characters are tasty food for programs! feed your apps some emojis. Asciinema [here to see in action](https://asciinema.org/a/4z508ketoj69ct2k30bywimvh).
Inspired to make working with unicode and emojis easier by this [article](http://blog.jonnew.com/posts/poo-dot-length-equals-two).
```
$ npm install --save food
```
```
$ npm install --global food
```
```
$ food --help
unicode characters are tasty food for programs! feed your apps some emojis
Usage
$ food [input]
Options
--options Keywords [Default: description]
Examples
$ food search uncirons
[{
"unicode": "1F984",
"display": "🦄",
"description": "unicorn face",
"category": "animal-mammal"
}...
```
```js
const food = require('food');
food.search('unicorns');
/*=>
[{
"unicode": "1F984",
"display": "🦄",
"description": "unicorn face",
"category": "animal-mammal"
} ...
*/
```
Type: `array<object>`
Array of emojis with the following properties
Unicode representation.
The visual representation.
Description of the emoji.
The grouping of the emoji.
Type: `string`
search term passed in for fuzzy searching.
Note** this project uses fuse for searching so see [krisk/fuse](https://github.com/krisk/fuse#options) for full options.
Type: `array<string>`<br>
Default: `false`
A list of nested json parameters for the parser to look for.
MIT © [Stanley Zheng](https://github.com/stanzheng)