šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Book a DemoInstallSign in
Socket

chetan-js-polyfill

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chetan-js-polyfill

Useful JS polyfills and utilities written from scratch

1.0.23
latest
Source
npm
Version published
Maintainers
1
Created
Source

chetan-js-polyfills

A lightweight JavaScript polyfill library to bring modern JS features to older environments. Simple, modular, and dependency-free.

šŸŽÆ Focused on minimalism — only polyfills you actually need.

šŸš€ Features

  • āœ… Polyfills for modern JavaScript methods (ES6+)
  • āœ… Zero dependencies
  • āœ… Works in old browsers (like IE11+)
  • āœ… Tiny bundle size

šŸ“¦ Installation

Install via npm:

npm install chetan-js-polyfills

Or using Yarn:

yarn add chetan-js-polyfills

šŸ› ļø Usage

Automatic Polyfills (Prototype Methods)

When you import the package, these polyfills are added to the respective prototypes:

  • Function.prototype:
    • myCall, myBind, myApply
  • Array.prototype:
    • myMap, myFilter, myReduce, mySlice, myFlat
  • Object:
    • myCreate
import 'chetan-js-polyfills';
// Now you can use the polyfilled methods directly on Function, Array, and Object

Named Utility Exports

You can also import utility functions as named exports:

  • myDeepCloneObject
  • myCurrySum
  • myDeepCompareObjects
  • myAbstractEquality
  • myDebounce
  • myThrottleBasicUsingDate
  • myThrottleBasicUsingTimer
  • myThrottleAdvance
  • myNew
  • mySetTimeout
  • myClearTimeout
import {
  myDeepCloneObject,
  myCurrySum,
  myDeepCompareObjects,
  myAbstractEquality,
  myDebounce,
  myThrottleBasicUsingDate,
  myThrottleBasicUsingTimer,
  myThrottleAdvance,
  myNew,
  mySetTimeout,
  myClearTimeout
} from 'chetan-js-polyfills';

This approach keeps your bundle size small and lets you use only what you need.

šŸŒ Browser Support

Designed to work in environments that support ES5 (like IE11 and above).

Tested in:

  • Chrome
  • Firefox
  • Safari
  • Edge
  • Internet Explorer 11 āœ…

šŸ§‘ā€šŸ’» Contributing

Contributions, bug reports, and feature requests are welcome!

  • Fork the repo
  • Create your branch (`git checkout -b feature-name`)
  • Commit your changes
  • Open a Pull Request

šŸ“„ License

MIT License
Ā© 2025 Chetan

⭐ Like This Project?

Give it a star ⭐ on GitHub — it helps others discover it! `;

Keywords

polyfill

FAQs

Package last updated on 04 Jun 2025

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