@E18e/Is Builtin Module

1.0.5Last update Aug 9, 2024
by@e18e

is-builtin-module Codemod

Introduction

This codemod replaces the usage of the is-builtin-module package with the built-in isBuiltin function from the node:module module. By doing this, it eliminates the need for an external dependency, thereby reducing the overall bundle size and improving performance.

Before

import isBuiltin from 'is-builtin-module';
const check = isBuiltin('fs');

After

import { isBuiltin } from 'node:module';
const check = isBuiltin('fs');

Build custom codemods

Use AI-powered codemod studio and automate undifferentiated tasks for yourself, colleagues or the community

background illustrationGet Started Now