is-travis Codemod
Introduction
This codemod replaces the use of the is-travis
npm module with a built-in JavaScript expression that checks the process.env
for the TRAVIS
environment variable. This change helps to reduce unnecessary dependencies and improve the performance of the codebase.
Before
import isTravis from 'is-travis';const isRunningOnTravis = isTravis();
After
const isRunningOnTravis = 'TRAVIS' in process.env;
Build custom codemods
Use AI-powered codemod studio and automate undifferentiated tasks for yourself, colleagues or the community