</>PackageGraphPackageGraph

source-map

npmv0.8.0TypeScript

Generates and consumes source maps

Safe to adopt

Yes — source-map scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 52 days ago. 3 releases in the last 2 years.

  • ?Adoption: grade ?, Not reported by this registry.

    No download data reported for this package yet.

  • AMaintenance: grade A, Excellent.

    Last published 52 days ago. 3 releases in the last 2 years.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 181 KB installed.

  • ASupply chain: grade A, Excellent.

    No install scripts, 25 maintainers, and a contained dependency surface.

  • ALicense: grade A, Excellent.

    BSD-3-Clause — 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 source-map to a project.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

181 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

Longest resolved dependency chain below this package.

Compatibility

Node.js
node >= 12
Module format
CommonJS only
TypeScript
Types included
Install scripts
None

Quick start

A usage example from the source-map README.

<script src="https://unpkg.com/source-map@0.7.3/dist/source-map.js"></script>
<script>
  sourceMap.SourceMapConsumer.initialize({
    "lib/mappings.wasm": "https://unpkg.com/source-map@0.7.3/lib/mappings.wasm",
  });
</script>

Dependencies

Declared by source-map v0.8.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (5)

c8 ^7.12.0doctoc ^2.2.1eslint ^8.24.0eslint-config-prettier ^8.5.0prettier ^2.7.1

Used by

Popular packages that depend on source-map.

rolldownnpm

Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.

81.9M/wk8 dependentsMITTS
magicastnpm

Modify a JS/TS file and write back magically just like JSON!

33.9M/wk3 dependentsMITTS
sveltenpm

Cybernetically enhanced web apps

4.1M/wk1 dependentsMITTS
lessnpm

Leaner CSS

0/wk2 dependentsApache-2.0
stylusnpm

Robust, expressive, and feature-rich CSS superset

0/wk1 dependentsMIT
v8-to-istanbulnpm

convert from v8 coverage format to istanbul's format

0/wk1 dependentsISCTS
esbuild-registernpm

Transpile JSX, TypeScript and esnext features on the fly with esbuild

0/wk1 dependentsMIT
source-map-supportnpm

Fixes stack traces for files with source maps

0/wk13 dependentsMIT
@cspotcode/source-map-supportnpm

Fixes stack traces for files with source maps

0/wk1 dependentsMITTS
metro-source-mapnpm

🚇 Source map generator for Metro.

0/wk5 dependentsMITTS
metro-symbolicatenpm

🚇 A tool to find the source location from JS bundles and stack traces.

0/wk3 dependentsMITTS
metronpm

🚇 The JavaScript bundler for React Native.

0/wk6 dependentsMITTS
escodegennpm

ECMAScript code generator

0/wk1 dependentsBSD-2-Clause
scss-tokenizernpm

A tokenzier for Sass' SCSS syntax

0/wk1 dependentsMIT
@jridgewell/remappingnpm

Remap sequential sourcemaps through transformations to point at the original source code

0/wk4 dependentsMITTS
styled-jsxnpm

Full CSS support for JSX without compromises

0/wk1 dependentsMITTS

Relationship graph

Dependencies (left) and dependents (right) of source-map.

Frequently installed together

Release history

3 releases in the last two years, typically about 37 days apart.

Recent versions of source-map
VersionPublishedSizeLicense
0.8.0latest1 month ago181 KBBSD-3-Clause
0.7.61 year ago181 KBBSD-3-Clause
0.7.51 year ago181 KBBSD-3-Clause
0.7.44 years ago221 KBBSD-3-Clause
0.8.0-beta.07 years ago192 KBBSD-3-Clause
0.7.38 years ago304 KBBSD-3-Clause
0.7.28 years ago309 KBBSD-3-Clause
0.7.18 years ago289 KBBSD-3-Clause
0.7.08 years agoBSD-3-Clause
0.6.19 years agoBSD-3-Clause
0.6.09 years agoBSD-3-Clause
0.5.79 years agoBSD-3-Clause
0.5.610 years agoBSD-3-Clause
0.5.510 years agoBSD-3-Clause
0.5.410 years agoBSD-3-Clause

Overview

source-map is an npm package that generates and consumes source maps. It has 16 known dependents in the graph. The latest version is 0.8.0, released under the BSD-3-Clause license.

Who should use it

Teams working in the npm ecosystem who need generates and consumes source maps and value a focused solution.

When not to use it

Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.

Pros

  • Ships TypeScript type definitions.
  • Clear open-source license (BSD-3-Clause).

Cons

  • No significant drawbacks detected from available metadata.

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Frequently asked questions

Should I use source-map?

Yes — source-map scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 52 days ago. 3 releases in the last 2 years.

How do I install source-map?

Run `npm install source-map` to add source-map to your npm project.

What license is source-map released under?

source-map is distributed under the BSD-3-Clause license.

How popular is source-map?

npm does not publish download counts. Within PackageGraph's crawl, 16 known packages depend on source-map.

Is source-map still maintained?

The most recent release of source-map (v0.8.0) was published 1 month ago.

Does source-map run install scripts?

No. source-map does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.