How to use the tiny-glob/sync function in tiny-glob

To help you get started, we’ve selected a few tiny-glob examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ArkEcosystem / core / __tests__ / unit / crypto / utils / network-list.ts View on Github external
import "jest-extended";

import { parse } from "path";
import tg from "tiny-glob/sync";

const entries = tg("../../../../packages/crypto/src/networks/**/*.json", { cwd: __dirname });

const NETWORKS = {};
entries.forEach(file => {
    NETWORKS[parse(file).name] = require(file);
});

const NETWORKS_LIST = [];
entries.forEach(file => NETWORKS_LIST.push(require(file)));

module.exports = { NETWORKS, NETWORKS_LIST };
github jaredpalmer / tsdx / src / index.ts View on Github external
    .map(file => glob(file))
    .forEach(input => inputs.push(input));
github developit / microbundle / src / index.js View on Github external
		.map(file => glob(file))
		.forEach(file => input.push(...file));

tiny-glob

Tiny and extremely fast globbing

MIT
Latest version published 3 years ago

Package Health Score

67 / 100
Full package analysis

Popular tiny-glob functions