magicast
npmv0.5.4TypeScriptModify a JS/TS file and write back magically just like JSON!
Safe to adopt
Yes — magicast scores well across adoption, maintenance, weight, supply chain, and licensing. 33.9M downloads per week and 3 known dependents. Last published 41 days ago. 6 releases in the last 2 years.
- AAdoption: grade A, Excellent.
33.9M downloads per week and 3 known dependents.
- AMaintenance: grade A, Excellent.
Last published 41 days ago. 6 releases in the last 2 years.
- AWeight: grade A, Excellent.
Pulls in 5 transitive packages, about 4.5 MB 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 magicast 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.
Licenses in the dependency tree
Every license you inherit by installing magicast, not just its own. Check this before a legal review, not after.
Compatibility
- Node.js
- No constraint declared
- Module format
- ESM + CommonJS
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the magicast README.
import { parseModule, generateCode, builders, createNode } from "magicast";Dependencies
Declared by magicast v0.5.4. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (20)
Used by
Popular packages that depend on magicast.
Relationship graph
Dependencies (left) and dependents (right) of magicast.
Frequently installed together
Next generation testing framework powered by Vite
A small library to print colourful messages.
Universal filesystem path utils
Browser running for Vitest
A lightweight JavaScript debugging utility, forked from debug, featuring TypeScript and ESM support.
Data library for istanbul coverage objects
istanbul reports
TypeScript definitions for istanbul-lib-report
TypeScript definitions for istanbul-lib-coverage
Base reporting library for istanbul
TypeScript definitions for istanbul-reports
Generate source maps
Release history
6 releases in the last two years, typically about 49 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 0.5.4latest | 1 month ago | 372 KB | MIT |
| 0.5.3 | 3 months ago | 368 KB | MIT |
| 0.5.2 | 7 months ago | 370 KB | MIT |
| 0.5.1 | 10 months ago | 370 KB | MIT |
| 0.5.0 | 10 months ago | 370 KB | MIT |
| 0.4.0 | 10 months ago | 654 KB | MIT |
| 0.3.5 | 2 years ago | 634 KB | MIT |
| 0.3.4 | 2 years ago | 632 KB | MIT |
| 0.3.3 | 2 years ago | 630 KB | MIT |
| 0.3.2 | 2 years ago | 628 KB | MIT |
| 0.3.1 | 2 years ago | 628 KB | MIT |
| 0.3.0 | 3 years ago | 628 KB | MIT |
| 0.2.11 | 3 years ago | 97 KB | MIT |
| 0.2.10 | 3 years ago | 79 KB | MIT |
| 0.2.9 | 3 years ago | 75 KB | MIT |
Overview
magicast is an npm package that modify a JS/TS file and write back magically just like JSON!. It is extremely widely used, with about 33.9M downloads per week and 3 known dependents in the graph. The latest version is 0.5.4, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need modify a JS/TS file and write back magically just like JSON! and value a battle-tested, widely-adopted solution.
When not to use it
Consider an alternative if you need to minimize your dependency tree, or if a more actively-maintained option better fits your npm stack.
Pros
- Large, well-established user base (33.9M weekly downloads).
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
Cons
- Large dependency tree (23 direct dependencies) increases install size and audit surface.
Auto-generated from collected registry metadata. No external claims are inferred.
Frequently asked questions
Should I use magicast?
Yes — magicast scores well across adoption, maintenance, weight, supply chain, and licensing. 33.9M downloads per week and 3 known dependents. Last published 41 days ago. 6 releases in the last 2 years.
How do I install magicast?
Run `npm install magicast` to add magicast to your npm project.
How many dependencies does magicast have?
magicast declares 23 direct dependencies and pulls in 5 packages in total once its runtime tree is resolved totalling about 4.5 MB on disk.
What license is magicast released under?
magicast is distributed under the MIT license. Its dependency tree also includes: BSD-3-Clause, MIT.
How popular is magicast?
magicast has approximately 33,856,256 downloads per week and 3 known dependent packages.
Is magicast still maintained?
The most recent release of magicast (v0.5.4) was published 1 month ago.
Does magicast run install scripts?
No. magicast does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.