Repository
Current version released
11 months ago
Versions
- v1.0.0-rc.106Latest
- v1.0.0-rc.105
- v1.0.0-rc.104
- v1.0.0-rc.103
- v1.0.0-rc.102
- v1.0.0-rc.101
- v1.0.0-rc.100
- v1.0.0-rc.99
- v1.0.0-rc.98
- v1.0.0-rc.97
- v1.0.0-rc.96
- v1.0.0-rc.95
- v1.0.0-rc.94
- v1.0.0-rc.93
- v1.0.0-rc.92
- v1.0.0-rc.91
- v1.0.0-rc.90
- v1.0.0-rc.88
- v1.0.0-rc.87
- v1.0.0-rc.81
- v1.0.0-rc.80
- v1.0.0-rc.79
- v1.0.0-rc.78
- v1.0.0-rc.77
- v1.0.0-rc.76
- v1.0.0-rc.75
- v1.0.0-rc.74
- v1.0.0-rc.73
- v1.0.0-rc.72
- v1.0.0-rc.71
- v1.0.0-rc.70
- v1.0.0-rc.69
- v1.0.0-rc.68
- v1.0.0-rc.67
- v1.0.0-rc.66
- v1.0.0-rc.65
- v1.0.0-rc.64
- v1.0.0-rc.63
- v1.0.0-rc.62
- v1.0.0-rc.61
- v1.0.0-rc.60
- v1.0.0-rc.59
- v1.0.0-rc.58
- v1.0.0-rc.57
- v1.0.0-rc.56
- v1.0.0-rc.55
- v1.0.0-rc.54
- v1.0.0-rc.53
- v1.0.0-rc.52
- v1.0.0-rc.51
- v1.0.0-rc.50
- v1.0.0-rc.49
- v1.0.0-rc.48
- v1.0.0-rc.47
- v1.0.0-rc.46
- v1.0.0-rc.37
- v1.0.0-exp2
- v1.0.0-exp1
- v1.0.0-rc.25
- v1.0.0-rc.24
- v1.0.0-rc.23
- v1.0.0-rc.22
- v1.0.0-rc.21
- v1.0.0-rc.20
- v1.0.0-rc.19
- v1.0.0-rc.18
- v1.0.0-rc.17
- v1.0.0-rc.16
- v1.0.0-rc.14
- v1.0.0-rc.13
- v1.0.0-rc.12
- v1.0.0-rc.11
- v1.0.0-rc.10
- v1.0.0-rc.8
- v1.0.0-rc.6
- v1.0.0-rc.5
- v1.0.0-rc.4
- v1.0.0-rc.3
- v1.0.0-rc.2
- v0.9.26
- v0.9.25
- v0.9.24
- v0.9.23
- v1.0.0-rc.1
- v0.9.22
- v0.9.21
Sunbeam Deno SDK
Type Validation for Sunbeam Scripts
import * as sunbeam from "https://deno.land/x/sunbeam/mod.ts";
if (Deno.args.length === 0) {
const manifest: sunbeam.Manifest = {...}
console.log(manifest);
Deno.exit(0);
}
const payload: sunbeam.Payload = JSON.parse(Deno.args[0]);
if (payload.command = "show") {
const list: sunbeam.List = {...}
console.log(JSON.stringify(list));
}
Helper Functions
import { editor } from "https://deno.land/x/sunbeam/editor.ts";
// ...
if (payload.command === "edit") {
// open an editor and wait for the user to save and exit
const edited = await editor(payload.text);
}