@E18e/Number.Parseint

1.0.5Last update Aug 9, 2024
by@e18e

Number.parseInt Codemod

Introduction

This codemod replaces instances of the Number.parseInt import from an external module with the built-in JavaScript Number.parseInt method. This change helps to reduce unnecessary dependencies and improves code performance by utilizing native functionality.

Before

import { parseInt } from 'number.parseint';
const value = parseInt('42', 10);

After

const value = Number.parseInt('42', 10);

Build custom codemods

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

background illustrationGet Started Now