
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
detergent
Advanced tools
Extract, clean, encode text and fix English style
This package is pure ESM. If you're not ready yet, install an older version of this program, 7.1.0 (npm i detergent@7.1.0
).
npm i detergent
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 £");
Please visit codsen.com for a full description of the API. Also, try the GUI playground.
To report bugs or request features or assistance, raise an issue on GitHub.
MIT License.
Copyright © 2010-2025 Roy Revelt and other contributors.
Passes unit tests from https://github.com/kemitchell/straight-to-curly-quotes.json, licenced under CC0-1.0
FAQs
Extract, clean, encode text and fix English style
We found that detergent demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.