{"id":15686855,"url":"https://github.com/lambdalisue/deno-sandbox","last_synced_at":"2025-05-07T21:44:42.690Z","repository":{"id":46578972,"uuid":"381138037","full_name":"lambdalisue/deno-sandbox","owner":"lambdalisue","description":"🦕 Create a temporary sandbox directory and temporary move into it","archived":false,"fork":false,"pushed_at":"2024-09-26T06:51:18.000Z","size":53,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-15T02:49:33.372Z","etag":null,"topics":["deno","sandbox","temporary"],"latest_commit_sha":null,"homepage":"https://jsr.io/@lambdalisue/sandbox","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lambdalisue.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"lambdalisue"}},"created_at":"2021-06-28T19:17:01.000Z","updated_at":"2024-09-26T06:50:58.000Z","dependencies_parsed_at":"2023-02-18T01:45:28.794Z","dependency_job_id":"38b727ee-2382-4af0-8210-fb20c08889f1","html_url":"https://github.com/lambdalisue/deno-sandbox","commit_stats":{"total_commits":18,"total_committers":4,"mean_commits":4.5,"dds":0.5555555555555556,"last_synced_commit":"445ff9bb49edc27a77e7881c86b756eabc23c4e0"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lambdalisue%2Fdeno-sandbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lambdalisue%2Fdeno-sandbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lambdalisue%2Fdeno-sandbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lambdalisue%2Fdeno-sandbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lambdalisue","download_url":"https://codeload.github.com/lambdalisue/deno-sandbox/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252961835,"owners_count":21832190,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deno","sandbox","temporary"],"created_at":"2024-10-03T17:41:36.126Z","updated_at":"2025-05-07T21:44:42.663Z","avatar_url":"https://github.com/lambdalisue.png","language":"TypeScript","funding_links":["https://github.com/sponsors/lambdalisue"],"categories":[],"sub_categories":[],"readme":"# sandbox\n\n[![JSR](https://jsr.io/badges/@lambdalisue/sandbox)](https://jsr.io/@lambdalisue/sandbox)\n[![Test](https://github.com/lambdalisue/deno-sandbox/actions/workflows/test.yml/badge.svg)](https://github.com/lambdalisue/deno-sandbox/actions/workflows/test.yml)\n[![codecov](https://codecov.io/gh/lambdalisue/deno-sandbox/graph/badge.svg?token=AEZJlup3Et)](https://codecov.io/gh/lambdalisue/deno-sandbox)\n\nThis module provides `sandbox()` and `sandboxSync()` function to create a\ntemporary sandbox directory and temporary move into it.\n\n## Usage\n\n```ts\nimport { sandbox, sandboxSync } from \"@lambdalisue/sandbox\";\n\n{\n  await using sbox = await sandbox();\n  // The current working directory is changed to the sandbox directory here.\n  // Do what ever you want\n}\n// The current working directory is changed back to the original directory here.\n\n{\n  using sbox = sandboxSync();\n  // The current working directory is changed to the sandbox directory here.\n  // Do what ever you want\n}\n// The current working directory is changed back to the original directory here.\n```\n\n## License\n\nThe code follows MIT license written in [LICENSE](./LICENSE). Contributors need\nto agree that any modifications sent in this repository follow the license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flambdalisue%2Fdeno-sandbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flambdalisue%2Fdeno-sandbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flambdalisue%2Fdeno-sandbox/lists"}