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

0.1.4 • Public • Published

nabo

🧵 It's just string interpolation.

npm badge License badge

FeaturesInstallUsage

Showcases package's TypeScript inference on string literals

Features

  • TypeScript inference for string literals
  • Supports nested objects
  • Supports CJS and ESM
  • No dependencies
  • 2 kb in size

Install

npm install nabo

Usage

import { nabo } from "nabo";

nabo(
    `There are {personCount} people.
     The first person is called {firstPerson.name}.
     The second person is called {secondPerson.name}.`,
    {
        personCount: "two",
        firstPerson: { name: "John Doe" },
        secondPerson: { name: "Jane Doe" },
    }
);

Package Sidebar

Install

npm i nabo

Weekly Downloads

1

Version

0.1.4

License

MIT

Unpacked Size

7.93 kB

Total Files

7

Last publish

Collaborators

  • emiliobarradas