/formatter-test

Formatter is a tool that allows you to create complex template strings

Primary LanguageTypeScript

✂️ ✨ Formatter

Formatter is a tool that allows you to create complex template strings

  // --> `Hello, world!`
  format("Hello, {name}!", { name: "world" }
  // --> `Hello, John Smith`
  format("Hello, {user.name.first} {user.name.last}!", {
    user: { name: { first: "John", last: "Smith" } },
  })

Build with

Typescript Jest Node.js Yarn

Scripts:

Install Dependencies:

  yarn install

Development:

  yarn dev

Run tests:

  yarn test