str_utils
v1.2.4
Published
Some functions to format strings like in python.
Downloads
47
Maintainers
Readme
str_utils
Some functions to format strings like in python.
Usage
npm install str_utils
Build & Test
npm run build
npm run test
Example
With TypeScript:
import { fmt } from "str_utils";
console.log(fmt("%5d", 1));
With JavaScript:
const { fmt } = require("str_utils");
console.log(fmt("%5d", 1));