tiny-current-script
v1.0.0
Published
Tiny ponyfill to document.currentScript
Readme
tiny-current-script
A tiny ponyfill (266 bytes) for document.currentScript which adds support for IE 11.
Install
yarn add tiny-current-scriptUsage
import { getCurrentScript } from 'tiny-current-script'
const currentScript = getCurrentScript()
// null or current script elementContributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature - Commit your changes:
git commit -am 'Add some feature' - Push to the branch:
git push origin my-new-feature - Submit a pull request :D
Author
tiny-current-script © EGOIST, Released under the MIT License. Authored and maintained by EGOIST with help from contributors (list).
github.com/egoist · GitHub @EGOIST · Twitter @_egoistlily
