DESKTOP-SYIYI\Dell 3976461224 xx %!s(int64=7) %!d(string=hai) anos
..
LICENSE 3976461224 xx %!s(int64=7) %!d(string=hai) anos
README.md 03a863fb53 add node_modules %!s(int64=8) %!d(string=hai) anos
index.js 03a863fb53 add node_modules %!s(int64=8) %!d(string=hai) anos
package.json 03a863fb53 add node_modules %!s(int64=8) %!d(string=hai) anos

README.md

filename-regex NPM version

Regular expression for matching file names, with or without extension.

Install with npm

npm i filename-regex --save

Usage

var regex = require('filename-regex');

'a/b/c/d.min.js'.match(regex());
//=> match[0] = 'd.min.js'

'a/b/c/.dotfile'.match(regex());
//=> match[0] = '.dotfile'

Run tests

Install dev dependencies:

npm i -d && npm test

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue

Author

Jon Schlinkert

License

Copyright (c) 2015 Jon Schlinkert
Released under the MIT license


This file was generated by verb on January 24, 2015.