Need private packages and team management tools?Check out npm Teams »

@b4dnewz/string-template

0.0.1 • Public • Published

string-template

A utility to format strings with many options

NPM version Build Status Coverage percentage

Getting started

Download it using your favourite package manager.

npm i @b4dnewz/string-template

Then import it in your code and have fun formatting strings.

import template from "@b4dnewz/string-template";
 
const str = `
    That's an awfully hot {item},
    did {person} kill himself?
    Probably {answer}.
`;
 
template(str, {
    item: "coffee pot",
    person: "Jeffrey Epstein",
    answer: "not"
});

License

This package is released under MIT License © Filippo Conti

Install

npm i @b4dnewz/string-template

DownloadsWeekly Downloads

3

Version

0.0.1

License

MIT

Unpacked Size

6.17 kB

Total Files

5

Last publish

Collaborators

  • avatar