aboutsummaryrefslogtreecommitdiff
path: root/node_modules/ncname/readme.md
blob: 3fb2b5fea6dc348741405b827a22e2eddb30cb04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# ncname [![Build Status](https://travis-ci.org/sindresorhus/ncname.svg?branch=master)](https://travis-ci.org/sindresorhus/ncname)

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


## Install

```sh
$ npm install --save ncname
```


## Usage

```js
var ncname = require('ncname');

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

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


## License

MIT © [Sindre Sorhus](http://sindresorhus.com)