Sha256: 14e121cc3315fe509f0eaf9e9b3227b9652ba06eec4210a6413dbca9e051aadc

Contents?: true

Size: 1.3 KB

Versions: 23

Compression:

Stored size: 1.3 KB

Contents

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const async_1 = require("./providers/async");
const stream_1 = require("./providers/stream");
const sync_1 = require("./providers/sync");
const settings_1 = require("./settings");
exports.Settings = settings_1.default;
function walk(directory, optionsOrSettingsOrCallback, callback) {
    if (typeof optionsOrSettingsOrCallback === 'function') {
        return new async_1.default(directory, getSettings()).read(optionsOrSettingsOrCallback);
    }
    new async_1.default(directory, getSettings(optionsOrSettingsOrCallback)).read(callback);
}
exports.walk = walk;
function walkSync(directory, optionsOrSettings) {
    const settings = getSettings(optionsOrSettings);
    const provider = new sync_1.default(directory, settings);
    return provider.read();
}
exports.walkSync = walkSync;
function walkStream(directory, optionsOrSettings) {
    const settings = getSettings(optionsOrSettings);
    const provider = new stream_1.default(directory, settings);
    return provider.read();
}
exports.walkStream = walkStream;
function getSettings(settingsOrOptions = {}) {
    if (settingsOrOptions instanceof settings_1.default) {
        return settingsOrOptions;
    }
    return new settings_1.default(settingsOrOptions);
}

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
trusty-cms-5.0.7 node_modules/@nodelib/fs.walk/out/index.js
trusty-cms-5.0.6 node_modules/@nodelib/fs.walk/out/index.js
trusty-cms-5.0.5 node_modules/@nodelib/fs.walk/out/index.js
trusty-cms-5.0.4 node_modules/@nodelib/fs.walk/out/index.js
trusty-cms-5.0.3 node_modules/@nodelib/fs.walk/out/index.js
trusty-cms-5.0.2 node_modules/@nodelib/fs.walk/out/index.js
trusty-cms-5.0.1 node_modules/@nodelib/fs.walk/out/index.js
trusty-cms-4.3.5 node_modules/@nodelib/fs.walk/out/index.js
trusty-cms-5.0.0 node_modules/@nodelib/fs.walk/out/index.js
trusty-cms-4.3.4 node_modules/@nodelib/fs.walk/out/index.js
trusty-cms-4.3.3 node_modules/@nodelib/fs.walk/out/index.js
trusty-cms-4.3.2 node_modules/@nodelib/fs.walk/out/index.js
trusty-cms-4.3.1 node_modules/@nodelib/fs.walk/out/index.js
trusty-cms-4.3 node_modules/@nodelib/fs.walk/out/index.js
trusty-cms-4.2.3 node_modules/@nodelib/fs.walk/out/index.js
trusty-cms-4.2.2 node_modules/@nodelib/fs.walk/out/index.js
trusty-cms-4.2.1 node_modules/@nodelib/fs.walk/out/index.js
trusty-cms-4.2 node_modules/@nodelib/fs.walk/out/index.js
trusty-cms-4.1.9 node_modules/@nodelib/fs.walk/out/index.js
trusty-cms-4.1.8 node_modules/@nodelib/fs.walk/out/index.js