libreccm-legacy/trunk-images/node_modules/readdirp/examples
baka a212bb7b37 [3056] Adds Plugin to add Images from the system in tinymce. Now with files...
git-svn-id: https://svn.libreccm.org/ccm/trunk@5722 8810af33-2d31-482b-a856-94f89814c4df
2018-11-03 23:44:15 +00:00
..
Readme.md [3056] Adds Plugin to add Images from the system in tinymce. Now with files... 2018-11-03 23:44:15 +00:00
callback-api.js [3056] Adds Plugin to add Images from the system in tinymce. Now with files... 2018-11-03 23:44:15 +00:00
grep.js [3056] Adds Plugin to add Images from the system in tinymce. Now with files... 2018-11-03 23:44:15 +00:00
package.json [3056] Adds Plugin to add Images from the system in tinymce. Now with files... 2018-11-03 23:44:15 +00:00
stream-api-pipe.js [3056] Adds Plugin to add Images from the system in tinymce. Now with files... 2018-11-03 23:44:15 +00:00
stream-api.js [3056] Adds Plugin to add Images from the system in tinymce. Now with files... 2018-11-03 23:44:15 +00:00

Readme.md

readdirp examples

How to run the examples

Assuming you installed readdirp (npm install readdirp), you can do the following:

  1. npm explore readdirp
  2. cd examples
  3. npm install

At that point you can run the examples with node, i.e., node grep.

stream api

stream-api.js

Demonstrates error and data handling by listening to events emitted from the readdirp stream.

stream api pipe

stream-api-pipe.js

Demonstrates error handling by listening to events emitted from the readdirp stream and how to pipe the data stream into another destination stream.

grep

grep.js

Very naive implementation of grep, for demonstration purposes only.

using callback api

callback-api.js

Shows how to pass callbacks in order to handle errors and/or data.