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

modbuscrc

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

modbuscrc

Generate the CRC16 of Modbus

latest
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

Describe

It is a simple way used to generate or check the CRC16 of Modbus Protocol;

install

####npm i modbuscrc -S

Usage

####const CRC = require(modbuscrc);
#####//if the Modbus-Message is '010301010001d436',so the CRC16 is 'd436';
#####// i want to check or generate the message ,so:
####const mes = '010301010001';
####const crc16 = CRC(mes);
####console.log(crc16,typeof crc16);
#####//d436 String

Keywords

crc16

FAQs

Package last updated on 13 Jun 2019

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