New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@alpinebuster/meshlib

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alpinebuster/meshlib

JS/TS binding for the meshlib.

latest
Source
npmnpm
Version
0.5.0
Version published
Maintainers
1
Created
Source

Javascript/Typescript Binding for the meshlib

meshlib JS/TS implementation. It supports compilation to WASM via Emscripten so that meshlib features can be used in a browser.

Using meshlib in JavaScript/TypeScript

Install

meshlib is available as a UMD module compatible with both NodeJS and browsers, and includes TypeScript definitions.

npm install meshlib

Usage

To use the meshlib, do the following:

import { createMeshLib } from 'meshlib';

const mrmesh = await createMeshLib();

Ensure cross-origin isolation (COOP + COEP) is supported:

1.Vite

export default defineConfig({
  ...,

  server: {
    headers: {
      // Enforcing cross-origin isolation of pages
      'Cross-Origin-Opener-Policy': 'same-origin',
      'Cross-Origin-Embedder-Policy': 'require-corp'
    }
  },

  ...
});

2.Nginx

server {
  listen 80;
  server_name your.domain.com;
  
  add_header Cross-Origin-Opener-Policy same-origin;
  add_header Cross-Origin-Embedder-Policy require-corp;
  
  root /var/www/your-app;
  index index.html;
}

Local Development

npm install
npm run build

Release

npm login
npm publish --tag beta --access public
npm publish --tag latest --access public

Keywords

meshlib-binding

FAQs

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