mac_formatter
mac address formater
Last updated 5 years ago by koichidino .
ISC · Original npm · Tarball · package.json
$ cnpm install mac_formatter 
SYNC missed versions from official npm registry.

mac_formatter

Convert string to mac address format.

For example:

AABBCCDDEEFF will be convert to AA:BB:CC:DD:EE:FF

Usage


var mac_formatter = require('mac_formatter');

var originalStr = 'AABBCCDDEEFF';

var options = {
  convertCase: 'l'  // 'l' to Lowercase, 'u' to Uppercase
};

var macAddress = mac_formatter(originalStr, options); // aa:bb:cc:dd:ee:ff

Current Tags

  • 0.0.1                                ...           latest (5 years ago)

1 Versions

  • 0.0.1                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |