1.3.2 • Published 4 years ago

@favware/unescape v1.3.2

Weekly downloads
175
License
MIT
Repository
github
Last release
4 years ago

Work on this package has stopped in favor of confusables from developer gc, a package which I have also contributed to and has a much better feature set and far better performance



Project Status

GitHub Codecov

Bundle Sizes

npm bundle size npm bundle size npm

Social Media and Donations

Join Discord server Twitter Follow Patreon Donate PayPal Donate


Easily unescape HTML entities in both the backend and the frontend

Key Features

  • Useable in NodeJS through package manager of choice
  • Typesafe
  • Bundled with Rollup for maximum size reduction (only 1kB minified + gzipped!), ES module support and browser support
  • Generated TypeScript declarations
  • Treeshakeable in Webpack

Install

Install with yarn or npm:

yarn add @favware/unescape

# npm install @favware/unescape

Usage

const { unescape, charSets } = require('@favware/unescape');
// import unescape, { charSets } from '@favware/unescape';

const text = '<div>unescaped</div>';

console.log(unescape('<div>abc</div>'));
console.log(unescape`<div>abc</div>`);
console.log(unescape`awesome text with some ${text} section`);

// Log the supported characters
console.log(charSets);

API Documentation

1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

5 years ago

1.2.0

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago