Skip to content

undrash/emoji-express

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

emoji-express 🚂

emoji-express adds emoji support to your express website's URLs. ✌️


Examples:

/contact routes

https://boardme.app/📮

/pricing routes

https://boardme.app/💳

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:

https://yourwebsite.com/🦇🚶‍♂️

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-express

Defaults

/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

About

Emoji express adds emoji support to your express routes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published