electron-egg electron-egg
首页
  • v4.x
  • v3.x
  • v2.x
插件
  • v4.x
  • v3.x
demo
支持
知识点
案例
交流
  • GitHub (opens new window)
  • Gitee (opens new window)
首页
  • v4.x
  • v3.x
  • v2.x
插件
  • v4.x
  • v3.x
demo
支持
知识点
案例
交流
  • GitHub (opens new window)
  • Gitee (opens new window)
❤️成为赞助商
  • 教程

  • ee-bin

  • ee-core

    • addon

      • 插件模块
      • window
    • bin
    • config
    • const
    • const/channel
    • controller
    • core
    • cross
    • ee
    • electron
    • electron/app
    • electron/window
    • exception
    • httpclient
    • jobs
    • jobs/ChildJob
    • jobs/ChildPoolJob
    • loader
    • log
    • message
    • message/childMessage
    • ps
    • services
    • socket
    • storage
    • storage/jsondb
    • storage/sqlite
    • tools
    • this-app

    • utils
      • utils/helper
      • utils/is
      • utils/json
      • utils/time
      • utils/ip
      • utils/get-port
      • oldUtils
    • ee-go

    目录

    utils

    ee-core:v2.0.3

    # 介绍

    工具库模块。

    # 使用方法

    const Utils = require('ee-core/utils');
    

    # API列表

    # getPackage()

    获取项目根目录package.json内容。

    # getMAC(iface)

    ee-core:v2.1.0

    • iface [String] - 如果提供,则将MAC地址提取限制到此接口

    获取一个正确的MAC地址

    # isMAC(macAddress)

    ee-core:v2.1.0

    • macAddress [String] - mac address

    是否为有效的Mac地址

    # machineId()

    ee-core:v2.1.1

    • original [Boolean] - If true return original value of machine id, otherwise return hashed value (sha-256), default: false

    (异步)获取 machine id,返回 Promise 对象。

    # machineIdSync()

    ee-core:v2.1.1

    • original [Boolean] - If true return original value of machine id, otherwise return hashed value (sha-256), default: false

    (同步)获取 machine id。

    上次更新: 2025/06/06, 07:21:49
    service
    utils/helper

    ← service utils/helper→

    Theme by Vdoing | Copyright © 2023-2025 哆啦好梦 | 京ICP备15041380号-2
    • 跟随系统
    • 浅色模式
    • 深色模式
    • 阅读模式
    ×