From cbccd349b3c5d855aeaec56d21ecd2e1fb88f715 Mon Sep 17 00:00:00 2001 From: "Ralf S. Engelschall" Date: Fri, 22 Dec 2017 12:19:53 +0100 Subject: [PATCH] support FreeBSD without a warning and fix a typo in the warning message --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index f3225f8..e313dae 100644 --- a/index.js +++ b/index.js @@ -65,11 +65,12 @@ switch (os.platform()) { case 'darwin': case 'sunos': + case 'freebsd': _getMacAddress = require('./lib/unix.js'); break; default: - console.warn("node-macaddress: Unkown os.platform(), defaulting to `unix'."); + console.warn("node-macaddress: Unknown os.platform(), defaulting to `unix'."); _getMacAddress = require('./lib/unix.js'); break;