convert-source-map
npmv2.0.0Converts a source-map from/to different formats and allows adding/changing properties.
Not recommended for new projects
No — convert-source-map should not be adopted for new projects. Last published 1423 days ago.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- FMaintenance: grade F, Failing.
Last published 1423 days ago.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 15 KB installed.
- ASupply chain: grade A, Excellent.
No install scripts, 2 maintainers, and a contained dependency surface.
- ALicense: grade A, Excellent.
MIT — 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 convert-source-map 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
- No constraint declared
- Module format
- CommonJS only
- TypeScript
- No bundled types
- Install scripts
- None
Quick start
A usage example from the convert-source-map README.
var convert = require('convert-source-map');
var json = convert
.fromComment('//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnVpbGQvZm9vLm1pbi5qcyIsInNvdXJjZXMiOlsic3JjL2Zvby5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIvIn0=')
.toJSON();
var modified = convert
.fromComment('//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnVpbGQvZm9vLm1pbi5qcyIsInNvdXJjZXMiOlsic3JjL2Zvby5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIvIn0=')
.setProperty('sources', [ 'SRC/FOO.JS' ])
.toJSON();
console.log(json);
console.log(modified);convert-source-map 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 |
|---|---|---|---|---|
| convert-source-mapthis page | 0 | 7 | MIT | 3 years ago |
| @jridgewell/gen-mapping | 163.4M | 4 | MIT | 1 day ago |
| istanbul-lib-source-maps | 55.8M | 5 | BSD-3-Clause | 1 day ago |
| @vitest/istanbul-lib-source-maps | 25K | 2 | MIT | 1 day ago |
| @jridgewell/remapping | 0 | 4 | MIT | 1 day ago |
| @jridgewell/trace-mapping | 0 | 20 | MIT | 1 day ago |
Dependencies
Declared by convert-source-map v2.0.0. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (2)
Used by
Popular packages that depend on convert-source-map.
Native-ESM powered web dev build tool
The React Native multithreading library
Shared Vitest utility functions
Applies source maps to stack traces, so a failing test points at the code you wrote rather than at the code Jest ran.
convert from v8 coverage format to istanbul's format
No description provided.
Full CSS support for JSX without compromises
Relationship graph
Dependencies (left) and dependents (right) of convert-source-map.
Frequently installed together
React is a JavaScript library for building user interfaces.
A framework for building native apps using React
Trace the original position through a source map
TypeScript definitions for node
An extremely fast JavaScript and CSS bundler and minifier.
Node.js library that communicates with Embedded Dart Sass using the Embedded Sass protocol
A pure JavaScript implementation of Sass.
Vite DevTools
An AST-based pattern checker for JavaScript.
TypeScript definitions for react
The semantic version parser used by npm.
Babel Types is a Lodash-esque utility library for AST nodes
Release history
No releases in the last two years, typically about 50 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 2.0.0latest | 3 years ago | 15 KB | MIT |
| 1.9.0 | 3 years ago | 11 KB | MIT |
| 1.8.0 | 5 years ago | 10 KB | MIT |
| 1.7.0 | 6 years ago | 10 KB | MIT |
| 1.6.0 | 8 years ago | 10 KB | MIT |
| 1.5.1 | 8 years ago | — | MIT |
| 1.5.0 | 9 years ago | — | MIT |
| 1.4.0 | 9 years ago | — | MIT |
| 1.3.0 | 10 years ago | — | MIT |
| 1.2.0 | 10 years ago | — | MIT |
| 1.1.3 | 10 years ago | — | MIT |
| 1.1.2 | 10 years ago | — | MIT |
| 1.1.1 | 11 years ago | — | MIT |
| 1.1.0 | 11 years ago | — | MIT |
| 1.0.0 | 11 years ago | — | MIT |
Overview
convert-source-map is an npm package that converts a source-map from/to different formats and allows adding/changing properties. It has 7 known dependents in the graph. The latest version is 2.0.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need converts a source-map from/to different formats and allows adding/changing properties 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 (MIT).
- Lean dependency tree (2 direct dependencies).
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 convert-source-map?
No — convert-source-map should not be adopted for new projects. Last published 1423 days ago.
How do I install convert-source-map?
Run `npm install convert-source-map` to add convert-source-map to your npm project.
What license is convert-source-map released under?
convert-source-map is distributed under the MIT license.
How popular is convert-source-map?
npm does not publish download counts. Within PackageGraph's crawl, 7 known packages depend on convert-source-map.
Is convert-source-map still maintained?
The most recent release of convert-source-map (v2.0.0) was published 3 years ago.
Does convert-source-map run install scripts?
No. convert-source-map does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.