Registry / devops / heroui-pro

heroui-pro

JSON →
library1.0.0-beta.4jsnpmunverified

HeroUI CLI (v1.0.0-beta.4) is a beta release providing shared authentication, cache management, and CDN logic for HeroUI ecosystem. Released by JetBridge as a companion CLI tool, it offers unified command-line interfaces for auth token refresh, cache flushing, and CDN asset management. Currently unstable (pre-1.0), with breaking changes likely between betas. Differentiator: integrated CLI for HeroUI's proprietary CDN and auth services.

npm install heroui-pro
INSTALL
IMPORT
SIG · HEROUI-PRO
H
heroui-pro
devopsjavascriptv1.0.0-beta.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

login
import { login } from 'heroui-pro'
const { login } = require('heroui-pro')
ESM-only package; use dynamic import() if needed in CommonJS.
cache
import { cache } from 'heroui-pro'
import cache from 'heroui-pro'
Named export, not default.
cdnupload
import { cdnupload } from 'heroui-pro'
import { CDN } from 'heroui-pro'
Export name is camelCase, not uppercase.

Shows login with env credentials and cache flush using the HeroUI CLI library.

import { login, cache } from 'heroui-pro'; async function main() { const token = await login({ username: process.env.HEROU_USER ?? '', password: process.env.HEROU_PASS ?? '', }); console.log('Logged in:', token); await cache.flush('my-key', { region: 'us-east-1' }); console.log('Cache flushed'); } main().catch(console.error);
heroui --version
Debug
Known issues
breakingAPI surface is unstable; functions and signatures may change between beta versions.
fix
Pin exact version and test thoroughly on each upgrade.
affects: >=1.0.0-beta.0
deprecatedThe 'refreshAuth' export is deprecated in favor of 'login'.
fix
Replace import of 'refreshAuth' with 'login'.
affects: >=1.0.0-beta.3
gotchaAll async functions reject with a proprietary error object, not instances of Error.
fix
Use axios interceptor or custom wrapper to normalize errors.
affects: >=1.0.0-beta.0
Errors
Common errors & fixes
TypeError: (0 , heroui_pro.login) is not a function
Using default import from named export.
fix
Use named import: import { login } from 'heroui-pro'
Error: Cannot find module 'heroui-pro'
Package not installed or wrong import path.
fix
Run: npm install heroui-pro@1.0.0-beta.4
ERR_REQUIRE_ESM: require() of ES Module not supported
Package is ESM-only, but using require().
fix
Use import statement or dynamic import('heroui-pro')
Upgrade
Version history
1.0.0-beta.4latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
heroui-pro — npm install heroui-pro · libregistry