Normally Palatable Mango

    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`
      }
    `

    Keywords

    none

    Install

    npm i tagged-if

    DownloadsWeekly Downloads

    5

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • isoden