Registry / devops / cjet-axios

cjet-axios

JSON →
library0.1.6jsnpmunverified

cjet-axios v0.1.6 is a minimal wrapper around Axios with TypeScript support, designed for CJET (Cron Job Execution Tool) integration. It provides a simplified interface for making HTTP requests within CJET workflows. Package has sparse documentation and no known release cadence. Limited ecosystem adoption compared to Axios itself, but offers stricter typing for CJET environments.

npm install cjet-axios
INSTALL
IMPORT
SIG · CJET-AXIOS
C
cjet-axios
devopsjavascriptv0.1.6
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.

default
import cjetAxios from 'cjet-axios'
const cjetAxios = require('cjet-axios').default
ESM-only package; CommonJS require must use .default
CjetAxiosInstance
import { CjetAxiosInstance } from 'cjet-axios'
import { AxiosInstance } from 'cjet-axios'
Type is re-exported but named differently
CjetAxiosConfig
import type { CjetAxiosConfig } from 'cjet-axios'
import { CjetAxiosConfig } from 'cjet-axios'
Use type import for type-only exports

Demonstrates a basic GET request with an Authorization header using cjet-axios, including error handling.

import cjetAxios from 'cjet-axios'; const apiKey = process.env.API_KEY ?? ''; async function getData() { try { const response = await cjetAxios.get('/api/data', { headers: { Authorization: `Bearer ${apiKey}` }, }); console.log(response.data); } catch (error) { console.error('Request failed:', error); } } getData();
Debug
Known issues
gotchacjet-axios is a thin wrapper around Axios; many Axios configuration options may not be exposed via cjet-axios types.
fix
Refer to Axios documentation for config options, and use type assertions if needed.
affects: >=0.0.0
deprecatedThe package has not been updated since 0.1.6 and may rely on older Axios versions.
fix
Consider using Axios directly for up-to-date support.
affects: 0.1.6
gotchaImporting with require('cjet-axios') returns an object with a default property; common mistake is to omit .default.
fix
Use const cjetAxios = require('cjet-axios').default; or switch to ESM import.
affects: >=0.0.0
Errors
Common errors & fixes
TypeError: cjetAxios.get is not a function
Using require without .default results in importing the module object instead of the function.
fix
Use const cjetAxios = require('cjet-axios').default; or switch to import statement.
Property 'get' does not exist on type 'typeof import(...)'
TypeScript type resolution fails when using require without .default.
fix
Use ES import: import cjetAxios from 'cjet-axios';
Module '"cjet-axios"' has no exported member 'CjetAxiosConfig'
Attempting to import CjetAxiosConfig as a value instead of a type.
fix
Use import type { CjetAxiosConfig } from 'cjet-axios';
Upgrade
Version history
0.1.6latest on npm
Audit
Dependencies
axiosrequiredcjet-axios wraps axios for HTTP requests
Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
cjet-axios — npm install cjet-axios · libregistry