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

@ohos/hpm-cli

v1.6.13

Published

CLI for HarmonyOS package manager

Downloads

358

Readme

简体中文 | English

hpm-cli

The HarmonyOS Package Manager command line interface.

How to install it?

Install this globally and you'll have access to the hpm command anywhere on your system. The hpm-cli only support versions >=14.x of nodejs.

npm install -g @ohos/hpm-cli

How to use it?

List all available commands using:

hpm help

Update to the latest version

npm update -g @ohos/hpm-cli

How to uninstall it?

npm rm -g @ohos/hpm-cli

Configuration

The config file is located at ~/.hpm/hpmrc, List default configurations using:

hpm config

Set the configuration using:

hpm config set key value

The config file is as follows:

registry = https://repo.harmonyos.com

### login Settings
# loginUser = invitation_code

#### Path Settings
# shellPath = C:\WINDOWS\System32\cmd.exe
# globalRepo = C:\Users\username\.hpm\global

#### Network Settings
# no_proxy = *.server.com
# http_proxy = http://user:pwd@proxy_server:port
# https_proxy = http://user:pwd@proxy_server:port
# strictSsl = true

#### Other Settings
# privateSupport = true|false
# ignoreBundles = @ohos/llvm,@ohos/gn,
# OSPlatform = Auto|linux|darwin|win32
# restoreCodeSegment = true|false

What's new

1.6.13

功能

  • New support for binary unit build

优化

  • Optimize existing component caching strategies
  • Optimize packaging functionality

1.6.12

功能

  • New support for compilation and dot function to count command execution times
  • New support for binary package os field ohos type

1.6.11

优化

  • Optimize Resolve bundle download efficiency,and support batch query and parsing
  • Optimize build logs

1.6.10

功能

  • New support for test build name

优化

  • Optimize hb build process log

1.6.6

修复

  • Resolve the issue of download blocking that current bundle dependencies the same of build bundle

1.6.5

优化

  • Optimize and solve infinite recursion download
  • init source bundle name,Unified '-' replace with '_'.

1.6.4

功能

  • New support for multiple repo build
  • New support for test build

优化

  • Part dependencies's dependencies analyzing

1.6.0

功能

  • New support for adding input to the hb command set, such as hb build, hb install, hb publish, etc
  • New support added independent compilation of components
  • New support added binary component release
  • add addonplugin template
  • add command hpm download progress show
  • add command hpm docker for support run Docker images

优化

  • stream pipeline API nodejs version compatibility
  • command hpm config list output log optimized

1.5.0

优化

  • stored the http_proxy and https_proxy configuations in ciphertext when exec the command hpm config set http_proxy|https_proxy
  • add some options for hpm search
    • -b,--board: Search by the type of board, such as 'hispark_pegasus', 'v200zr', 'gr5515_sk'
    • -k,--kernel: Search by the type of kernel, such as 'liteos-m', 'linux'
    • -os,--osVersion: Search by the os version, such as '3.0', '3.1'

1.4.5

FEATURES

  • add pulishType chip-defintion

FIXED

  • remove tempdir when install bundle
  • add action for hpm config
    • hpm config list: list all configurations in the .hpmrc
    • hpm config get : get value for the Specify key

1.4.1

FEATURES

  • supports snapshot bundle.

FIXED

  • update dependencies

1.4.0

FEATURES

  • add hpm ui plugin support :desginer
  • add hpm ui plugin support :search
  • add hpm ui plugin support :explore

1.3.0

FEATURES

  • update hpm ui plugin: configurator

FIXED

  • impoved performance

1.2.6

FEATURES

  • add command 'fetch' for download tools
  • add command 'download' for download a bundle by name
  • add command 'code' for code-segment restore|clean
  • add configuration item 'ignoreBundles'
  • add configuration item 'OSPlatform'
  • add configuration item 'batchDownloadLimit'
  • add plugins store (UI)

FIXED

  • improved command 'install'

1.2.0

FEATURES

  • add hpm ui plugin support :configurator
  • add private package support

1.1.0

FEATURES

  • support hpm ui