Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@icreate/ics-chromely-plugin-core

Package Overview
Dependencies
Maintainers
4
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@icreate/ics-chromely-plugin-core

提供Ics Chromely Client核心本地操作插件js sdk,包含本地日志、主窗体控制、打开三方浏览器、打印机列表、硬件IP和Mac地址和注册表读写等

  • 0.0.3
  • npm
  • Socket score

Version published
Weekly downloads
7
decreased by-12.5%
Maintainers
4
Weekly downloads
 
Created
Source

Usage

npm i @icreate/ics-chromely-plugin-core

Features

  • LocalLogger:本地日志
  • BrowserHelper:浏览器帮助类
  • WindowHelper:主window帮助类
  • chromely:chromely对象
  • HardwareHelper:获取电脑Mac地址、Ip地址、主机名
  • PrinterHelper:打印机类
  • RegeditHelper:注册表类

Importing library

You can import the generated bundle to use the whole library generated by this starter:

import { LocalLogger, BrowserHelper, WindowHelper, Chromely } from '@icreate/ics-chromely-plugin-core'

LocalLogger

  level: LogLevels
  debug(logObject: any): Promise<any>
  info(logObject: any): Promise<any>
  warn(logObject: any): Promise<any>
  error(logObject: any): Promise<any>
  fatal(logObject: any): Promise<any>

BrowserHelper

  OpenChrome(url:string):void
  OpenIE(url:string):void
  OpenFireFox(url:string):void
  OpenDefault(url:string):void

WindowHelper

  Minimize(): void
  Maximize(): void
  Restore(): void
  Close(): void
  Restart(): void
  State(): Promise<String>

Chromely

  isChromely: boolean
  cefSharp: Object
  $on(eventName: string, callback: Function): void
  $off(eventName: string, callback: Function): void
  $emit(eventName: string): void

HardwareHelper

   // 获取本机Mac地址
  getMacAddress(): Promise<any>
  // 获取本机Ip地址
  getIpAddress(): Promise<any> 
  // 获取本机主机名
  getHostName(): Promise<any>

PrinterHelper

// 获取本地打印机列表
  getPrinterList(): Promise<any> 
  // 获取本地打印机列表
  getPrinterDefault(): Promise<any>
  // 判断指定打印机名称是否存在
  isPrinterExists(printerName: string): Promise<any> 

RegeditHelper


  // 获取指定的注册表键对应的值
  getRegeditValue(name: string): Promise<any> 
  // 设置注册表键值
  setRegeditValue(name: string, value: string): Promise<any> 

FAQs

Package last updated on 28 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc