Skip to content

🦕 Create a temporary sandbox directory and temporary move into it

License

Notifications You must be signed in to change notification settings

lambdalisue/deno-sandbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sandbox

JSR Test codecov

This module provides sandbox() and sandboxSync() function to create a temporary sandbox directory and temporary move into it.

Usage

import { sandbox, sandboxSync } from "@lambdalisue/sandbox";

{
  await using sbox = await sandbox();
  // The current working directory is changed to the sandbox directory here.
  // Do what ever you want
}
// The current working directory is changed back to the original directory here.

{
  using sbox = sandboxSync();
  // The current working directory is changed to the sandbox directory here.
  // Do what ever you want
}
// The current working directory is changed back to the original directory here.

License

The code follows MIT license written in LICENSE. Contributors need to agree that any modifications sent in this repository follow the license.

About

🦕 Create a temporary sandbox directory and temporary move into it

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published