d3-path
npmv3.1.0Serialize Canvas path commands to SVG.
Not recommended for new projects
No — d3-path should not be adopted for new projects. Last published 1360 days ago.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- FMaintenance: grade F, Failing.
Last published 1360 days ago.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 20 KB installed.
- ASupply chain: grade A, Excellent.
No install scripts, 2 maintainers, and a contained dependency surface.
- ALicense: grade A, Excellent.
ISC — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding d3-path to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Compatibility
- Node.js
- node >=12
- Module format
- ESM + CommonJS
- TypeScript
- No bundled types
- Install scripts
- None
Quick start
A usage example from the d3-path README.
function drawCircle(context, radius) {
context.moveTo(radius, 0);
context.arc(0, 0, radius, 0, 2 * Math.PI);
}d3-path vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| d3-paththis page | 0 | 1 | ISC | 3 years ago |
| d3-shape | 0 | 2 | ISC | 1 day ago |
| canvas | 0 | 1 | MIT | 1 day ago |
| path-key | 244.9M | 1 | MIT | 1 day ago |
| @jridgewell/resolve-uri | 166.3M | 1 | MIT | 1 day ago |
| normalize-path | 72.6M | 1 | MIT | 1 day ago |
Dependencies
Declared by d3-path v3.1.0. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (4)
Used by
Popular packages that depend on d3-path.
Relationship graph
Dependencies (left) and dependents (right) of d3-path.
Frequently installed together
Release history
No releases in the last two years, typically about 49 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 3.1.0latest | 3 years ago | 20 KB | ISC |
| 3.0.1 | 5 years ago | 19 KB | ISC |
| 3.0.0 | 5 years ago | 19 KB | ISC |
| 2.0.0 | 6 years ago | 20 KB | BSD-3-Clause |
| 2.0.0-rc.1 | 6 years ago | 20 KB | BSD-3-Clause |
| 1.0.9 | 6 years ago | 20 KB | BSD-3-Clause |
| 1.0.8 | 7 years ago | 20 KB | BSD-3-Clause |
| 1.0.7 | 8 years ago | 53 KB | BSD-3-Clause |
| 1.0.6 | 8 years ago | 52 KB | BSD-3-Clause |
| 1.0.5 | 9 years ago | — | BSD-3-Clause |
| 1.0.4 | 9 years ago | — | BSD-3-Clause |
| 1.0.3 | 9 years ago | — | BSD-3-Clause |
| 1.0.2 | 10 years ago | — | BSD-3-Clause |
| 1.0.1 | 10 years ago | — | BSD-3-Clause |
| 1.0.0 | 10 years ago | — | BSD-3-Clause |
Overview
d3-path is an npm package that serialize Canvas path commands to SVG. It has 1 known dependents in the graph. The latest version is 3.1.0, released under the ISC license.
Who should use it
Teams working in the npm ecosystem who need serialize Canvas path commands to SVG and value a focused solution.
When not to use it
Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.
Pros
- Clear open-source license (ISC).
Cons
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Frequently asked questions
Should I use d3-path?
No — d3-path should not be adopted for new projects. Last published 1360 days ago.
How do I install d3-path?
Run `npm install d3-path` to add d3-path to your npm project.
What license is d3-path released under?
d3-path is distributed under the ISC license.
How popular is d3-path?
npm does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on d3-path.
Is d3-path still maintained?
The most recent release of d3-path (v3.1.0) was published 3 years ago.
Does d3-path run install scripts?
No. d3-path does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.