</>PackageGraphPackageGraph

magic-string

npmv1.0.0TypeScript

Modify strings, generate sourcemaps

153.8M
Weekly downloads
1
Dependents
14
Dependencies
100/100
Popularity

Overview

magic-string is an npm package that modify strings, generate sourcemaps. It is extremely widely used, with about 153.8M downloads per week and 1 known dependents in the graph. The latest version is 1.0.0, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need modify strings, generate sourcemaps and value a battle-tested, widely-adopted 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

  • Large, well-established user base (153.8M weekly downloads).
  • Ships TypeScript type definitions.
  • Clear open-source license (MIT).

Cons

  • No significant drawbacks detected from available metadata.

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

Relationship graph

Dependencies (left) and dependents (right) of magic-string.

Dependencies

Dev (13)

@antfu/eslint-config ^9.1.0@types/node ^26.1.1benchmark ^2.1.4bumpp ^11.1.0conventional-changelog ^8.1.0conventional-changelog-angular ^9.2.1eslint ^10.7.0publint ^0.3.21source-map-js ^1.2.1source-map-support ^0.5.21tsdown ^0.22.8typescript ~6.0.3vitest ^4.1.10

Used by

Popular packages that depend on magic-string.

Alternatives to magic-string

@jridgewell/sourcemap-codecnpm

Encode/decode sourcemap mappings

172.5M/wk2 dependentsMITTS
pg-connection-stringnpm

Functions for dealing with a PostgreSQL connection string

40.2M/wk1 dependentsMITTS
sveltenpm

Cybernetically enhanced web apps

4.7M/wk0 dependentsMITTS
locate-characternpm

Get the line and column number of a specific character in a string

4.1M/wk1 dependentsMITTS
prelude-lsnpm

prelude.ls is a functionally oriented utility library. It is powerful and flexible. Almost all of its functions are curried. It is written in, and is the recommended base library for, LiveScript.

0/wk1 dependentsMIT
fast-levenshteinnpm

Efficient implementation of Levenshtein algorithm with locale-specific collator support.

0/wk1 dependentsMIT
is-extglobnpm

Returns true if a string has an extglob.

0/wk1 dependentsMIT
convert-source-mapnpm

Converts a source-map from/to different formats and allows adding/changing properties.

0/wk4 dependentsMIT
natural-comparenpm

Compare strings containing a mix of letters and numbers in the way a human being would in sort order.

0/wk1 dependentsMIT
escape-string-regexpnpm

Escape RegExp special characters

0/wk2 dependentsMIT
is-globnpm

Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a bet

0/wk2 dependentsMIT

Frequently installed together

Version history

VersionPublishedLicense
1.0.0latest3 days agoMIT
0.30.218 months agoMIT
0.30.1910 months agoMIT
0.30.1811 months agoMIT
0.30.171 year agoMIT
0.30.161 year agoMIT
0.30.151 year agoMIT
0.30.141 year agoMIT
0.30.131 year agoMIT
0.30.121 year agoMIT
0.30.112 years agoMIT
0.30.102 years agoMIT
0.30.92 years agoMIT
0.30.82 years agoMIT
0.30.72 years agoMIT
0.30.62 years agoMIT
0.30.52 years agoMIT
0.30.42 years agoMIT
0.30.32 years agoMIT
0.30.23 years agoMIT

Maintainers

Keywords

Frequently asked questions

How do I install magic-string?

Run `npm install magic-string` to add magic-string to your npm project.

What license is magic-string released under?

magic-string is distributed under the MIT license.

How popular is magic-string?

magic-string has approximately 153,806,751 downloads per week and 1 known dependent packages.