Edit file File name : option-onResult.js Content :'use strict'; const micromatch = require('..'); const onResult = ({ glob, regex, input, output }) => { console.log({ input, output }); }; const isMatch = micromatch.matcher('*', { onResult, ignore: 'f*' }); isMatch('foo'); isMatch('bar'); isMatch('baz'); Save