Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@eik/core

Package Overview
Dependencies
Maintainers
0
Versions
132
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eik/core

Core server package

  • 1.4.3
  • npm
  • Socket score

Version published
Weekly downloads
134
decreased by-36.19%
Maintainers
0
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 Nov 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc