Skip to content
This repository was archived by the owner on Mar 18, 2022. It is now read-only.

Latest commit

 

History

History
43 lines (32 loc) · 1.02 KB

File metadata and controls

43 lines (32 loc) · 1.02 KB

@spectera/tag-parser

An advanced tags system for slash commands

Archived

This repo has been moved to Monorepo

Description

Advanced slash tags system for Tagger

Features

  • Written in Typescript and bundled with Rollup.
  • Supports both ES modules and CommonJS.

Installation

yarn add @spectera/tag-parser
# or npm install @spectera/tag-parser
# or pnpm add @spectera/tag-parser

Usage

This is some basic usage of the tag parser.

const { TagParser } = require('@spectera/tag-parser');

const tagparser = new TagParser();
tagparser.parseResponse('Hello {{user}}!', { user: 'Spectera' });
// => 'Hello Spectera!'
import { TagParser } from '@spectera/tag-parser';

const tagparser = new TagParser();
tagparser.parseResponse('Hello {{user}}!', { user: 'Spectera' });
// => 'Hello Spectera!'

Much more to be completed in this readme