🍣 Itsudeno (Coming soon!)
A scriptable IT automation system written in TypeScript and powered by Deno. It can be used to easily deploy and configure applications, services and networks on hosts.
🍣 Itsudeno (Coming soon!)
A scriptable IT automation system written in TypeScript and powered by Deno. It can be used to easily deploy and configure applications, services and networks on hosts.
| /* Copyright 2021 lowlighter. See https://github.com/lowlighter/deno-template | |
| * This is a polyfill to make github/licensed works with deno and lets lowlighter/metrics generates licenses svg | |
| */ | |
| //Loads deno info | |
| const deps = await Promise.all([...new Set<string>(JSON.parse(new TextDecoder().decode(await Deno.run({cmd:["/root/.deno/bin/vr", "info"], stdout:"piped"}).output())).modules | |
| //Get specifier, transform it to url, filter out local deps and extract dependency name | |
| .map(({specifier}:{specifier:string}) => new URL(specifier)) | |
| .filter((url:URL) => url.origin !== "null") | |
| .map((url:URL) => `${url.origin}${url.pathname.match(/^(?<name>[/][\s\S]+@v?\d+[.]\d+[.]\d+[/])/)?.groups?.name}`))] | |
| //Fetch licenses |