Initial commit
[yaffs-website] / node_modules / filename-regex / README.md
1 # filename-regex [![NPM version](https://badge.fury.io/js/filename-regex.svg)](http://badge.fury.io/js/filename-regex)
2
3 > Regular expression for matching file names, with or without extension.
4
5
6 ## Install with [npm](npmjs.org)
7
8 ```bash
9 npm i filename-regex --save
10 ```
11
12 ## Usage
13
14 ```js
15 var regex = require('filename-regex');
16
17 'a/b/c/d.min.js'.match(regex());
18 //=> match[0] = 'd.min.js'
19
20 'a/b/c/.dotfile'.match(regex());
21 //=> match[0] = '.dotfile'
22 ```
23
24
25 ## Run tests
26
27 Install dev dependencies:
28
29 ```bash
30 npm i -d && npm test
31 ```
32
33 ## Contributing
34 Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/regexps/filename-regex/issues)
35
36
37 ## Author
38
39 **Jon Schlinkert**
40  
41 + [github/jonschlinkert](https://github.com/jonschlinkert)
42 + [twitter/jonschlinkert](http://twitter.com/jonschlinkert) 
43
44
45 ## License
46 Copyright (c) 2015 Jon Schlinkert  
47 Released under the MIT license
48
49 ***
50
51 _This file was generated by [verb](https://github.com/assemble/verb) on January 24, 2015._