You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

coadmin-lib

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coadmin-lib

Coadmin Project Helper Libraries

1.2.36
latest
npmnpm
Version published
Weekly downloads
5
-77.27%
Maintainers
1
Weekly downloads
 
Created
Source

Coadmin Project Libraries

CoadminService Class

const { CoadminService } = require('coadmin-lib')
const coadmin_service = new CoadminService('ServiceName')

coadmin_service.report('started')
while(true) {
    coadmin_service.report_every(1,'loop',false,true)
}
coadmin_service.report('finished')
coadmin_service.report_error('exception')

CoadminService3 Class

import { CoadminService3 } from 'coadmin-lib'

const coadmin_service = new CoadminService3('ServiceName')

coadmin_service.report('started')

typescript

import { ReportIssues } from 'coadmin-lib'

// live mode
const riLive = new ReportIssues('demoLive',{
        live: true,
        server: 'http://127.0.0.1:9091/api',
        server_path: '/socket2.io',
        output: true
})
riLive.warning('test warning')

// passive mode
const riPassive = new ReportIssues('demoPassive',{live: false, folder: '/var/coadmin'})
riPassive.warning('test warning')

ReportIssues Class

use description to describe the issue but without using too many variables inside the description, you can put extra parameters as json, third parameter is for options: 'expireAfter' (in minutes)

const ReportIssues = new (require('coadmin-lib').ReportIssues)('AppName')
``
ReportIssues.info('info level description',{extra:'extra info'})
ReportIssues.warning('warn level description',{extra:'extra info'},{ expireAfter:10 })
ReportIssues.fatal('fatal level description',{extra:'extra info'})
ReportIssues.error('error level description',{extra:'extra info'})

NetworkingTests Class

Mysql2Tests Class

Mysql1Tests Class

PuppetClient Class

PuppetSummary Class

FAQs

Package last updated on 27 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts