@E18e/Is Travis

1.0.5Last update Aug 9, 2024
by@e18e

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

background illustrationGet Started Now