npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

rollup-plugin-adobe-polyfills

v0.2.4

Published

you can use es6+ features in adobe scripts by using this plugin, will auto inject polyfills for es3 environments,array, string, json and more

Downloads

1,387

Readme

Rollup Plugin for Adobe Script ES3 Polyfill Library

License npm version

中文 | English

An ES3-compatible polyfill library specifically designed for Adobe scripting environments, providing modern JavaScript APIs categorized by ECMAScript versions and functional modules.

🚀 Installation

npm i rollup-plugin-adobe-polyfills
yarn add rollup-plugin-adobe-polyfills

💡 Usage

Import polyfills:

import adobePolyfills from "rollup-plugin-adobe-polyfills";

...

plugins: [
  adobePolyfills({ include: 'src/**/*.tsx', disableCategories: ["number", "object","json"] }),
],

⚙️ Parameters

| Parameter | Type | Default | Description | | --------------------- | --------------------------------------------------------- | ------------------- | --------------------------------------------------------------------------------------------------------------- | | include | string,RegExp,string[], RegExp[],null | ['src//*'] | A glob pattern to match files to include in the bundle. | | exclude | string,RegExp,string[], RegExp[],null | ["node_modules/"] | A glob pattern to match files to exclude in the bundle. | | disableCategories | string[] | [] | A list of categories to exclude from the bundle. ["array","function","json","math","number","object","string"] |

🌈 Demo Project

Adobe-Scripting-With-Typescript-Demo

📚 Supported Polyfills

Array Methods

| ES Version | Methods | | ---------- | ---------------------------------------------------------------------------------------------------------------- | | ES5 | forEach, map, filter, reduce, reduceRight, some, every, indexOf, lastIndexOf | | ES6 | copyWithin, find, findIndex, fill, keys, values, entries | | ES2016 | includes | | ES2019 | flat, flatMap | | ES2022 | at | | ES2023 | findLast, findLastIndex |

Static Methods isArray, from, of


Function Methods

| Methods | | ------------------ | | bind, name |


JSON

json2 implementation (provides JSON.parse/JSON.stringify )


Math Methods

cbrt, clz32, expm1, fround, hypot, imul, log10, log1p, log2, sign, trunc


Number Methods

| Static Methods | | ------------------------ | | isInteger, isNaN |


Object Methods

Static Methods assign, create, entries, getPrototypeOf, keys, setPrototypeOf, values

Instance Methods hasOwnProperty


String Methods

| ES Version | Methods | | ---------- | ----------------------------------------------------------------------- | | ES5 | trim | | ES6 | codePointAt, repeat, startsWith, endsWith, includes | | ES2017 | padStart, padEnd | | ES2019 | trimStart, trimEnd | | ES2020 | matchAll | | ES2021 | replaceAll | | ES2022 | at |

Static Methods fromCodePoint, raw

🌟 Features

  • Modular architecture - load only what you need
  • Version-aware grouping
  • TypeScript ready
  • Zero dependencies

🤝 Contributing

  1. Fork the repository
  2. Add polyfills for new methods in dedicated version folders
  3. Update supported methods lists
  4. Submit a PR with test cases

📜 License

MIT