npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@electron-ohos/electron-tools

v1.0.0

Published

provide openharmony electron tools

Downloads

29

Readme

@electron-ohos/electron-tools

一、简介

该npm包提供一系列electron项目适配鸿蒙系统的辅助工具。

二、工具简介

1. electron.d.ts同步工具

  • 背景

当前鸿蒙版electron项目的开发现状是,在windows或mac系统上进行鸿蒙版electron项目的开发。官方并未提供鸿蒙适配版的electron,这导致在非鸿蒙系统上进行开发时,安装的electron包(实际非鸿蒙适配版electron包)并不包含鸿蒙独有的electron接口,如果使用鸿蒙独有的接口,会导致编译报错。

  • 介绍

该工具提供鸿蒙适配版的electron.d.ts文件,可以实现根据项目的实际版本,替换掉原有electron包中的electron.d.ts文件,保证使用鸿蒙独有接口的electron项目编译正常。

  • 使用方式

    • 安装:npm i @electron-ohos/electron-tools
    • 配置:在钩子函数postinstall中配置electron-sync,postinstall是node项目的钩子函数,会在项目执行npm install之后自动执行,这样同步工具就会在安装完所有的依赖包之后,自动替换electron.d.ts文件。
    "scripts": {
      "postinstall": "electron-sync"
    },