str_utils
TypeScript icon, indicating that this package has built-in type declarations

1.2.4 • Public • Published

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));

Package Sidebar

Install

npm i str_utils

Weekly Downloads

22

Version

1.2.4

License

MIT

Unpacked Size

22.5 kB

Total Files

9

Last publish

Collaborators

  • vpfautz