This package has been deprecated

Author message:

this package will be removed.

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

1.0.0 • Public • Published

tagged-if

Installation

$ npm install tagged-if

Example

// without tagged-if
const example1 = `
  ${
    (() => {
      if (condition) {
        return `then block string`
      } else {
        return `else block string`
      }
    })()
  }
`

// with tagged-if
import { If } from 'tagged-if'
const example2 = `
  ${
    If(condition)`then block string`
    .Else`else block string`
  }
`

Dependencies (0)

    Dev Dependencies (6)

    Package Sidebar

    Install

    npm i tagged-if

    Weekly Downloads

    0

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • isoden