Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@silenteer/natsu-port-server

Package Overview
Dependencies
Maintainers
2
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@silenteer/natsu-port-server

There're ways to start natsu-port-server

  • 0.0.52
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
2
Weekly downloads
 
Created
Source

There're ways to start natsu-port-server

Start via cli

This's simplest way to start the server, just run command with arguments for configuration

natsu-port-server --nats-uri localhost:2222 --nats-auth-subjects=abc,xyz --nats-non-auth-subjects=nmc,xpoi --server-port=4848 --server-path=/addc

Or write configuration in a js file then run command

natsu-port-server --config=./config.js
// config.js

module.exports = {
  NATS_AUTH_SUBJECTS=api.auth.adapt,api.auth.validate
};

Import & start

You may create a file .env to contains configuration for the server

NATS_AUTH_SUBJECTS=api.auth.adapt,api.auth.validate

Use dotenv(or another) to load .env into process.env then import the server and start

require('dotenv').config();

import NatsPortServer from '@silenteer/natsu-port-server';

NatsPortServer.start();

Help

If you want to get guide, run this command

natsu-port-server --help

FAQs

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc