Skip to main content

@roka/fs@0.1.0
Built and signed on GitHub Actions

Works with
This package works with DenoIt is unknown whether this package works with Cloudflare Workers, Node.js, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
This package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
•JSR Score100%•
License
MIT
•
Published23 hours ago (0.1.0)

🧩 Manage file system

A library for working with the file system, complementary to the standard @std/fs library.

Finding files and directories

import { find } from "@roka/fs/find"; const files = find(["."], { name: "*.ts" }); for await (const _ of files) { // ... } 

Temporary directories

import { tempDirectory } from "@roka/fs/temp"; await using directory = await tempDirectory(); await Deno.writeTextFile(directory.path("file.txt"), "Hello, world!"); 

Modules

  • find: Find files and directories with glob patterns
  • temp: Work with temporary files and directories
Built and signed on
GitHub Actions

Add Package

deno add jsr:@roka/fs 

Import symbol

import * as fs from "@roka/fs"; 
or

Import directly with a jsr specifier

import * as fs from "jsr:@roka/fs";