1.1.4 • Published 12 months ago

webstream-kernel v1.1.4

Weekly downloads
-
License
-
Repository
-
Last release
12 months ago

Webstream Kernel

Example: analyze all imports from a repo

import fs from "fs/promises";
import ignore from "ignore";
import imports from "imports-walk-ts";
import path from "path";
import { peekYaml } from "peek-log";
import { froms, filters, maps, nils } from "webstream-kernal";

const ignorer = ignore({})
  .add(await fs.readFile("./.gitignore", "utf8"))
  .createFilter();

await from(new Bun.Glob("./**/*.{ts,tsx,jsx,js}").scan())
  .pipeThrough(maps((f) => path.normalize(f)))
  .pipeThrough(filters(ignorer))
  .pipeThrough(maps((f) => fs.readFile(f, "utf8")))
  .pipeThrough(maps((c) => imports(c)))
  .pipeThrough(maps(peekYaml))
  .pipeTo(nils());
1.1.4

12 months ago

1.1.3

12 months ago

1.1.2

12 months ago

1.1.1

12 months ago

0.0.11

12 months ago

0.0.10

12 months ago

0.0.9

12 months ago

0.0.8

12 months ago

0.0.7

12 months ago

0.0.6

12 months ago

0.0.5

12 months ago

0.0.4

12 months ago

0.0.3

12 months ago

0.0.2

12 months ago