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

@eik/core

Package Overview
Dependencies
Maintainers
3
Versions
153
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eik/core

Core server package

2.0.14
npmnpm
Version published
Weekly downloads
262
3.56%
Maintainers
3
Weekly downloads
 
Created
Source

@eik/core

This module holds the core server functionality of @eik/service. Each HTTP API endpoint has its own class handling the specific path and method.

API

http

This namespace holds the different HTTP API endpoint handlers. Each handler is a class with an async handler method.

import { http } from "@eik/core";

let pkgGetHandler = new eik.http.PkgGet({ organizations, sink, logger });

let response = await pkgGetHandler.handler(
	request,
	type,
	name,
	version,
	extras,
);

For a more complete usage example, see the implementation in @eik/service.

prop

A gollection of globals holding base paths.

import { prop } from "@eik/core";

const { base_auth, base_map, base_pkg, base_npm } = prop;

HealthCheck

A health check implementation that does a create, read and delete check against the configured storage sink.

import { HealthCheck } from "@eik/core";

const health = new HealthCheck({
	logger,
	sink,
});

await health.check();

FAQs

Package last updated on 13 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