An open API service indexing awesome lists of open source software.

https://github.com/parkoon/dash-phonenumber

핸드폰 번호에 하이픈 추가
https://github.com/parkoon/dash-phonenumber

phone-number separator

Last synced: 5 months ago
JSON representation

핸드폰 번호에 하이픈 추가

Awesome Lists containing this project

README

          

# dash-phonenumber

핸드폰 번호에 하이픈 (-) 을 추가합니다.

## 설치하기

```
$ npm i dash-phonenumber
```

## 사용하기

```javascript
const dashPhoneNumber = require('./lib/dash-phonenumber').default

console.log(dashPhoneNumber('01033280917')) // Result: 010-3328-0917
console.log(dashPhoneNumber('01033280917', { separator: '. ' })) // Result: 010. 3328. 0917
```

## 옵션

| key | value | optional | description |
| --------- | ------ | ---------------- | ----------- |
| separator | String | O (default: '-') | 번호 구분자 |