UNPKG

3.89 kBMarkdownView Raw
1apeman-srch
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/apeman-cmd-labo/apeman-srch
17[bd_travis_url]: http://travis-ci.org/apeman-cmd-labo/apeman-srch
18[bd_travis_shield_url]: http://img.shields.io/travis/apeman-cmd-labo/apeman-srch.svg?style=flat
19[bd_license_url]: https://github.com/apeman-cmd-labo/apeman-srch/blob/master/LICENSE
20[bd_codeclimate_url]: http://codeclimate.com/github/apeman-cmd-labo/apeman-srch
21[bd_codeclimate_shield_url]: http://img.shields.io/codeclimate/github/apeman-cmd-labo/apeman-srch.svg?style=flat
22[bd_codeclimate_coverage_shield_url]: http://img.shields.io/codeclimate/coverage/github/apeman-cmd-labo/apeman-srch.svg?style=flat
23[bd_gemnasium_url]: https://gemnasium.com/apeman-cmd-labo/apeman-srch
24[bd_gemnasium_shield_url]: https://gemnasium.com/apeman-cmd-labo/apeman-srch.svg
25[bd_npm_url]: http://www.npmjs.org/package/apeman-srch
26[bd_npm_shield_url]: http://img.shields.io/npm/v/apeman-srch.svg?style=flat
27[bd_bower_badge_url]: https://img.shields.io/bower/v/apeman-srch.svg?style=flat
28
29<!-- Badge End -->
30
31
32<!-- Description Start -->
33<a name="description"></a>
34
35Plugin search for apeman.
36
37<!-- Description End -->
38
39
40<!-- Overview Start -->
41<a name="overview"></a>
42
43
44
45<!-- Overview End -->
46
47
48<!-- Sections Start -->
49<a name="sections"></a>
50
51<!-- Section from "doc/readme/01.Installation.md.hbs" Start -->
52
53<a name="section-doc-readme-01-installation-md"></a>
54Installation
55-----
56
57Install apeman-srch module via [npm][npm_url].
58```bash
59$ npm install apeman-srch -g
60```
61
62
63[npm_url]: https://www.npmjs.com/
64
65<!-- Section from "doc/readme/01.Installation.md.hbs" End -->
66
67<!-- Section from "doc/readme/02.Usage.md.hbs" Start -->
68
69<a name="section-doc-readme-02-usage-md"></a>
70Usage
71---------
72
73```bash
74$ apeman-srch -t task "nodeunit"
75```
76
77
78##### CLI Options
79
80```bash
81$ apeman-srch -h
82
83 Usage: apeman-srch [options] [term...]
84
85 Search apeman modules.
86
87 Options:
88
89 -h, --help output usage information
90 -V, --version output the version number
91 -v, --verbose Show verbose logs
92 -t, --type <type> Type to search.
93
94 Examples:
95
96 $ apeman-srch # List all available packages.
97 $ apeman-srch -t task # List all available task packages.
98 $ apeman-srch -t task "foo" # List all available task wich match term "foo".
99
100
101```
102
103
104##### Available Types
105
106+ "app"
107+ "bud"
108+ "demo"
109+ "react"
110+ "scff"
111+ "task"
112+ "tmpl"
113+ "proto"
114
115
116<!-- Section from "doc/readme/02.Usage.md.hbs" End -->
117
118<!-- Section from "doc/readme/03.Programmatic API.md.hbs" Start -->
119
120<a name="section-doc-readme-03-programmatic-a-p-i-md"></a>
121Programmatic API
122---
123
124apeman-srch also provide programmatic API.
125
126Firstly, install the module locally.
127
128```bash
129$ npm install apeman-srch --save-dev
130```
131
132Then,
133
134```javascript
135var apemanSrch = require('apeman-srch');
136
137apemanSrch({
138 task: "mocha"
139}, function (err) {
140 /*...*/
141});
142```
143
144
145##### Programmatic Options
146
147| Key | Description | Default |
148| --- | ----------- | ------- |
149| verbose | Show verbose logs | |
150| type | Type to search. | |
151
152
153<!-- Section from "doc/readme/03.Programmatic API.md.hbs" End -->
154
155
156<!-- Sections Start -->
157
158
159<!-- LICENSE Start -->
160<a name="license"></a>
161
162License
163-------
164This software is released under the [MIT License](https://github.com/apeman-cmd-labo/apeman-srch/blob/master/LICENSE).
165
166<!-- LICENSE End -->
167
168
169<!-- Links Start -->
170<a name="links"></a>
171
172Links
173------
174
175+ [apeman](http://github.com/apeman-labo/apeman)
176+ [apeman-cmd-labo](http://github.com/apeman-cmd-labo)
177
178<!-- Links End -->