simple-character-decode
v0.0.3
Published
Takes single character, returns HTML entity or unicode
Readme
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-decodeImport 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.
