node package manager
It’s your turn. Help us improve JavaScript. Take the 2017 JavaScript Ecosystem Survey »

ncname

ncname Build Status

Regular expression for matching XML NCName

Install

$ npm install --save ncname

Usage

var ncname = require('ncname');
 
ncname.test('hællæ');
//=> true 
 
ncname.test('$unicorn');
//=> false 

License

MIT © Sindre Sorhus