UNPKG

2.15 kBMarkdownView Raw
1[![idea](http://i.imgur.com/BGMt0Ne.png)](#)
2
3# `$ idea` [![Support this project][donate-now]][paypal-donations]
4
5A lightweight CLI tool and module for keeping ideas in a safe place quick and easy.
6
7## Installation
8
9You can install the package globally and use it as command line tool:
10
11```sh
12$ npm i -g idea
13```
14
15Then, run `idea --help` and see what the CLI tool can do.
16
17```sh
18$ idea --help
19idea help
20usage: idea [command] <idea|filter|id>
21
22A lightweight CLI tool and module for keeping your ideas in a safe place quick and easy.
23
24[command]
25 create <idea> Creates and saves a new idea. Example: `idea create "Implement something very cool"`
26 list Lists all ideas. Example: `idea list`
27 filter <filter> Lists filtered ideas. Example: `idea filter '{"state": "SOLVED"}'`
28 solve <id> Solves an idea. Example `idea solve 1`
29 help Prints this help.
30
31Documentation can be found at https://github.com/IonicaBizau/idea
32```
33
34## Example
35
36Here is an example how to use this package as library. To install it locally, as library, you can do that using `npm`:
37
38```sh
39$ npm i --save idea
40```
41
42```js
43// Dependencies
44var Idea = require("idea");
45
46// Initialize the idea object
47var idea = new Idea("./ideas.json", err => {
48 if (err) throw err;
49 idea.create("Implement something cool.", err => {
50 if (err) throw err;
51 });
52});
53```
54
55## Documentation
56
57For full API reference, see the [DOCUMENTATION.md][docs] file.
58
59## How to contribute
60Have an idea? Found a bug? See [how to contribute][contributing].
61
62## Where is this library used?
63If you are using this library in one of your projects, add it in this list. :sparkles:
64
65## License
66
67[MIT][license] © [Ionică Bizău][website]
68
69[paypal-donations]: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=RVXDDLKKLQRJW
70[donate-now]: http://i.imgur.com/6cMbHOC.png
71
72[license]: http://showalicense.com/?fullname=Ionic%C4%83%20Biz%C4%83u%20%3Cbizauionica%40gmail.com%3E%20(http%3A%2F%2Fionicabizau.net)&year=2015#license-mit
73[website]: http://ionicabizau.net
74[contributing]: /CONTRIBUTING.md
75[docs]: /DOCUMENTATION.md
\No newline at end of file