sanitize-html

v2.1.2

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

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

Explore Similar Packages

Package Health Score

92 / 100
  • Popularity
    Influential project
  • Maintenance
    Healthy
  • Security
    No known security issues
  • Community
    Active

Popularity

Influential project
Weekly Downloads (948,038)
Dependents
849
GitHub Stars
2.32K
Forks
274
Contributors
50

The npm package sanitize-html receives a total of 948,038 downloads a week. As such, we scored sanitize-html popularity level to be Influential project.

Based on project statistics from the GitHub repository for the npm package sanitize-html, we found that it has been starred 2,316 times, and that 849 other projects on 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

Security and license risk for significant versions

All Versions

Direct Vulnerabilities

0.1.4
1.27.5
2.0.0
2.1.2
  • 0
    H
  • 0
    M
  • 0
    L
  • 0
    H
  • 0
    M
  • 0
    L
  • 0
    H
  • 0
    M
  • 0
    L

Indirect Vulnerabilities

0.1.4
1.27.5
2.0.0
2.1.2
  • 0
    H
  • 0
    M
  • 0
    L
  • 0
    H
  • 0
    M
  • 0
    L
  • 0
    H
  • 0
    M
  • 0
    L
  • 0
    H
  • 0
    M
  • 0
    L

License Risks

0.1.4
1.27.5
2.0.0
2.1.2
  • 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.

Security Policy
No

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

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

    # Install the Snyk CLI and test your project
npm i snyk && snyk test sanitize-html
Fix it in your project with Snyk!

Maintenance

Healthy
Commit Frequency
Open Issues
9
Merged PR
124
Open PR
2
Last Commit
8 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
No
Contributing.md
No
Code of Conduct
Yes
Contributors
50
Funding
No
License
MIT

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: 92/100 package health 92/100

Package

Node.js Compatibility
not defined

Age
7 years
Dependencies
7 Direct / 16 Total
Versions
4
Install Size
66.6 kB
Dist-tags
2
# of Files
5
Maintainers
15
TS Typings
Yes

We detected a total of 16 direct & transitive dependencies for sanitize-html. See the full dependency tree of sanitize-html

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.