emoji-express v1.1.1
emoji-express 🚂
emoji-express adds emoji support to your express website's URLs. ✌️
Default usage (static websites)
It offers automatic emoji support for all the main routes of your website. E.g. contact, pricing, faq, etc.
const express = require('express')
const app = express()
const emoji = require('emoji-express')
emoji.defaults( app )
// Your routes here
app.listen(3000)Translate emojis from URLs automatically
It translates emojis automatically from URLs.
Examples:
translated: https://yourwebsite.com/batman-walking
https://yourwebsite.com/🔥-in-the-🕳️
translated: https://yourwebsite.com/fire-in-the-hole
const express = require('express')
const app = express()
const emoji = require('emoji-express')
app.use( emoji.translateURLs )
// Your routes here
app.listen(3000)Custom usage
It links any custom emojis (or strings of emojis) to any URL in your website.
const express = require('express')
const app = express()
const emoji = require('emoji-express')
emoji.set( app, '📞', '/your/route/here' )
emoji.set( app, '🍉🍌', '/any/route/you/want' )
emoji.set( app, '🥑😂😂😂', '/any/route/you/want' )
// Your routes here
app.listen(3000)Installation
Installation is done using the
npm install command:
$ npm install emoji-expressDefaults
/contact /☎ /📮 /📞 /🤙
/about /🙋♂️ /🙋♀️
/pricing /💳 /💵
/donate /💰
/info /💡
/faq /🤔
/home /🏠
/profile /👤
/settings /⚙
/support / 🛠️
/login /⌨️
/terms /📜
/privacy /🔒
/posts /🖊️
/subscribe /✔️
/join-us /🤗
/search /🧐
/careers /💼
/delivery /🚚
/tv /📺
/podcast /🎙️
brought you by