3 ## How to run the examples
5 Assuming you installed readdirp (`npm install readdirp`), you can do the following:
7 1. `npm explore readdirp`
11 At that point you can run the examples with node, i.e., `node grep`.
15 [stream-api.js](https://github.com/thlorenz/readdirp/blob/master/examples/stream-api.js)
17 Demonstrates error and data handling by listening to events emitted from the readdirp stream.
21 [stream-api-pipe.js](https://github.com/thlorenz/readdirp/blob/master/examples/stream-api-pipe.js)
23 Demonstrates error handling by listening to events emitted from the readdirp stream and how to pipe the data stream into
24 another destination stream.
28 [grep.js](https://github.com/thlorenz/readdirp/blob/master/examples/grep.js)
30 Very naive implementation of grep, for demonstration purposes only.
34 [callback-api.js](https://github.com/thlorenz/readdirp/blob/master/examples/callback-api.js)
36 Shows how to pass callbacks in order to handle errors and/or data.