2.0.1 • Published 7 years ago

filename-regex v2.0.1

Weekly downloads
3,032,844
License
MIT
Repository
github
Last release
7 years ago

filename-regex NPM version NPM monthly downloads NPM total downloads Linux Build Status

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

Install

Install with npm:

$ npm install --save filename-regex

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'

About

Contributing

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

Building docs

(This project's readme.md is generated by verb, please don't edit the readme directly. Any changes to the readme must be made in the .verb.md readme template.)

To generate the readme, run the following command:

$ npm install -g verbose/verb#dev verb-generate-readme && verb

Running tests

Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:

$ npm install && npm test

Author

Jon Schlinkert

License

Copyright © 2017, Jon Schlinkert. Released under the MIT License.


This file was generated by verb-generate-readme, v0.4.3, on April 28, 2017.

archetype-libraryrn-send-sms@arisageha/react-lazyload@arisageha/react-lazyload-fixcloud-archive-s3@phil8795/pecuniarius-apireact-native-thanh-toast-library@thanhnguyen14797/react-native-thanh-toast-librarypanqibaouinz-notificationunblock-block-save-variables@infinitebrahmanuniverse/nolb-filen@everything-registry/sub-chunk-1666ka-flow.jskafirchain-tetrishendo-clihendo-cli-luozheaoguide-detailmiguelcostero-ng2-toastylrbceshimini-vue-validatenois-react-toast3.0.0easyplayer-myh5-templetehalm-uihalm_guide_detailhalm_web_guide_detailgzup-react-image-file-resizerfahad-redux-axios-midlewarefishzerofenglin-uploaderfhir2ezsfreemambaprova-2-caroselloprova-cmpprova-cpm-2prova-cpm-3prova-cpm-4qyx-hmtldiffpolen-web-components-reactprebeneide-first-npm-packageprimeng-customreact-native-brother-projectoutils-renreact-redux-demo1react-native-template-vifereact-native-version-managerreact-native-handcheque-enginepatternxplaykit-js-hls-sondq@bitfirer/vue-qriouslysearch-input-reactsearch-list-reactcar-cmp-2caropcarop2carop3carop4carosello-campus-opacitacarosello-tribuscarosello-tribus-2carousel-reactch3ck@gzup/react-image-file-resizerxiedaimalaxiedaimala-upload@hawkingnetwork/react-native-tab-view@headgum/tko-mapping@ezs/coretwine-libtwine-libraryvideo-multi-uploadervue-dev-clonevue-size-trackerteste_cegidvue-cvstypographic-orphanvue-v3-yandex-metrika@mblode/react-native-feather@keystone.sh/cli@kristoffertonning/vue-laravel-errors@innodata/vue-v3-ya-metrikawc-starterkitwed_developervcloudcam-playkit-js-hls@ngxvoice/ngx-voicelistnerzyl@edoroshenko/codemirrorsolregex2start-starwars-libcpm-5cpm-6cpm-7cpm-8cpm-9cpm-10cpm-11cpm-12
2.0.1

7 years ago

2.0.0

9 years ago

1.0.0

9 years ago

0.2.0

9 years ago

0.1.0

9 years ago