dir2pattern

0.0.4 • Public • Published

node-dir-to-pattern

Build Status Dependency Status devDependency Status

Fix dir path to pattern such as dir/**/*.* for grunt.file.expand.

Getting Started

Install with this command:

npm install dir2pattern --save-dev

Usage Examples

Basic

var fixPattern = require('dir2pattern');
cnosole.log(fixPattern('path/to/'));
// path/to/**/*.*

Demo

node demo.js

History

  • Ver 0.0.4 Move fix function to export it self
  • Ver 0.0.3 Bugfix: ignore directory name
  • Ver 0.0.2 Fix readme
  • Ver 0.0.1 init

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.431latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.431
0.0.31
0.0.21
0.0.11

Package Sidebar

Install

npm i dir2pattern

Weekly Downloads

34

Version

0.0.4

License

MIT

Last publish

Collaborators

  • poppinl