1.0.0 • Published 4 years ago
tiny-current-script v1.0.0
tiny-current-script
A tiny ponyfill (266 bytes) for document.currentScript
which adds support for IE 11.
Install
yarn add tiny-current-script
Usage
import { getCurrentScript } from 'tiny-current-script'
const currentScript = getCurrentScript()
// null or current script element
Contributing
- 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
1.0.0
4 years ago