tel-format

1.0.7 • Public • Published

Tel Format

A small JavaScript function to automatically format telephone numbers as a user types in a phone number in a tel input field.

tel format example

DEMO

Install

npm install tel-format --save-dev

Use

Module

var telFormat = require('tel-format');
 
telFormat();

Browser

<script src="js/tel-format.min.js" type="text/javascript"></script>

Release History

  • 1.0.7: Add browser JavaScript file.
  • 1.0.6: Update example.
  • 1.0.5: Add screenshot.
  • 1.0.4: Add demo link.
  • 1.0.3: Update index.js.
  • 1.0.2: Add Gruntfile.
  • 1.0.1: Fix delete issues.
  • 1.0.0: Initial release.

Contributing

  1. Fork it
  2. Run npm install
  3. Run Grunt watch grunt watch
  4. Create your feature branch (git checkout -b my-new-feature)
  5. Commit your changes (git commit -am "Add some feature")
  6. Push to the branch (git push origin my-new-feature)
  7. Create new Pull Request

License

MIT © Ryan Burgess

Dependencies (0)

    Dev Dependencies (7)

    Package Sidebar

    Install

    npm i tel-format

    Weekly Downloads

    17

    Version

    1.0.7

    License

    MIT

    Last publish

    Collaborators

    • ryanburgess