New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

emoji-stream

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

emoji-stream

Transform text to emoji with node

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

emoji stream

🔧 transform text to emoji node.js style

installation

$ npm install --save emoji-stream

This module uses some features introduced in node v4.

usage

This module exposes a transform stream that converts text to text with emoji characters. Check out the stream handbook for more info on using transform streams.

var fs = require('fs')
var tr = require('emoji-stream')

var story = fs.createReadStream(__dirname+'/mobydick.txt')
var newStory = fs.createWriteStream(__dirname+'/emojidick.txt')

story.on('readable', ()=>{
  console.log('readable!')
  story.pipe(tr).pipe(newStory)
})
$ cat emojidick.txt

...SACRED TO THE MEMORY OF The late CAPTAIN EZEKIEL HARDY, Who in the bows
of his ⛵ was killed by 🅰️ Sperm 🐳 🔛 the coast of 🗾, AUGUST
3d, 1833. THIS TABLET Is erected to his Memory BY HIS WIDOW...

TODO 🙌🔥💯

  • randomize on similar emoji names e.g. tiger, tiger2
  • randomize on match without murdering perf
  • work flags back in with all caps e.g. MY, AF, US

Keywords

FAQs

Package last updated on 04 May 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc