# ncname

> Regular expression for matching XML NCName

Latest version **3.0.0** (published 2021-10-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install ncname
pnpm add ncname
yarn add ncname
bun add ncname
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2021-10-18 |
| First published | 2014-03-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Node | ^12.20.0 \|\| ^14.13.1 \|\| >=16.0.0 |
| Dependencies | 1 |
| Unpacked size | 2.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 12 |
| Author | Sindre Sorhus |
| Maintainers | sindresorhus |
| Keywords | ncname, ncnamechar, xml, re, regex, name, element, tag, match, unicode |

## Links

- npm: https://www.npmjs.com/package/ncname
- Repository: https://github.com/sindresorhus/ncname
- Homepage: https://github.com/sindresorhus/ncname#readme
- Issues: https://github.com/sindresorhus/ncname/issues
- Funding: https://github.com/sponsors/sindresorhus
- npm.io page: https://npm.io/package/ncname

## Dependencies (1)

- [xml-char-classes](https://npm.io/package/xml-char-classes.md) ^3.0.0

## Alternatives

- [memory-cache](https://npm.io/package/memory-cache.md) — 795.0K weekly downloads
- [@httptoolkit/proxy-agent](https://npm.io/package/@httptoolkit/proxy-agent.md) — 11.2K weekly downloads
- [express-cache-controller](https://npm.io/package/express-cache-controller.md) — 5.3K weekly downloads
- [http-cache-middleware](https://npm.io/package/http-cache-middleware.md) — 4.5K weekly downloads
- [cache2](https://npm.io/package/cache2.md) — 1.5K weekly downloads

## Recent versions

- 3.0.0 (latest) — 2021-10-18
- 2.0.0 — 2018-03-23
- 1.0.0 — 2014-08-13
- 0.1.2 — 2014-06-13
- 0.1.1 — 2014-04-07
- 0.1.0 — 2014-03-27

## README

# ncname

> Regular expression for matching [XML NCName](https://www.w3.org/TR/1999/REC-xml-names-19990114/#NT-NCName)

## Install

```sh
npm install ncname
```

## Usage

```js
import ncname from 'ncname';

ncname.test('hællæ');
//=> true

ncname.test('$unicorn');
//=> false
```

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