jekrb committed 1.0.2Latest: a9361e6 on 2/5/2017, 4:26:21 PM | |
📄 | .travis.yml |
📄 | README.md |
📄 | index.js |
📄 | package.json |
📄 | test.js |
README.md
pull-emoji
parse strings into emoji through a pull-stream interface
Usage
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
var emoji = require('pull-emoji')
Install
With npm installed, run
$ npm install pull-emoji --save
Acknowledgments
pull-emoji was inspired by emojione and pull-stream
See Also
License
MIT
Built with git-ssb-web