Socket
Book a DemoInstallSign in
Socket

@moreapp/common-nodejs

Package Overview
Dependencies
Maintainers
0
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@moreapp/common-nodejs

This project contains common code that can be used for our Node.js projects.

0.8.0
latest
npmnpm
Version published
Weekly downloads
14
-69.57%
Maintainers
0
Weekly downloads
 
Created
Source

MoreApp Common Node.js

This project contains common code that can be used for our Node.js projects.

Getting started

Run yarn prepare once to install Git hooks, doing lints and prettier formatting

Project usage

Most code can be used as is, except for tracing, see below.

Tracing

Tracing code should always be loaded (import/require) first, before any other libraries. This is because the OpenTelemetry instrumentations monkey patch libraries to add tracing. Patching has to happen first, because already loaded libraries will be cached by the module system.

The recommended way to do this, is to create a file instrumentation.ts with the following content (the extra instrumentation is there as an example):

import { tracer } from "@moreapp/common-nodejs";
import { MongoDBInstrumentation } from "@opentelemetry/instrumentation-mongodb";

tracer("<SERVICE_NAME>", {
  extraInstrumentations: [new MongoDBInstrumentation()],
});

And then use the --require Node.js CLI option to load this file.

Creating a new release

Follow the steps below to create a new release:

  • Ensure that the (upstream) master branch has the commits you want to release
  • Start a new build in GitHub actions for the master branch with the Publish workflow
  • Select which type of version bump you want to do
  • The build will automatically create a new version and publish it to NPM

Creating a local release

If you want to test new code in other projects, then you can link this repository using Yarn.

  • Run yarn link in this repository
  • Run yarn link @moreapp/common-nodejs in the project you want to use this repository in

FAQs

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.