Node.js - Detect if the terminal that execute your script support emoji or not (using the process.ppid).
This package is available in the Node Package Repository and can be easily installed with npm or yarn.
$ npm i @topcli/terminal-support-emoji
# or
$ yarn add @topcli/terminal-support-emoji
import { supportEmoji } from "@topcli/terminal-support-emoji";
supportEmoji().then(console.log).catch(console.error);
Thanks goes to these wonderful people (emoji key):
Gentilhomme 💻 📖 👀 🛡️ 🐛 |
Yoann Buzenet 💻 📖 |
MIT