# custom-elements-native-shim

> A function to shim any built-in element written in, or compiled to, ES5.

Latest version **1.1.0** (published 2020-02-29) · ISC license · 0 weekly downloads

## Install

```sh
npm install custom-elements-native-shim
pnpm add custom-elements-native-shim
yarn add custom-elements-native-shim
bun add custom-elements-native-shim
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2020-02-29 |
| First published | 2020-02-29 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | defx |
| Maintainers | defx |

## Links

- npm: https://www.npmjs.com/package/custom-elements-native-shim
- Repository: https://github.com/defx/custom-elements-native-shim
- Homepage: https://github.com/defx/custom-elements-native-shim#readme
- Issues: https://github.com/defx/custom-elements-native-shim/issues
- npm.io page: https://npm.io/package/custom-elements-native-shim

## Recent versions

- 1.1.0 (latest) — 2020-02-29
- 1.0.0 — 2020-02-29

## README

# custom-elements-native-shim

A function to shim any built-in element written in, or compiled to, ES5.

This shim allows elements written in, or compiled to, ES5 to work on native
implementations of Custom Elements v1. It sets new.target to the value of
this.constructor so that the native element constructor can access the
current under-construction element's definition.

## install

```
> npm install custom-elements-native-shim
```

## use

```js
import shim from "custom-elements-native-shim";
shim("HTMLLIElement");
```

---
_Source: https://npm.io/package/custom-elements-native-shim · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
