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

js-crc-update

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-crc-update - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

testnpm/test.js

5

package.json
{
"name": "js-crc-update",
"version": "0.1.0",
"version": "0.1.1",
"description": "Simple CRC checksum functions for JavaScript(CRC-16 and CRC-32).",

@@ -24,3 +24,3 @@ "main": "src/crc.js",

"license": "MIT",
"author": "Yes",
"author": "Shyzuu",
"directories": {

@@ -42,2 +42,3 @@ "test": "tests"

"jade": "^0.26.3",
"js-crc-update": "^0.1.0-smallfix",
"lru-cache": "^2.7.3",

@@ -44,0 +45,0 @@ "minimatch": "^0.2.14",

37

README.md

@@ -1,16 +0,10 @@

# js-crc
[![Build Status](https://travis-ci.org/emn178/js-crc.svg?branch=master)](https://travis-ci.org/emn178/js-crc)
[![Coverage Status](https://coveralls.io/repos/emn178/js-crc/badge.svg?branch=master)](https://coveralls.io/r/emn178/js-crc?branch=master)
[![NPM](https://nodei.co/npm/js-crc.png?stars&downloads)](https://nodei.co/npm/js-crc/)
# js-crc-update
[![NPM](https://nodei.co/npm/js-crc-update.png?stars&downloads)](https://nodei.co/npm/js-crc-update/)
Simple CRC checksum functions for JavaScript(CRC-16 and CRC-32).
## Download
[Compress](https://raw.github.com/emn178/js-crc/master/build/crc.min.js)
[Uncompress](https://raw.github.com/emn178/js-crc/master/src/crc.js)
[Compressed](https://github.com/Shyzuuu/js-crc-update/raw/main/crc.min.js)
[Uncompressed](https://github.com/Shyzuuu/js-crc-update/raw/main/crc.js)
## Installation
You can also install js-crc by using Bower.
bower install js-crc
For node.js, you can use this command to install:

@@ -23,9 +17,11 @@

```JavaScript
crc16('Message to hash');
crc32('Message to hash');
crc16('Message to hash');
crc64('Message to hash'); // coming soon
```
If you use node.js, you should require the module first:
```JavaScript
var crc32 = require('js-crc').crc32;
var crc16 = require('js-crc').crc16;
var crc16 = require('js-crc-update').crc16;
var crc32 = require('js-crc-update').crc32;
var crc64 = require('js-crc-update').crc64; // coming soon
```

@@ -35,7 +31,8 @@ It supports AMD:

require(['your/path/crc.js'], function (crc) {
var crc32 = crc.crc32;
var crc16 = crc.crc16;
// ...
var crc16 = crc.crc16;
var crc32 = crc.crc32;
var crc64 = crc.crc64; // coming soon
// ...
});
```
## Example

@@ -52,6 +49,2 @@ ```JavaScript

## License
The project is released under the [MIT license](http://www.opensource.org/licenses/MIT).
## Contact
The project's website is located at https://github.com/emn178/js-crc
Author: Chen, Yi-Cyuan (emn178@gmail.com)
The project is released under the [MIT license](http://www.opensource.org/licenses/MIT).
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