UNPKG

@jswork/next-is-phone

Version:
36 lines (26 loc) 1.1 kB
# next-is-phone > Regexp for is phone. [![version][version-image]][version-url] [![license][license-image]][license-url] [![size][size-image]][size-url] [![download][download-image]][download-url] ## installation ```bash npm install -S @jswork/next-is-phone ``` ## usage ```js import '@jswork/next-is-phone'; nx.isPhone('13200000000'); // true nx.isPhone('4008008080'); // false ``` ## license Code released under [the MIT license](https://github.com/afeiship/next-is-phone/blob/master/LICENSE.txt). [version-image]: https://img.shields.io/npm/v/@jswork/next-is-phone [version-url]: https://npmjs.org/package/@jswork/next-is-phone [license-image]: https://img.shields.io/npm/l/@jswork/next-is-phone [license-url]: https://github.com/afeiship/next-is-phone/blob/master/LICENSE.txt [size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-is-phone [size-url]: https://github.com/afeiship/next-is-phone/blob/master/dist/next-is-phone.min.js [download-image]: https://img.shields.io/npm/dm/@jswork/next-is-phone [download-url]: https://www.npmjs.com/package/@jswork/next-is-phone