1 | expandglob
|
2 | ==========
|
3 |
|
4 |
|
5 | This file is generated by ape-tmpl. Do not update manually.
|
6 | --->
|
7 |
|
8 |
|
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 |
|
30 |
|
31 |
|
32 |
|
33 | <a name="description"></a>
|
34 |
|
35 | Node.js module to expand glob file patterns.
|
36 |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 | <a name="sections"></a>
|
44 |
|
45 |
|
46 |
|
47 | <a name="section-doc-guides-01-installation-md"></a>
|
48 | Installation
|
49 | -----
|
50 |
|
51 | ```bash
|
52 | npm install expandglob --save
|
53 | ```
|
54 |
|
55 |
|
56 |
|
57 |
|
58 |
|
59 | <a name="section-doc-guides-02-usage-md"></a>
|
60 | Usage
|
61 | ----
|
62 |
|
63 | ### Expand Glob File Patterns
|
64 |
|
65 | ```javascript
|
66 | #!/usr/bin/env/node
|
67 | 'use strict'
|
68 |
|
69 | const expandglob = require('expandglob')
|
70 |
|
71 | expandglob([
|
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 |
|
86 |
|
87 |
|
88 |
|
89 |
|
90 |
|
91 |
|
92 | <a name="license"></a>
|
93 |
|
94 | License
|
95 | -------
|
96 | This software is released under the [MIT License](https://github.com/okunishinishi/node-expandglob/blob/master/LICENSE).
|
97 |
|
98 |
|
99 |
|
100 |
|
101 |
|
102 | <a name="links"></a>
|
103 |
|
104 | Links
|
105 | ------
|
106 |
|
107 | + [glob](https://www.npmjs.com/package/glob)
|
108 |
|
109 |
|