'use strict'

var Input = require('base-input')
var phone = require('phones')

module.exports = Input({
  parse: phone.parse,
  format: format,
  validate: phone.validate,
  options: {
    type: 'tel',
    name: 'phone'
  }
})

function format (value, options) {
  phone.format(value, options.separator)
}

'use strict'

var Input = require('base-input')
var phone = require('phones')

module.exports = Input({
  parse: phone.parse,
  format: phone.format,
  validate: phone.validate,
  options: {
    type: 'tel',
    name: 'phone'
  }
})

--- 
+++ 
@@ -5,10 +5,14 @@
 
 module.exports = Input({
   parse: phone.parse,
-  format: phone.format,
+  format: format,
   validate: phone.validate,
   options: {
     type: 'tel',
     name: 'phone'
   }
 })
+
+function format (value, options) {
+  phone.format(value, options.separator)
+}
Prepare for input functions to receive options
