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

@ump/network

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ump/network

Koa middleware set, tested, packaged, documented and typed for your convenience

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

CircleCI Greenkeeper badge

:construction: WARNING :construction:

Warning: this project is in development now, and some things may not work be documented, tested or working properly.

About UMP

UMP means Unified Modules Package. It's purpose is to provide collection of battle-tested, reliable and convenient npm modules collection for different purposes, such as koa middlewares, network utils, etc.

Some functionality provided by already existing modules, but some can be created in UMP library completely if necessary, to maintain usability and consistency.

This collection supposed to help developers to find reliable solutions, because maintainers of UMP will take care about packages security, typings, documentation, and other aspects.

  • Problem: you need a module that finds free port in range between 10000 and 20000
  • Typical solution: find through many modules, most of them are deprecated and can ony return free port above 10000, but doesn't support upper bounds, and often doesn't have typescript definitions. This takes a lot of time and focus of from developers, instead of focusing on important things.
  • UMP solution: install UMP libraries collection by topic, and just use it, with consistent documentation, type definitions (in case if you use Typescript), and just use it

Code for example with port finder function:

import { UmpNetwork } from '@ump/network'

...

const [freePort] = await UmpNetwork.findFreePort({ from: 10000, to: 20000 })

/**
 * freePort contains value between 10000 and 20000, or findFreePort method
 * throw an exception
 */

@ump/network are first library, more will be created in case of project success.

To be updated. More details in proposal document.

@ump/network

Miscelaneous networking utility methods, collected from different. npm modules

Installation

npm i -S @ump/network

API reference

:construction: Coming soon :construction:

Current dependecy libraries used to provide API

:construction: Coming soon :construction:

Keywords

network

FAQs

Package last updated on 27 Apr 2019

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