UNPKG

2.63 kBMarkdownView Raw
1expandglob
2==========
3
4<!---
5This file is generated by ape-tmpl. Do not update manually.
6--->
7
8<!-- Badge Start -->
9<a name="badges"></a>
10
11[![Build Status][bd_travis_shield_url]][bd_travis_url]
12[![Code Climate][bd_codeclimate_shield_url]][bd_codeclimate_url]
13[![Code Coverage][bd_codeclimate_coverage_shield_url]][bd_codeclimate_url]
14[![npm Version][bd_npm_shield_url]][bd_npm_url]
15
16[bd_repo_url]: https://github.com/okunishinishi/node-expandglob
17[bd_travis_url]: http://travis-ci.org/okunishinishi/node-expandglob
18[bd_travis_shield_url]: http://img.shields.io/travis/okunishinishi/node-expandglob.svg?style=flat
19[bd_license_url]: https://github.com/okunishinishi/node-expandglob/blob/master/LICENSE
20[bd_codeclimate_url]: http://codeclimate.com/github/okunishinishi/node-expandglob
21[bd_codeclimate_shield_url]: http://img.shields.io/codeclimate/github/okunishinishi/node-expandglob.svg?style=flat
22[bd_codeclimate_coverage_shield_url]: http://img.shields.io/codeclimate/coverage/github/okunishinishi/node-expandglob.svg?style=flat
23[bd_gemnasium_url]: https://gemnasium.com/okunishinishi/node-expandglob
24[bd_gemnasium_shield_url]: https://gemnasium.com/okunishinishi/node-expandglob.svg
25[bd_npm_url]: http://www.npmjs.org/package/expandglob
26[bd_npm_shield_url]: http://img.shields.io/npm/v/expandglob.svg?style=flat
27[bd_bower_badge_url]: https://img.shields.io/bower/v/expandglob.svg?style=flat
28
29<!-- Badge End -->
30
31
32<!-- Description Start -->
33<a name="description"></a>
34
35Node.js module to expand glob file patterns.
36
37<!-- Description End -->
38
39
40
41
42<!-- Sections Start -->
43<a name="sections"></a>
44
45<!-- Section from "doc/guides/01.Installation.md.hbs" Start -->
46
47<a name="section-doc-guides-01-installation-md"></a>
48Installation
49-----
50
51```bash
52npm install expandglob --save
53```
54
55<!-- Section from "doc/guides/01.Installation.md.hbs" End -->
56
57<!-- Section from "doc/guides/02.Usage.md.hbs" Start -->
58
59<a name="section-doc-guides-02-usage-md"></a>
60Usage
61----
62
63### Expand Glob File Patterns
64
65```javascript
66#!/usr/bin/env/node
67'use strict'
68
69const expandglob = require('expandglob')
70
71expandglob([
72 'lib/*.js',
73 'doc/**/.js'
74], {
75 cwd: process.cwd(),
76 ignore: []
77}).then((filenames) => {
78 console.log(filenames)
79})
80
81```
82
83
84
85<!-- Section from "doc/guides/02.Usage.md.hbs" End -->
86
87
88<!-- Sections Start -->
89
90
91<!-- LICENSE Start -->
92<a name="license"></a>
93
94License
95-------
96This software is released under the [MIT License](https://github.com/okunishinishi/node-expandglob/blob/master/LICENSE).
97
98<!-- LICENSE End -->
99
100
101<!-- Links Start -->
102<a name="links"></a>
103
104Links
105------
106
107+ [glob](https://www.npmjs.com/package/glob)
108
109<!-- Links End -->