Detalhes do pacote

getmymac

SHEIN-WMS-FE18MIT3.0.10

fork from getmac

mac, mac-address, ifconfig, ipconfig

readme (leia-me)

getmymac

fork from getmac@3.0.1


只能运行在nodejs

Installation


    $ npm install --dev append-commit-message

Or

    $ yarn add --dev append-commit-message

Usage


    const { getMAC } = require('getmymac);

    const mac = await getMAC();

Publish


    yarn run our:compile
    yarn publish

LICENSE


MIT

changelog (log de mudanças)

History

v3.0.10 2020 October 8

  • 修复了windows中getmac.exe失败时的处理

v3.0.2 2020 September 15

  • 优化了windows里获取mac

v3.0.1 2019 November 18

  • Better handling of errors with the getmac-node binary

v3.0.0 2019 November 18

  • getMac renamed to getMAC and has the function signature (iface?: string) => Promise<string>
  • extractMAC is now exported, if you already have the MAC interfaces string, with the signature (input: string, iface?: string) => string
  • isMac renamed to isMAC
  • Converted to TypeScript
  • Updated dependencies, base files, and editions using boundation

v2.0.0 2019 November 18

  • Updated dependencies, base files, and editions using boundation
  • Minimum required node version changed from node: >=0.10 to node: >=8 to keep up with mandatory ecosystem changes

v1.5.0 2019 November 13

v1.4.6 2018 September 3

v1.4.5 2018 August 24

  • Updated dependencies

v1.4.4 2018 August 19

  • Minimum supported node version is now 0.10
  • Updated base files and editions using boundation

v1.4.3 2018 June 7

v1.4.2 2018 June 6

v1.4.1 2018 March 28

v1.4.0 2018 January 25

  • Now compiled with CoffeeScript v2
  • Now uses editions to use the ESNext compiled edition for environments that support it, otherwise use the ES2015 compiled edition
  • Updated base files

v1.3.0 2018 January 25

v1.2.1 2016 May 10

v1.1.0 2016 May 10

  • Updated dependencies
  • Repackaged

v1.0.7 2015 March 5

  • Added fix for iproute2 commands in absence of ifconfig on Linux machines

v1.0.6 2013 October 27

  • Repackaged

v1.0.5 2013 September 2

  • Will now ignore zero-filled mac addresses and error if none are found - Thanks to Uwe Klawitter for issue #1
  • Can now pass an optional object as the first argument to getmac that can contain data as a String to scan instead of executing the appropriate command to fetch the data
  • Dependency updates

v1.0.4 2013 February 12

  • Better compatibility with linux distros

v1.0.3 2013 February 12

  • Minor optimisation

v1.0.2 2013 February 12

  • Fixed windows support, turns out they format mac addresses differently

v1.0.1 2013 February 12

  • Renamed getmac executable to getmac-node to avoid conflict on windows

v1.0.0 2013 February 12

  • Initial working commit