29 lines
480 B
Markdown
29 lines
480 B
Markdown
# 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)
|