Skip to content

Commit

Permalink
use isStream
Browse files Browse the repository at this point in the history
  • Loading branch information
ctalkington committed Mar 10, 2024
1 parent 84d4dd8 commit 3d3aef3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
*/
var fs = require('graceful-fs');
var path = require('path');
var isStream = require('is-stream');
var lazystream = require('lazystream');
var normalizePath = require('normalize-path');
var defaults = require('lodash/defaults');
Expand Down Expand Up @@ -64,7 +65,7 @@ utils.defaults = function(object, source, guard) {
};

utils.isStream = function(source) {
return source instanceof Stream;
return isStream(source);
};

utils.lazyReadStream = function(filepath) {
Expand Down

0 comments on commit 3d3aef3

Please sign in to comment.