@xpute/xpute
v0.0.2
Published
xpute
Readme
@xpute/xpute
printf/sprintf-like formatter.
Install
jsr
deno add @xpute/xputenpm
npm i @xpute/xputeUsage
import { printf, sprintf } from "@xpute/xpute";
printf("hello %s %d\n", "xpute", 123);
let s = sprintf("0x%08x\n", 0x1234);Notes
- Portable subset, not a full C
printf. - Supports:
%d %i %u %x %X %o %b %s %c %f %e %g %p %% - Flags:
- + 0 # (space), width, precision.
