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 🙏

© 2024 – Pkg Stats / Ryan Hefner

wll-dalitek-registry

v1.0.9

Published

dalitek electron registry

Downloads

10

Readme

版本

1.0.6

在node 环境中不能import引入,改为require引入

1.0.7

修复注册码验证不通过

1.0.8

打包后异常

1.0.9

打包后异常

用法

import WRegistry from 'wll-dalitek-registry' 或者 const WRegistry = require('wll-dalitek-registry')

const wRegistryCode = new WRegistry('DALITEKWLC', 'lds')

注意

'DALITEKWLC' 值存入注册表的文件名称 必填

'lds' 本软件的简称 保持和注册机一致,否则验证不过 必填

支持的方法有

注意所有的方法都是异步方法 需要似如下方法同步调用,异步的参考Promise .then(()=>{})

    1. getRegister 获取注册机里的信息

      let initApp = async () => {
            // 获取是否注册过
            await delRegister()
            let info = await wRegistryCode.getRegister()
            /**
              * info 注册状态
              * info.state 注册状态true已经注册false未注册
              * info.code 本地生成注册码
              * info.year 注册年限1、2、3、100永久注册
              * info.surt 注册剩余时间(距离截止)day: 剩余天数, hour: 剩余小时, min: 剩余分数, afterMin: 剩余秒
              */
      }

    2. writeRegister 验证注册码是否正确 

      let inspectCode = async code => {
            let result = await wRegistryCode.writeRegister(code)
            if (result !== 'err') {
              // 注册码正确则写入注册表
              result = await wRegistryCode.createRegistryKey(result)
            }
            return result
      } 

    3. delRegister 删除注册信息

      let delRegister = async () => {
            let result = await wRegistryCode.delRegister()
            return result
      } 

    4. createRegistryKey向注册表添加注册信息

      let createRegistryKey = async code => {
            let result = await wRegistryCode.createRegistryKey(code)
            return result
      }