is-mac-address
Check if provided string is valid mac address
Installation
Install with npm:
$ npm install is-mac-address --save
Usage
var MAC_ADDRESS = MAC_ADDRESS// => false MAC_ADDRESS// => true MAC_ADDRESS// => throws TypeError
Clone the repo
$ git clone https://github.com/luthraG/is-mac-address.git
API
isMACAddress(str)
Given a mac address this API checks if it is valid mac address or not
It throws
- TypeError if str is not provided or if provided but not of type String
Example
var MAC_ADDRESS = MAC_ADDRESS// => false MAC_ADDRESS// => true MAC_ADDRESS// => throws TypeError
Author
Gaurav Luthra
License
MIT © Gaurav Luthra