Socket
Socket
Sign inDemoInstall

@cxm/logsync

Package Overview
Dependencies
27
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @cxm/logsync

- Backend remote string console tool by socket. - It's easy to use. - Simple, Light tool.


Version published
Maintainers
1
Install size
2.02 MB
Created

Readme

Source

LogSync

  • Backend remote string console tool by socket.

  • It's easy to use.

  • Simple, Light tool.

NPM version License npm node

Installation

npm i @cxm/logsync

Usage

For the client

  • Initial LogSync and put log code in any line.

    //init client
    const LogSync = require('@cxm/logsync');
    
    const logSync = new LogSync({
      host:'localhost',
      port:8080
    });
    
    //send debug string to the server console
    logSync.log( Math.random() );
    

For the simple server

  • Install socket.io first.

     npm i socket.io --save
    
  • Config server

      const server = require('http').createServer();
    
      const io = require('socket.io')(server);
    
      io.on('connection', client => {
        client.on('log', data => console.log( data ) );
      });
    
      server.listen(8080);
    

FAQs

Last updated on 12 Aug 2019

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc