New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@clearkit/codemods

Package Overview
Dependencies
Maintainers
15
Versions
207
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@clearkit/codemods

## Install codemods For time being, you must install codemods locally to the app to run them. Eventually they can be run via npx. You can remove codemods after running them, if you so chose.

  • 0.31.1-alpha.0
  • npm
  • Socket score

Version published
Weekly downloads
52
decreased by-23.53%
Maintainers
15
Weekly downloads
 
Created
Source

Codemods

Install codemods

For time being, you must install codemods locally to the app to run them. Eventually they can be run via npx. You can remove codemods after running them, if you so chose.

yarn add @clearkit/codemods

Run codemods

Run each codemod on a given directory. In the example below, the codemod is run against all files in /client/src using the v1-imports transform:

Important note on node versions

Codemods will only run in Node v18 due to a limitation of jscodeshift. Run codemods in a separate terminal window/tab and run nvm use before running codemods. If you haven't installed node 18, you will need to run nvm install 18 first/

nvm use 18

Run codemod after install

./client/node_modules/@clearkit/codemods/dist/index.js client/src v1-imports
./client/node_modules/@clearkit/codemods/dist/index.js client/src v1-buttons

Available codemods for v1

  • v1-buttons
  • v1-imports
  • v1-popper
  • v1-popper-options
  • v1-toggle-props

FAQs

Package last updated on 24 Apr 2023

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc