https://github.com/a7ul/child-replace-with-polyfill
childNode.replaceWith polyfill for unsupported browsers.
https://github.com/a7ul/child-replace-with-polyfill
javascript openlibrary polyfill
Last synced: 3 months ago
JSON representation
childNode.replaceWith polyfill for unsupported browsers.
- Host: GitHub
- URL: https://github.com/a7ul/child-replace-with-polyfill
- Owner: a7ul
- License: mit
- Created: 2019-01-26T13:20:19.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-26T13:24:37.000Z (over 6 years ago)
- Last Synced: 2025-01-09T08:45:49.787Z (5 months ago)
- Topics: javascript, openlibrary, polyfill
- Language: JavaScript
- Homepage: https://developer.mozilla.org/en-US/docs/Web/API/ChildNode/replaceWith
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# child-replace-with-polyfill
Polyfill for
```
void ChildNode.replaceWith((Node or DOMString)... nodes);
```This the npm module version of polyfill found here: https://developer.mozilla.org/en-US/docs/Web/API/ChildNode/replaceWith so that it is easier to integrate to regular projects
# Installation
```js
npm install --save child-replace-with-polyfill
```# Usage
```js
import "child-replace-with-polyfill";
```or
```js
require("child-replace-with-polyfill");
```# Maintainence
I dont think this polyfill would need any more maintainence but feel free to raise a PR if needed