Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/svenheden/swedish-phone-number-formatter
Swedish phone number formatter
https://github.com/svenheden/swedish-phone-number-formatter
Last synced: 2 months ago
JSON representation
Swedish phone number formatter
- Host: GitHub
- URL: https://github.com/svenheden/swedish-phone-number-formatter
- Owner: svenheden
- License: mit
- Created: 2016-12-08T18:35:08.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-03-24T10:03:13.000Z (almost 3 years ago)
- Last Synced: 2024-11-01T17:42:45.306Z (3 months ago)
- Language: JavaScript
- Size: 22.5 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-sweden - JavaScript
README
# Swedish phone number formatter
Format swedish phone numbers according to the specification at and
![Tests][tests-badge]
[![NPM version][npm-image]][npm-url]## Install
```
$ npm install --save swedish-phone-number-formatter
```## Usage
```js
const format = require("swedish-phone-number-formatter");format("031123456"); // => '031-12 34 56'
```## License
MIT © [Jonathan Svenheden](https://github.com/svenheden)
[npm-url]: https://npmjs.org/package/swedish-phone-number-formatter
[npm-image]: https://badge.fury.io/js/swedish-phone-number-formatter.svg
[tests-badge]: https://github.com/svenheden/swedish-phone-number-formatter/workflows/Tests/badge.svg