phone-input is available as an npm package:
npm install @larmbox/phone-input
phone-input can also be imported directly in the browser:
<!-- local -->
<script src="dist/index.browser.min.js"></script>
<!-- jsdelivr.net -->
<script src="https://cdn.jsdelivr.net/npm/@larmbox/phone-input/dist/index.browser.min.js"></script>
<input id="example" />
<script>
const element = document.getElementById('example');
phoneInput.attach(element);
</script>
Please refer to the Larmbox Open Source Community Guidelines.
This project is licensed under the terms of the MIT license.