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

@navpreetdevpuri/base-2-n

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@navpreetdevpuri/base-2-n - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

11

index.js

@@ -1,2 +0,2 @@

export default class Base2N {
class Base2N {
constructor(digits, n = 16, maxNoOfDigits = 50) {

@@ -118,9 +118,2 @@ if (digits.length > maxNoOfDigits) {

const a = new Base2N('\0', 1, 5); // base 2
const b = new Base2N('1', 1, 5);
let c = a.add(b);
console.log(a.toString()); // 0
console.log(b.toString()); // 3
console.log(c.toString()); // c
c = c.subtract(b);
console.log(c.toString() == a.toString()); // true
module.exports = Base2N;

2

package.json
{
"name": "@navpreetdevpuri/base-2-n",
"version": "0.0.1",
"version": "0.0.2",
"description": "To work with base 2^n numbers",

@@ -5,0 +5,0 @@ "main": "index.js",

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