# add dist

This commit is contained in:
Mario Romano
2016-04-21 11:56:31 +01:00
parent 5914688467
commit 07807e7bc3
13499 changed files with 1808930 additions and 5 deletions

View File

@@ -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._

View File

@@ -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 /([^\\\/]+)$/;
};

View File

@@ -0,0 +1,94 @@
{
"_args": [
[
"filename-regex@^2.0.0",
"/Users/mromano/dev/dev-platform-webcomponents/ng2-components/ng2-alfresco-documentslist/node_modules/anymatch/node_modules/micromatch"
]
],
"_from": "filename-regex@>=2.0.0 <3.0.0",
"_id": "filename-regex@2.0.0",
"_inCache": true,
"_installable": true,
"_location": "/filename-regex",
"_npmUser": {
"email": "github@sellside.com",
"name": "jonschlinkert"
},
"_npmVersion": "1.4.28",
"_phantomChildren": {},
"_requested": {
"name": "filename-regex",
"raw": "filename-regex@^2.0.0",
"rawSpec": "^2.0.0",
"scope": null,
"spec": ">=2.0.0 <3.0.0",
"type": "range"
},
"_requiredBy": [
"/anymatch/micromatch",
"/browser-sync/micromatch",
"/gulp-typescript/micromatch"
],
"_resolved": "https://registry.npmjs.org/filename-regex/-/filename-regex-2.0.0.tgz",
"_shasum": "996e3e80479b98b9897f15a8a58b3d084e926775",
"_shrinkwrap": null,
"_spec": "filename-regex@^2.0.0",
"_where": "/Users/mromano/dev/dev-platform-webcomponents/ng2-components/ng2-alfresco-documentslist/node_modules/anymatch/node_modules/micromatch",
"author": {
"name": "Jon Schlinkert",
"url": "https://github.com/jonschlinkert"
},
"bugs": {
"url": "https://github.com/regexps/filename-regex/issues"
},
"dependencies": {},
"description": "Regular expression for matching file names, with or without extension.",
"devDependencies": {},
"directories": {},
"dist": {
"shasum": "996e3e80479b98b9897f15a8a58b3d084e926775",
"tarball": "https://registry.npmjs.org/filename-regex/-/filename-regex-2.0.0.tgz"
},
"engines": {
"node": ">=0.10.0"
},
"files": [
"index.js"
],
"gitHead": "aa0f2933322d38cf547ff4c8ced882fbd8422866",
"homepage": "https://github.com/regexps/filename-regex",
"keywords": [
"basename",
"regular expression",
"file",
"filename",
"filepath",
"match",
"name",
"path",
"regex",
"regexp"
],
"license": {
"type": "MIT",
"url": "https://github.com/regexps/filename-regex/blob/master/LICENSE-MIT"
},
"main": "index.js",
"maintainers": [
{
"email": "github@sellside.com",
"name": "jonschlinkert"
}
],
"name": "filename-regex",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git://github.com/regexps/filename-regex.git"
},
"scripts": {
"test": "mocha -R spec"
},
"version": "2.0.0"
}