Skip to content

DeepDoge/sh-lite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sh-lite

A lightweight shell command runner for Deno.

#!/usr/bin/env -S deno run -A

import { sh } from "jsr:@nomadshiba/sh-lite";

const result = sh`fastfetch`;
// Log with colors and other ansi codes.
console.log(result.raw);

const prefix = `CPU: `;
const start = result.indexOf(prefix) + prefix.length;
console.log("CPU:", result.slice(start, result.indexOf("\n", start)).trim());

Docs

jsr.io/@nomadshiba/sh-lite/doc

About

A lightweight shell command runner for Deno.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published