detergent
Extracts, cleans and encodes text
Install
npm i detergent
Quick Take
import { strict as assert } from "assert";
import { det, opts, version } from "detergent";
// on default setting, widow removal and encoding are enabled:
assert.equal(det("clean this text £").res, "clean this text £");
Documentation
Please visit codsen.com for a full description of the API and examples.
Licence
MIT License
Copyright (c) 2010-2020 Roy Revelt and other contributors
Passes unit tests from https://github.com/kemitchell/straight-to-curly-quotes.json, licenced under CC0-1.0