JSPM

@b4dnewz/string-template

0.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q10088F
  • License MIT

A utility to format strings with many options

Package Exports

  • @b4dnewz/string-template

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@b4dnewz/string-template) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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