Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jakeburden/pull-emoji

parse strings into emoji through a pull-stream interface
https://github.com/jakeburden/pull-emoji

emoji pull-emoji pull-stream

Last synced: 1 day ago
JSON representation

parse strings into emoji through a pull-stream interface

Awesome Lists containing this project

README

        

# pull-emoji

[![build status][travis-image]][travis-url]
[![js-standard-style][standard-image]][standard-url]

> parse strings into emoji through a pull-stream interface

## Usage

```js
var pull = require('pull-stream')
var emoji = require('pull-emoji')

pull(
pull.values([
':pizza:',
':sparkles: beep boop :robot:',
'cool :flag_black:'
]),
emoji(),
pull.collect(function (end, values) {
console.log(values[0])
console.log(values[1])
console.log(values[2])
})
)
```

outputs

```
🍕
✨ beep boop 🤖
cool 🏴
```

## API

```js
var emoji = require('pull-emoji')
```

## Install

With [npm](https://npmjs.org/) installed, run

```
$ npm install pull-emoji --save
```

## Acknowledgments

pull-emoji was inspired by emojione and pull-stream

## See Also

- [`Ranks/emojione`](https://github.com/Ranks/emojione)
- [`Dominic/pull-stream`](http://gitmx.com/%25xAFKL6PBr1CIzL5xGHZC5DFVWiXmc7R0MMnZnBwq%2Fyk%3D.sha256)

## License

MIT

[travis-image]: https://img.shields.io/travis/jekrb/pull-emoji/master.svg?style=flat-square
[travis-url]: https://travis-ci.org/jekrb/pull-emoji
[standard-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square
[standard-url]: https://github.com/feross/standard