21.13.7 • Published 4 years ago

@darkwolf/helper v21.13.7

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

Helper

Install

npm i --save @darkwolf/helper

Using

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

import Helper from '@darkwolf/helper'

const obj = {
  ave: {
    darkwolf: {
      arr: [2, 4, 8, 16, 32, 64, 128, 256, 512, 1024]
    }
  }
}
Helper.get(obj, 'ave.darkwolf') // {arr: [2, 4, 8, 16, 32, 64, 128, 256, 512, 1024]}
Helper.get(obj, ['ave', 'darkwolf', 'arr', '[-1]']) // 1024
Helper.get(obj, ['ave.darkwolf.arr[-11]']) // 2
Helper.set(obj, 'ave.darkwolf', 'Ave, Darkwolf!') // 'Ave, Darkwolf!'
obj.ave.darkwolf // 'Ave, Darkwolf!'
Helper.template('Ave, @{username}!', {
  username: 'PavelWolfDark'
}) // 'Ave, @PavelWolfDark!'
Helper.template('WFC: {wallet.balance}', {
  wallet: {
    balance: '1.00000001'
  }
}) // 'WFC: 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

21.13.7

4 years ago

21.13.6

4 years ago

21.13.5

4 years ago

21.13.4

4 years ago

21.13.3

4 years ago

21.13.2

4 years ago

21.13.1

4 years ago

21.13.0

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.9

4 years ago

1.1.8

4 years ago

1.1.7

4 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago