Search results

1000+ packages found

String validation and sanitization

published version 13.15.15, a day ago7329 dependents licensed under $MIT
60,788,943

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.6, 10 days ago2818 dependents licensed under $(MPL-2.0 OR Apache-2.0)
41,706,671

micromark utility to sanitize urls

published version 2.0.1, 7 months ago51 dependents licensed under $MIT
41,766,653

Escape a string for use in HTML or the inverse

published version 4.0.0, 4 years ago540 dependents licensed under $MIT
31,259,722

Convert a string to a valid safe filename

published version 6.0.0, 2 years ago472 dependents licensed under $MIT
22,784,709

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

published version 0.0.11, 9 months ago34 dependents licensed under $MIT
12,220,471

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

published version 2.17.0, 15 days ago2099 dependents licensed under $MIT
12,699,099

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

published version 1.0.15, a year ago1216 dependents licensed under $MIT
12,539,692

Sanitize a string for use as a filename

published version 1.6.3, 6 years ago1352 dependents licensed under $WTFPL OR ISC
10,756,651

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

published version 1.6.0, 2 months ago51 dependents licensed under $MIT
4,589,888

Express middleware for the validator module.

published version 7.2.1, 5 months ago11916 dependents licensed under $MIT
3,374,954

hast utility to sanitize nodes

published version 5.0.2, 7 months ago92 dependents licensed under $MIT
3,366,248

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

published version 2.25.0, 9 days ago282 dependents licensed under $MIT
4,410,992

rehype plugin to sanitize HTML

published version 6.0.0, 2 years ago277 dependents licensed under $MIT
1,928,834

ESLint rule to disallow unsanitized code

published version 4.1.2, 8 months ago92 dependents licensed under $MPL-2.0
1,776,726

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

published version 8.2.2, 10 months ago258 dependents licensed under $MIT
726,820

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

published version 1.2.7, 9 years ago101 dependents
391,826

Transform environment variables into JSON object with sanitized values.

published version 2.0.0, 5 years ago22 dependents licensed under $MIT
176,532

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

published version 2.1.0, 2 years ago110 dependents licensed under $MIT
148,875

Coerce props to custom values

published version 1.0.0, 6 years ago3 dependents licensed under $MIT
85,193