UNPKG

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