https://github.com/justinmchase/deno-scripts
Automated installation and execution of locally scoped scripts
https://github.com/justinmchase/deno-scripts
deno
Last synced: 4 months ago
JSON representation
Automated installation and execution of locally scoped scripts
- Host: GitHub
- URL: https://github.com/justinmchase/deno-scripts
- Owner: justinmchase
- Created: 2021-07-11T01:33:55.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-11-14T14:01:31.000Z (over 4 years ago)
- Last Synced: 2025-10-28T09:54:56.415Z (8 months ago)
- Topics: deno
- Language: TypeScript
- Homepage:
- Size: 24.4 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Deno Scripts 🦕
Automated installation and execution of locally scoped scripts
# Installation
```sh
deno install \
--unstable \
--allow-read --allow-env --allow-run --allow-write \
-n script \
https://deno.land/x/scripts/script.ts
```
# Usage
Create a scripts.json file in your root directory
```sh
script init
```
Add some scripts to the file
```json
{
"scripts": {
"hello": "https://deno.land/x/scripts/examples/hello.ts",
"version": {
"url": "https://deno.land/x/version/index.ts",
"permissions": [
"allow-read",
"allow-write",
"allow-run"
],
"args": []
}
}
}
```
Install the scripts
```sh
script install
```
Run a script
```sh
script run hello
script run version init 0.1.0
```