format your number in html ( for form coming soon )
Install s-mask.js with npm
npm install s-mask.js --save
in file app.js
require('s-mask.js');
in file index.html
<body>
...
<script src="path/app.js"></script>
</body>
Usage :
<p s-mask="(###)-###-####">0123456789</p>
//(012)-345-6789
Here are some related projects