A tiny ponyfill (266 bytes) for document.currentScript
which adds support for IE 11.
yarn add tiny-current-script
import { getCurrentScript } from 'tiny-current-script'
const currentScript = getCurrentScript()
// null or current script element
- 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
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