# is-valid-element-name

> Validates custom element names according to the custom elements spec

Latest version **1.0.0** (published 2016-06-22) · BSD-2-Clause license · 0 weekly downloads

## Install

```sh
npm install is-valid-element-name
pnpm add is-valid-element-name
yarn add is-valid-element-name
bun add is-valid-element-name
```

## 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.0.0 |
| Published | 2016-06-22 |
| First published | 2016-06-22 |
| Weekly downloads | 0 |
| License | BSD-2-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Matthew Phillips |
| Maintainers | matthewp |
| Keywords | custom, elements |

## Links

- npm: https://www.npmjs.com/package/is-valid-element-name
- Repository: https://github.com/matthewp/is-valid-element-name
- Homepage: https://github.com/matthewp/is-valid-element-name#readme
- Issues: https://github.com/matthewp/is-valid-element-name/issues
- npm.io page: https://npm.io/package/is-valid-element-name

## Dependencies (1)

- [is-potential-custom-element-name](https://npm.io/package/is-potential-custom-element-name.md) ^1.0.0

## Recent versions

- 1.0.0 (latest) — 2016-06-22

## README

# is-valid-element-name

[![Build Status](https://travis-ci.org/matthewp/is-valid-element-name.svg?branch=master)](https://travis-ci.org/matthewp/is-valid-element-name)
[![npm version](https://badge.fury.io/js/is-valid-element-name.svg)](http://badge.fury.io/js/is-valid-element-name)


Determines if an string is a valid element name. Like [validate-element-name](https://github.com/sindresorhus/validate-element-name) but without opinions on what a custom element name should be.

Backed by [is-potential-custom-element-name](https://github.com/mathiasbynens/is-potential-custom-element-name) which does the heavy lifting, but also checks against reserved names.

## Install

```
npm install is-valid-element-name --save
```

## Use

```js
var isValidElementName = require("is-valid-element-name");

isValidElementName("hello-world"); // -> true
isValidElementName("div"); // -> false
isValidElementName("f0_0_0-what"); // -> true

// This is a reserved name.
isvalidElementName("font-face"); // -> false
```

## License

BSD 2 Clause

---
_Source: https://npm.io/package/is-valid-element-name · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
