Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@clearkit/codemods

Package Overview
Dependencies
Maintainers
9
Versions
207
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@clearkit/codemods

## Install codemods

  • 0.96.1-alpha.0
  • npm
  • Socket score

Version published
Weekly downloads
44
decreased by-16.98%
Maintainers
9
Weekly downloads
 
Created
Source

Codemods

Install codemods

No need to install codemods. They can be run with npx.

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

The arguments are the relative directory to run the codemod in and the name of the codemod. For example, the directory is client/src and the codemod is v1-imports:

npx @clearkit/codemods client/src v1-imports
npx @clearkit/codemods client/src v1-buttons

Available codemods for v1

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

FAQs

Package last updated on 17 Oct 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