Search results

1000+ packages found

String validation and sanitization

published version 13.15.0, 2 months ago7321 dependents licensed under $MIT
58,454,525

DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. It's written in JavaScript and works in all modern browsers (Safari, Opera (15+), Internet Explorer (10+), Firefox and Chrome - as well as almost anything else usin

published version 3.2.5, a month ago2778 dependents licensed under $(MPL-2.0 OR Apache-2.0)
39,592,271

micromark utility to sanitize urls

published version 2.0.1, 6 months ago50 dependents licensed under $MIT
39,990,499

Escape a string for use in HTML or the inverse

published version 4.0.0, 4 years ago541 dependents licensed under $MIT
29,383,168

Convert a string to a valid safe filename

published version 6.0.0, 2 years ago471 dependents licensed under $MIT
21,731,826

Sanitize untrusted CSS with a configuration specified by a Whitelist. 根据白名单过滤CSS

published version 0.0.11, 9 months ago34 dependents licensed under $MIT
11,593,517

Clean up user-submitted HTML, preserving allowlisted elements and allowlisted attributes on a per-element basis

published version 2.17.0, 3 days ago2091 dependents licensed under $MIT
12,271,023

Sanitize untrusted HTML (to prevent XSS) with a configuration specified by a Whitelist

published version 1.0.15, a year ago1209 dependents licensed under $MIT
11,939,002

Sanitize a string for use as a filename

published version 1.6.3, 6 years ago1355 dependents licensed under $WTFPL OR ISC
10,112,561

A 1.75kB library for enhancing `html`. `ultrahtml` has zero dependencies and is compatible with any JavaScript runtime.

published version 1.6.0, a month ago51 dependents licensed under $MIT
4,396,460

Makes it possible to use DOMPurify on server and client in the same way.

published version 2.24.0, a month ago282 dependents licensed under $MIT
4,293,252

Express middleware for the validator module.

published version 7.2.1, 5 months ago11879 dependents licensed under $MIT
3,191,442

hast utility to sanitize nodes

published version 5.0.2, 7 months ago92 dependents licensed under $MIT
3,126,432

ESLint rule to disallow unsanitized code

published version 4.1.2, 8 months ago91 dependents licensed under $MPL-2.0
1,717,930

rehype plugin to sanitize HTML

published version 6.0.0, 2 years ago269 dependents licensed under $MIT
1,748,210

Splits a hostname into subdomains, domain and (effective) top-level domains

published version 8.2.2, 9 months ago258 dependents licensed under $MIT
707,201

Secure XSS Filters - Just sufficient output filtering to prevent XSS!

published version 1.2.7, 9 years ago101 dependents
382,977

Transform environment variables into JSON object with sanitized values.

published version 2.0.0, 5 years ago22 dependents licensed under $MIT
161,200

Schema-Inspector is a powerful tool to sanitize and validate JS objects.

published version 2.1.0, 2 years ago110 dependents licensed under $MIT
123,144

Coerce props to custom values

published version 1.0.0, 6 years ago3 dependents licensed under $MIT
83,114