npm.io
1.0.1 • Published 3 years ago

82utils

Licence
MIT
Version
1.0.1
Deps
0
Size
28 kB
Vulns
0
Weekly
0

82utils

OverView

82Utils is a library of utils functions.

The 82Utils package has created its own small but annoying features.

It's good for someone like this to use.

  • When the team needs to use the same Utils library
  • Small but necessary functions, but when you don't want to make them
  • When you need a variety of validation functions
  • When you need to make the regular expression you need
  • When time/date related functions and various formats are needed
  • when random functions are needed

Feature List


Installation

npm install 82utils

Useage

Validation
  • It is determined whether it is a business registration number.
import validation from '82utils';

const businessNum = '220-81-62517';
isValidBusinessNum(businessNum)
Date
  • convert to KSTString
  import date from '82utils';

  const date: Date = new Date('2023-11-24');
  toKSTString(date);
  • Calculate how many days are left
  import date from '82utils';

  const date = new Date('2023-11-30');
  const resultDate = new Date('2023-11-20');
  sub(date, { type: 'D', dec: 10});
format
  import format from '82utils';
  const phoneNumber: string = '01012344444';
  phoneNumberToString(phoneNumber);

mileStone

This releaseNote is function that will be added in the future for each version.

Contributin

Learn about contrigution Contribution

Waiting for various people's contribution!!!

Licence

MIT

Contact

eagle5424228@gmail.com

Keywords