🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis
Socket
Book a DemoInstallSign in
Socket

alp-listen

Package Overview
Dependencies
Maintainers
1
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alp-listen

Listen function, using config and logger for alp server

latest
Source
npmnpm
Version
7.1.1
Version published
Weekly downloads
4
-75%
Maintainers
1
Weekly downloads
 
Created
Source

alp-listen

Listen function, using config and logger for alp server

Install

npm install --save alp-listen

Usage

import Koa from 'koa';
import config from 'alp-node-config';
import errors from 'alp-errors';
import logger from 'alp-logger';
import listen from 'alp-listen';

const app = new Koa();
config(new URL('./config', import.meta.url), { packageConfig })(app);
logger(app);

app.use(errors);

listen(new URL('../cert', import.meta.url))(app).then((server) => {
  console.log('Listening !');
});

config:

  • socketPath OR port (+ hostname)
  • tls: boolean

If tls is true, the files server.key and server.crt will be loaded from the path given in the first param

Keywords

alp

FAQs

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