'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'
  }
})

'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)
}

Prepare for input functions to receive options
Prepare for input functions to receive options
