alert

sanitize-html

v2.4.0

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

MIT
Latest version published 25 days ago
    npm install sanitize-html
  

Package Health Score

94 / 100
Make sure the packages you're using are safe to use
Secure my Project

Popularity

Key ecosystem project
Download trend

Weekly Downloads (1,181,035)

Dependents
867
GitHub Stars
2.6K
Forks
301
Contributors
70

The npm package sanitize-html receives a total of 1,181,035 downloads a week. As such, we scored sanitize-html popularity level to be Key ecosystem project.

Based on project statistics from the GitHub repository for the npm package sanitize-html, we found that it has been starred 2,596 times, and that 867 other projects in the ecosystem are dependent on it.

Downloads are calculated as moving averages for a period of the last 12 months, excluding weekends and known missing data points.

Security

No known security issues
Powered by Snyk

Security and license risk for significant versions

All Versions

Direct Vulnerabilities

0.1.4
1.27.5
2.3.3
2.4.0
  • 0
    H
  • 0
    M
  • 0
    L
  • 0
    H
  • 0
    M
  • 0
    L

Indirect Vulnerabilities

0.1.4
1.27.5
2.3.3
2.4.0
  • 0
    H
  • 0
    M
  • 0
    L
  • 0
    H
  • 0
    M
  • 0
    L

License Risks

0.1.4
1.27.5
2.3.3
2.4.0
  • 0
    H
  • 0
    M
  • 0
    L
  • 0
    H
  • 0
    M
  • 0
    L
  • 0
    H
  • 0
    M
  • 0
    L
  • 0
    H
  • 0
    M
  • 0
    L
All security vulnerabilities belong to production dependencies of direct and indirect packages.

License
MIT

Security Policy
No

We found a way for you to contribute to the project! Looks like sanitize-html is missing a security policy.


You can connect your project's repository to Snyk to stay up to date on security alerts and receive automatic fix pull requests.

    # Install the Snyk CLI and test your project
npm i snyk -g && snyk test sanitize-html
Keep your project free of vulnerabilities with Snyk

Maintenance

Healthy

Commit Frequency

Open Issues
6
Open PR
3
Last Release
25 days ago
Last Commit
26 days ago

Further analysis of the maintenance status of sanitize-html based on released npm versions cadence, the repository activity, and other data points determined that its maintenance is Healthy.

We found that sanitize-html demonstrates a positive version release cadence with at least one new version released in the past 3 months.

As a healthy sign for on-going project maintenance, we found that the GitHub repository had at least 1 pull request or issue interacted with by the community.

Community

Active
Readme.md
Yes
Contributing.md
No
Code of Conduct
Yes
Contributors
70
Funding
No

With more than 10 contributors for the sanitize-html repository, this is possibly a sign for a growing and inviting community.


Embed Package Health Score Badge

package health: 94/100 package health 94/100

Package

Node.js Compatibility
not defined

Age
8 years
Dependencies
7 Direct
Versions
96
Install Size
71.1 kB
Dist-tags
2
# of Files
5
Maintainers
13
TS Typings
Yes

sanitize-html has more than a single and default latest tag published for the npm package. This means, there may be other tags available for this package, such as next to indicate future releases, or stable to indicate stable releases.