Diplo is a Deno script runner made in rust.
You can download diplo from the releases tab or install it using cargo install diplo
After that you can run diplo init for a interactive setup.
or use diplo init -y for a one command setup
Adding a new dependency is as simple as running diplo add natico or whatever else you need

You can easily create scripts like you do with npm and yarn
if you want to run the script just do diplo run start to run the start script.
json
{
"scripts": {
"start": "deno run -A mod.ts",
"node": "node index.js"
}
}
If you add dependencies object to the diplo.json file diplo will automatically create a file called deps.ts inside the .diplo folder.
json
{
"dependencies": {
"natico": "https://deno.land/x/natico/mod.ts",
"server": "https://deno.land/std@0.110.0/http/server.ts"
}
}
updating dependencies is a as simple as running diplo update note this will only update deno.land/x/ packages
This only works on javascript and will cause type errors in typescript
js
import * as server from 'server';
--import-map="./.diplo/import_map.json after deno run.json
{
"import_map": true
}
Diplo can automatically add environment variables using the rust dotenv module instead of the deno based one
json
{
"load_env": true
}
json
{
"scripts": {
"test": "deno run -A mod.ts",
"build": "deno bundle a.ts"
},
"import_map": false,
"load_env": true,
"dependencies": {
"natico": "https://deno.land/x/natico/mod.ts"
}
}
You can support the project by donating to my xmr address 89prBkdG58KU15jv5LTbP3MgdJ2ikrcyu1vmdTKTGEVdhKRvbxgRN671jfFn3Uivk4Er1JXsc1xFZFbmFCGzVZNLPQeEwZc
This project is licensed under the terms of the Apache License 2.0