123456789101112131415161718 |
- var extractOpts = require('./').extractOpts;
- var readFile = function(filename, opts, callback){
-
- var args = extractOpts(opts, callback);
- opts = args[0];
- callback = args[1];
-
- require('fs').readFile(filename, opts, callback);
- };
- var next = console.log.bind(console);
- readFile('package.json', next);
- readFile('package.json', null, next);
- readFile('package.json', {next:next});
|