
Product
Unify Your Security Stack with Socket Basics
A single platform for static analysis, secrets detection, container scanning, and CVE checks—built on trusted open source tools, ready to run out of the box.
@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 10,160 weekly downloads. As such, @backstage/codemods popularity was classified as 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.
Product
A single platform for static analysis, secrets detection, container scanning, and CVE checks—built on trusted open source tools, ready to run out of the box.
Product
Socket is launching experimental protection for the Hugging Face ecosystem, scanning for malware and malicious payload injections inside model files to prevent silent AI supply chain attacks.
Research
/Security News
The Socket Threat Research Team uncovered a coordinated campaign that floods the Chrome Web Store with 131 rebranded clones of a WhatsApp Web automation extension to spam Brazilian users.