1.0.4 • Published 4 years ago

@darkwolf/text v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

Text

Install

npm i --save @darkwolf/text

Using

⚠️ Requires Node.js v12.x LTS or higher to use!

import Text from '@darkwolf/text'

const text = new Text('Ave, @{username}!')
text.template({username: 'PavelWolfDark'}) // 'Ave, @PavelWolfDark!'
text.insert({username: 'PavelWolfDark'}).value // 'Ave, @PavelWolfDark!'
const other = text
  .clone()
  .newLine()
  .add('WFC: {wallet.wfc}')
  .insert({
    wallet: {
      wfc: '1.00000001'
    }
  })
text.value // 'Ave, @PavelWolfDark!'
other.value // 'Ave, @PavelWolfDark!\nWFC: 1.00000001'
const template = `${new Text('Ave, Darkwolf!').newLine()}${other}` // 'Ave, Darkwolf!\nAve, @PavelWolfDark!\nWFC: 1.00000001'

API Documentation

Donate

You can contribute to the development of open source projects by making your donation 🐺

Bitcoin (BTC): 15sjjAUtJdB1ncsxKK7KtyJPtF46UhXWo4

Ethereum (ETH): 0xF02F68eb33E9eC73b8E9c3c0953E6782E2376867

Bitcoin Cash (BCH): qq6h3a78h3wlt04eyp9ydht94r6guzjdps9hqwgfzw

Contact Me

GitHub: @PavelWolfDark

Telegram: @PavelWolfDark

Email: PavelWolfDark@gmail.com

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago