aboutsummaryrefslogtreecommitdiff
path: root/node_modules/filename-regex
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/filename-regex')
-rw-r--r--node_modules/filename-regex/README.md51
-rw-r--r--node_modules/filename-regex/index.js10
-rw-r--r--node_modules/filename-regex/package.json41
3 files changed, 102 insertions, 0 deletions
diff --git a/node_modules/filename-regex/README.md b/node_modules/filename-regex/README.md
new file mode 100644
index 000000000..d001e7aae
--- /dev/null
+++ b/node_modules/filename-regex/README.md
@@ -0,0 +1,51 @@
+# filename-regex [![NPM version](https://badge.fury.io/js/filename-regex.svg)](http://badge.fury.io/js/filename-regex)
+
+> Regular expression for matching file names, with or without extension.
+
+
+## Install with [npm](npmjs.org)
+
+```bash
+npm i filename-regex --save
+```
+
+## Usage
+
+```js
+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:
+
+```bash
+npm i -d && npm test
+```
+
+## Contributing
+Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/regexps/filename-regex/issues)
+
+
+## Author
+
+**Jon Schlinkert**
+
++ [github/jonschlinkert](https://github.com/jonschlinkert)
++ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
+
+
+## License
+Copyright (c) 2015 Jon Schlinkert
+Released under the MIT license
+
+***
+
+_This file was generated by [verb](https://github.com/assemble/verb) on January 24, 2015._
diff --git a/node_modules/filename-regex/index.js b/node_modules/filename-regex/index.js
new file mode 100644
index 000000000..bb1888b4a
--- /dev/null
+++ b/node_modules/filename-regex/index.js
@@ -0,0 +1,10 @@
+/*!
+ * filename-regex <https://github.com/regexps/filename-regex>
+ *
+ * Copyright (c) 2014-2015, Jon Schlinkert
+ * Licensed under the MIT license.
+ */
+
+module.exports = function filenameRegex() {
+ return /([^\\\/]+)$/;
+};
diff --git a/node_modules/filename-regex/package.json b/node_modules/filename-regex/package.json
new file mode 100644
index 000000000..a07840085
--- /dev/null
+++ b/node_modules/filename-regex/package.json
@@ -0,0 +1,41 @@
+{
+ "name": "filename-regex",
+ "description": "Regular expression for matching file names, with or without extension.",
+ "version": "2.0.0",
+ "homepage": "https://github.com/regexps/filename-regex",
+ "author": {
+ "name": "Jon Schlinkert",
+ "url": "https://github.com/jonschlinkert"
+ },
+ "repository": {
+ "type": "git",
+ "url": "git://github.com/regexps/filename-regex.git"
+ },
+ "bugs": {
+ "url": "https://github.com/regexps/filename-regex/issues"
+ },
+ "license": {
+ "type": "MIT",
+ "url": "https://github.com/regexps/filename-regex/blob/master/LICENSE-MIT"
+ },
+ "main": "index.js",
+ "engines": {
+ "node": ">=0.10.0"
+ },
+ "files": ["index.js"],
+ "scripts": {
+ "test": "mocha -R spec"
+ },
+ "keywords": [
+ "basename",
+ "regular expression",
+ "file",
+ "filename",
+ "filepath",
+ "match",
+ "name",
+ "path",
+ "regex",
+ "regexp"
+ ]
+}