New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@edgeandnode/common

Package Overview
Dependencies
Maintainers
19
Versions
490
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@edgeandnode/common

Set of common util functions, constants, and types

6.47.0-add-friendly-name-resolveNetwork-1737575870362-d3f8a8554f06b61e66e1ebd26f149860b3f4a077
add-friendly-name-resolveNetwork
Source
npm
Version published
Weekly downloads
1.4K
330.91%
Maintainers
19
Weekly downloads
 
Created
Source

Edge & Node Common

This project implements and contains common utils and models/types to be ingested and utilized by other Edge & Node repos.

Test coverage

Coverage lines Coverage functions Coverage branches Coverage statements

Building and running

  • Run pnpm install to install all dependencies.
  • Run pnpm build to bundle all files using rollup
  • Run pnpm publish to publish to NPM

Testing

This repo uses vitest for its test suite/runner. To run the tests:

vitest test

Directory Structure and Naming Convention

All source code belongs in the src directory. Inside of this directory, it is broken up by domain (ex: utils) and all files in the domain directory should contain code that matches that domain (ex: graphql.utils.ts). File names should be kebob-case and have the file domain type appended with a . before the file extension (i.e. all files in src/utils should be follow {utils-type}.utils.ts. ex: graphql.utils.ts). Test files belong at the same level as the file they are putting under test and should follow the same naming convention as the file they are putting under test with .test appended before the file extension (i.e. {utils-type}.utils.test.ts. ex: graphql.utils.test.ts).

FAQs

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