printj/types/printj-test.ts

5 lines
142 B
TypeScript
Raw Normal View History

import { vsprintf, sprintf } from 'printj';
const t1: string = sprintf("%02hhx", 123);
const t2: string = vsprintf("%02hhx %d", [123, 213]);