Registry / devops / artifactory-client-node

artifactory-client-node

JSON →
library0.0.15jsnpmunverified

A Node.js client for JFrog Artifactory REST API. Current stable version 0.0.15 (no update cadence visible). Provides simple connectivity and management operations: health check, system info, storage, version, licenses, builds (upload, list, get, promote). Config-driven via a JSON file. Not actively maintained, no TypeScript support, uses Promises but not async/await. Minimal error handling, relies on NODE_TLS_REJECT_UNAUTHORIZED for self-signed certs.

npm install artifactory-client-node
INSTALL
IMPORT
SIG · ARTIFACTORY-CLIENT
A
artifactory-client-node
devopsjavascriptv0.0.15
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.

artifactory
import { artifactory } from 'artifactory-client-node';
const artCli = require('artifactory-client-node'); const art = new artCli.artifactory();
Default export is an object with artifactory and build constructors. Prefer named import in ESM.
build
import { build } from 'artifactory-client-node';
const build = require('artifactory-client-node').build;
Same as artifactory, named import available.
artCli.artifactory
const { artifactory } = require('artifactory-client-node'); const art = new artifactory();
const artCli = require('artifactory-client-node'); const art = new artCli.artifactory();
CommonJS destructuring is idiomatic. The wrong pattern shown in docs is acceptable but not idiomatic.

Initialize the Artifactory client and perform a health check (ping). Shows Promise-based usage and config file requirement.

import { artifactory } from 'artifactory-client-node'; const art = new artifactory(); art.ping().then(result => console.log(result)).catch(err => console.error(err)); // Also configure via env ARTIFACTORY_CONFIG_FILE pointing to JSON: // { // "serverId": "dev", // "url": "http://example.com/artifactory", // "user": "admin", // "password": "password" // }
Debug
Known issues
breakingNo weekly downloads, last publish 2019, repository archived or inactive — no support, no updates, security issues unpatched.
fix
Migrate to officially supported JFrog Node client (e.g., @jfrog/jfrog-client-js) or use a maintained alternative.
affects: >=0.0.1
gotchaConfiguration must be provided via ARTIFACTORY_CONFIG_FILE environment variable pointing to a JSON file; no programmatic config possible.
fix
Set environment variable before running the app, or fork the package to support inline config.
affects: >=0.0.1
gotchaClass names exported: artifactory and build (lowercase). Easy to mis-capitalize.
fix
Import exactly as exported: import { artifactory, build } from 'artifactory-client-node';
affects: >=0.0.1
deprecatedPackage uses Promise .then/.catch but not async/await, deprecated pattern in modern Node.
fix
Wrap in async function or migrate to a newer client.
affects: >=0.0.1
gotchaSelf-signed SSL certificates: requires NODE_TLS_REJECT_UNAUTHORIZED=0 environment variable, which disables all TLS validation.
fix
Use proper certificates or update the client to support custom CA (not supported).
affects: >=0.0.1
Errors
Common errors & fixes
Error: ENOENT: no such file or directory, open 'artifactory.json'
Missing ARTIFACTORY_CONFIG_FILE environment variable or file not found at path.
fix
Set ARTIFACTORY_CONFIG_FILE to absolute path of your JSON config, e.g. export ARTIFACTORY_CONFIG_FILE=/path/to/artifactory.json
TypeError: art.ping is not a function
Incorrect import of artifactory class (e.g., importing default instead of named export).
fix
Use: import { artifactory } from 'artifactory-client-node'; const art = new artifactory();
SecurityWarning: NODE_TLS_REJECT_UNAUTHORIZED=0
Using self-signed certificate without proper validation; package forces disabling TLS checks.
fix
Avoid self-signed certs in production, or patch the package to add proper certificate handling.
Upgrade
Version history
0.0.15latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
21 hits · last 30 days
node
18
OpenAI (training)
1
Resources
artifactory-client-node — npm install artifactory-client-node · libregistry