LicenseGuard

Is dompurify safe for commercial use?

npm package · License: (MPL-2.0 OR Apache-2.0)

dompurify is licensed under (MPL-2.0 OR Apache-2.0), which imposes no source-disclosure obligation in any of the shipping models below.

Result by how you ship

How you ship itResultWhy
Hosted SaaS No obligation This package offers a choice of licenses. The least restrictive option is shown. MPL-2.0 applies copyleft per file, not to your project as a whole. Files it covers must stay under it and their modifications must be published, while your own files may carry any terms you choose. It treats static and dynamic linking alike, so how you link makes no difference.
Distributed binary / app No obligation This package offers a choice of licenses. The least restrictive option is shown. MPL-2.0 applies copyleft per file, not to your project as a whole. Files it covers must stay under it and their modifications must be published, while your own files may carry any terms you choose. It treats static and dynamic linking alike, so how you link makes no difference.
Delivered to customer No obligation This package offers a choice of licenses. The least restrictive option is shown. MPL-2.0 applies copyleft per file, not to your project as a whole. Files it covers must stay under it and their modifications must be published, while your own files may carry any terms you choose. It treats static and dynamic linking alike, so how you link makes no difference.
Internal use only No obligation This package offers a choice of licenses. The least restrictive option is shown. MPL-2.0 applies copyleft per file, not to your project as a whole. Files it covers must stay under it and their modifications must be published, while your own files may carry any terms you choose. It treats static and dynamic linking alike, so how you link makes no difference.
Published library No obligation This package offers a choice of licenses. The least restrictive option is shown. MPL-2.0 applies copyleft per file, not to your project as a whole. Files it covers must stay under it and their modifications must be published, while your own files may carry any terms you choose. It treats static and dynamic linking alike, so how you link makes no difference.

What you have to do

Source disclosureAttribution

If you only use it at build time, the answer changes.

This package offers a choice of licenses. The least restrictive option is shown. MPL-2.0 appears as a dev dependency, so it is not part of the artifact you ship. Distribution-triggered obligations do not arise. Tools that emit code into your output, such as code generators, are a separate case worth checking individually.

This page covers one package. Your package-lock.json has many more.

Check your whole manifest →

How this was determined

The license was read from the npm registry, then evaluated against each shipping model. Only the declared license is considered; code copied into a project's own source files is not detected by this method.

LicenseGuard reports information derived from published license texts and dependency manifests. It is not legal advice and using it does not create an attorney-client relationship. Results reflect license metadata as declared; they do not identify every obligation or violation. Consult qualified counsel for decisions that matter.