]> gerrit.simantics Code Review - simantics/district.git/blob - example.js
2c933c440480f297e707476b7abf7942627e43fc
[simantics/district.git] / example.js
1 // this will show what ends up in the fstream-npm package
2 var P = require('../')
3 P({ path: './' })
4   .on('package', function (p) {
5     console.error('package', p)
6   })
7   .on('ignoreFile', function (e) {
8     console.error('ignoreFile', e)
9   })
10   .on('entry', function (e) {
11     console.error(e.constructor.name, e.path.substr(e.root.dirname.length + 1))
12   })