# current-script-polyfill

> An exceptionally slim (~310kb minified) polyfill for document.currentScript in IE9+

Latest version **1.0.0** (published 2016-08-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install current-script-polyfill
pnpm add current-script-polyfill
yarn add current-script-polyfill
bun add current-script-polyfill
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2016-08-07 |
| First published | 2016-08-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 73 |
| Author | Adam Miller |
| Maintainers | epicmiller |

## Links

- npm: https://www.npmjs.com/package/current-script-polyfill
- Repository: https://github.com/epicmiller/currentScript-polyfill
- Homepage: https://github.com/epicmiller/currentScript-polyfill#readme
- Issues: https://github.com/epicmiller/currentScript-polyfill/issues
- npm.io page: https://npm.io/package/current-script-polyfill

## Recent versions

- 1.0.0 (latest) — 2016-08-07

## README

# document.currentScript Polyfill

#### An exceptionally slim (~310kb minified) polyfill for document.currentScript in IE9+

This polyfill may not adhere strictly to spec when called in async code or in a callback. In these situations the spec calls for document.currentScript to return null. However, for the grand majority of your document.currentScript needs, this polyfill will do the job!

---
_Source: https://npm.io/package/current-script-polyfill · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
