An open API service indexing awesome lists of open source software.

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.

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