0.0.3 • Published 3 years ago

simple-character-decode v0.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

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

  1. Install package:

    npm install simple-character-decode

  2. Import package into your project, assign to variable:

    const someFuncName = require("simple-character-decode");

  3. Call function on a character:

    const letterAinHTML = someFuncName("A", "html"); *

    * If no second argument is give, will default to HTML.