
Security News
Google’s OSV Fix Just Added 500+ New Advisories — All Thanks to One Small Policy Change
A data handling bug in OSV.dev caused disputed CVEs to disappear from vulnerability feeds until a recent fix restored over 500 advisories.
@backstage/codemods
Advanced tools
A collection of codemods for use with Backstage projects. They are intended to improve and simplify large scale refactoring, upgrades of code to use new implementations, alignment to ADRs or project standards, or other refactoring.
This package is a wrapper around jscodeshift
with some included transforms. The transforms can either be executed via the included CLI or directly via jscodeshift
.
To run the core-imports
codemod towards all source files in the current directory, run the following:
npx @backstage/codemods apply core-imports
Note that this will modify the source files directly, but it's possible to do a dry-run by adding the --dry
flag.
By passing a list of paths the codemod will only be applied to those paths:
npx @backstage/codemods apply core-imports plugins/my-plugin-a plugins/my-plugin-b
To print a list of all available transforms you use the list
command:
npx @backstage/codemods list
You can also apply the transforms manually using jscodeshift
. The transforms are located within the transforms/
directory in this package, so running directly with jscodeshift
looks like this:
npx jscodeshift --parser=tsx --extensions=tsx,js,ts,tsx --transform=node_modules/@backstage/codemods/transforms/core-imports.js .
FAQs
A collection of codemods for Backstage projects
The npm package @backstage/codemods receives a total of 171 weekly downloads. As such, @backstage/codemods popularity was classified as not popular.
We found that @backstage/codemods demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A data handling bug in OSV.dev caused disputed CVEs to disappear from vulnerability feeds until a recent fix restored over 500 advisories.
Research
/Security News
175 malicious npm packages (26k+ downloads) used unpkg CDN to host redirect scripts for a credential-phishing campaign targeting 135+ organizations worldwide.
Security News
Python 3.14 adds template strings, deferred annotations, and subinterpreters, plus free-threaded mode, an experimental JIT, and Sigstore verification.