Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

@bbon/formatter

1.0.1 • Public • Published

@bbon/formatter

값을 형식화된 문자열로 처리하기 위한 기능을 제공합니다.

설치 Installation

$ npm install @bbon/formatter
$ yarn add @bbon/formatter

사용 Usage

Javascript

const { StringFormatter } = require('@bbon/formatter');
const formatter = new StringFormatter();
const numberValue = 1000;
const formattedValue = formatter.NumberWithDelimiter(numberValue);
 
console.info(formattedValue); // '1,000'

Typescript

import { StringFormatter } from '@bbon/formatter';
const formatter = new StringFormatter();
const numberValue = 1000;
const formattedValue = formatter.NumberWithDelimiter(numberValue);
 
console.info(formattedValue); // '1,000'

테스트

$ npm run test
$ yarn test

Install

npm i @bbon/formatter

DownloadsWeekly Downloads

4

Version

1.0.1

License

MIT

Unpacked Size

5.76 kB

Total Files

7

Last publish

Collaborators

  • avatar