Buckets:
| ; | |
| Object.defineProperty(exports, "__esModule", { value: true }); | |
| exports.Settings = exports.walkStream = exports.walkSync = exports.walk = void 0; | |
| 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') { | |
| new async_1.default(directory, getSettings()).read(optionsOrSettingsOrCallback); | |
| return; | |
| } | |
| 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); | |
| } | |
Xet Storage Details
- Size:
- 1.39 kB
- Xet hash:
- be9b1df467d06fcef35b8b7e1d32963b5da7100bc5aa7bb5de54c4892d3828d8
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.