@darkwolf/text.mjs

1.0.3 • Public • Published

Text

Install

ECMAScript (Node.js v12.x LTS or higher)

npm i --save @darkwolf/text.mjs

CommonJS (Node.js v10.x LTS or higher)

npm i --save @darkwolf/text.cjs

Using

// ECMAScript
import Text from '@darkwolf/text.mjs'
// CommonJS
const Text = require('@darkwolf/text.cjs')

const text = new Text('Ave, Darkwolf!')
  .newLine()
  .add('Ave, @{username}!')
  .template({username: 'PavelWolfDark'})
  .newLine()
  .add('WFC: {wallet.balance}')
  .template({
    wallet: {
      balance: '1.00000001'
    }
  })
text.value // () => 'Ave, Darkwolf!\nAve, @PavelWolfDark!\nWFC: 1.00000001'

API Documentation

Contact Me

GitHub: @PavelWolfDark

Telegram: @PavelWolfDark

Email: PavelWolfDark@gmail.com

Package Sidebar

Install

npm i @darkwolf/text.mjs

Weekly Downloads

2

Version

1.0.3

License

MIT

Unpacked Size

8.38 kB

Total Files

4

Last publish

Collaborators

  • pavelwolfdark