Nighttime Pachinko Marathon

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

    1.0.3 • Public • Published

    Tickplate - Back-tick templates for JavaScript

    ci status codacy snyk npm version npm downloads/month npm downloads

    Usage

    • Install: npm install tickplate
    • Require: const t = require('tickplate');
    • Place tag t before templated string

    Examples:

    const t = require('tickplate');
    
    const data = {
      hello: 'Ave!',
      myFriend: {
        name: 'Marcus Aurelius',
        toString() {
          return this.name;
        },
      },
      positions: ['emperor', 'philosopher', 'writer'],
    };
    
    const templ = t`${'hello'} ${'myFriend'}, great ${'positions'} of Rome`;
    
    console.log(templ(data));

    License & Contributors

    Copyright (c) 2017-2021 Metarhia contributors. Tickplate is MIT licensed.
    Tickplate is a part of Metarhia technology stack.

    Install

    npm i tickplate

    Homepage

    metarhia.com

    DownloadsWeekly Downloads

    29

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    5.31 kB

    Total Files

    6

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar
    • avatar