0.0.3 • Published 3 years ago
simple-character-decode v0.0.3
Simple Character Decode
This package was created during my time at Code Chrysalis
Takes a single character as input and returns either an HTML entity or unicode. If given more than one character, operates on the first.
Usage
Install package:
npm install simple-character-decode
Import package into your project, assign to variable:
const someFuncName = require("simple-character-decode");
Call function on a character:
const letterAinHTML = someFuncName("A", "html");
** If no second argument is give, will default to HTML.