{"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"keywords":["re","regex","regexp","filename","reserved","illegal"],"dist-tags":{"latest":"2.0.0"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"description":"Regular expression for matching reserved filename characters","readme":"# filename-reserved-regex [![Build Status](https://travis-ci.org/sindresorhus/filename-reserved-regex.svg?branch=master)](https://travis-ci.org/sindresorhus/filename-reserved-regex)\n\n> Regular expression for matching reserved filename characters\n\nOn Unix-like systems `/` is reserved and [`<>:\"/\\|?*`](http://msdn.microsoft.com/en-us/library/aa365247%28VS.85%29#naming_conventions) as well as non-printable characters `\\x00-\\x1F` on Windows.\n\n\n## Install\n\n```\n$ npm install --save filename-reserved-regex\n```\n\n\n## Usage\n\n```js\nconst filenameReservedRegex = require('filename-reserved-regex');\n\nfilenameReservedRegex().test('foo/bar');\n//=> true\n\nfilenameReservedRegex().test('foo-bar');\n//=> false\n\n'foo/bar'.replace(filenameReservedRegex(), '!');\n//=> 'foo!bar'\n\nfilenameReservedRegex.windowsNames().test('aux');\n//=> true\n```\n\n## API\n\n### filenameReservedRegex()\n\nReturns a regex that matches all invalid characters.\n\n### filenameReservedRegex.windowsNames()\n\nReturns a exact-match case-insensitive regex that matches invalid Windows\nfilenames. These include `CON`, `PRN`, `AUX`, `NUL`, `COM1`, `COM2`, `COM3`, `COM4`, `COM5`,\n`COM6`, `COM7`, `COM8`, `COM9`, `LPT1`, `LPT2`, `LPT3`, `LPT4`, `LPT5`, `LPT6`, `LPT7`, `LPT8`\nand `LPT9`.\n\n\n## License\n\nMIT © [Sindre Sorhus](https://sindresorhus.com)\n","repository":{"type":"git","url":"git+https://github.com/sindresorhus/filename-reserved-regex.git"},"users":{"arteffeckt":true},"bugs":{"url":"https://github.com/sindresorhus/filename-reserved-regex/issues"},"license":"MIT","versions":{"1.0.0":{"name":"filename-reserved-regex","version":"1.0.0","description":"Regular expression for matching reserved filename characters","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/filename-reserved-regex"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["re","regex","regexp","filename","reserved"],"devDependencies":{"ava":"0.0.4"},"gitHead":"70c39b691414977a61ca346a2092ee1bf02ff669","bugs":{"url":"https://github.com/sindresorhus/filename-reserved-regex/issues"},"homepage":"https://github.com/sindresorhus/filename-reserved-regex","_id":"filename-reserved-regex@1.0.0","_shasum":"e61cf805f0de1c984567d0386dc5df50ee5af7e4","_from":".","_npmVersion":"2.1.18","_nodeVersion":"1.0.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"dist":{"shasum":"e61cf805f0de1c984567d0386dc5df50ee5af7e4","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/filename-reserved-regex/-/filename-reserved-regex-1.0.0.tgz"},"directories":{}},"2.0.0":{"name":"filename-reserved-regex","version":"2.0.0","description":"Regular expression for matching reserved filename characters","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/filename-reserved-regex.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["re","regex","regexp","filename","reserved","illegal"],"devDependencies":{"ava":"*","xo":"*"},"xo":{"esnext":true},"gitHead":"af9c88cd73ba944ec27c64173aa9017ec80e7d2a","bugs":{"url":"https://github.com/sindresorhus/filename-reserved-regex/issues"},"homepage":"https://github.com/sindresorhus/filename-reserved-regex#readme","_id":"filename-reserved-regex@2.0.0","_shasum":"abf73dfab735d045440abfea2d91f389ebbfa229","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.6.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"abf73dfab735d045440abfea2d91f389ebbfa229","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/filename-reserved-regex/-/filename-reserved-regex-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/filename-reserved-regex-2.0.0.tgz_1476072615480_0.5545019111596048"},"directories":{}}},"name":"filename-reserved-regex","time":{"modified":"2017-01-07T23:51:39.367Z","created":"2015-01-14T05:11:37.159Z","1.0.0":"2015-01-14T05:11:37.159Z","2.0.0":"2016-10-10T04:10:17.460Z"},"readmeFilename":"readme.md","homepage":"https://github.com/sindresorhus/filename-reserved-regex#readme"}