Search results

1000+ packages found

String validation and sanitization

published version 13.15.0, a month ago7300 dependents licensed under $MIT
57,372,907

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, 17 days ago2690 dependents licensed under $(MPL-2.0 OR Apache-2.0)
40,447,048

micromark utility to sanitize urls

published version 2.0.1, 5 months ago43 dependents licensed under $MIT
39,916,364

Escape a string for use in HTML or the inverse

published version 4.0.0, 4 years ago540 dependents licensed under $MIT
29,964,387

Convert a string to a valid safe filename

published version 6.0.0, 2 years ago469 dependents licensed under $MIT
22,076,521

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

published version 0.0.11, 8 months ago34 dependents licensed under $MIT
11,440,281

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

published version 2.16.0, 4 days ago2055 dependents licensed under $MIT
12,713,469

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

published version 1.0.15, a year ago1199 dependents licensed under $MIT
12,194,781

Sanitize a string for use as a filename

published version 1.6.3, 6 years ago1344 dependents licensed under $WTFPL OR ISC
10,170,287

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

published version 1.6.0, 16 days ago48 dependents licensed under $MIT
4,126,929

Express middleware for the validator module.

published version 7.2.1, 4 months ago11798 dependents licensed under $MIT
3,516,965

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

published version 2.23.0, 16 days ago275 dependents licensed under $MIT
4,066,785

hast utility to sanitize nodes

published version 5.0.2, 6 months ago91 dependents licensed under $MIT
2,973,192

rehype plugin to sanitize HTML

published version 6.0.0, 2 years ago262 dependents licensed under $MIT
1,588,743

ESLint rule to disallow unsanitized code

published version 4.1.2, 7 months ago89 dependents licensed under $MPL-2.0
1,555,008

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

published version 8.2.2, 8 months ago258 dependents licensed under $MIT
707,674

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

published version 1.2.7, 9 years ago101 dependents
383,667

Transform environment variables into JSON object with sanitized values.

published version 2.0.0, 5 years ago21 dependents licensed under $MIT
167,290

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

published version 2.1.0, 2 years ago110 dependents licensed under $MIT
115,354

Coerce props to custom values

published version 1.0.0, 6 years ago3 dependents licensed under $MIT
90,852