# bitwise-calculator

> **bitwise-calculator** is a javascript/node.js module providing utility functions for implementing various bitwise operations.

Latest version **1.0.1** (published 2022-02-08) · ISC license · 0 weekly downloads

## Install

```sh
npm install bitwise-calculator
pnpm add bitwise-calculator
yarn add bitwise-calculator
bun add bitwise-calculator
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2022-02-08 |
| First published | 2022-02-07 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Shivansh Pal |
| Maintainers | shivanshpal |
| Keywords | bits, bytes, bitwise, calculator, bitwise operations |

## Links

- npm: https://www.npmjs.com/package/bitwise-calculator
- npm.io page: https://npm.io/package/bitwise-calculator

## Recent versions

- 1.0.1 (latest) — 2022-02-08
- 1.0.0 — 2022-02-07

## README

# **bitwise-calculator**
**bitwise-calculator** is a javascript/node.js module providing utility functions for implementing various bitwise operations.

# Features
## Package contains 6 bitwise operations
- Bitwise AND (&)
- Bitwise OR (|)
- Bitwise XOR (^)
- Bitwise Left Shift (<<) *(zero fill)*
- Bitwise Right Shift (>>)  *(sign preserving)*
- Right Shift (>>>)  *(zero fill)*

# Install
npm i bitwise-calculator

## Importing
### nodejs
const bitwiseCalculator=require("bitwise-calculator");


# Example
const bitwiseCalculator=require("bitwise-calculator");

console.log(bitwiseCalculator.and(5, 1));\
console.log(bitwiseCalculator.or(5, 1));\
console.log(bitwiseCalculator.xor(5, 1));\
console.log(bitwiseCalculator.leftShift(5, 1));\
console.log(bitwiseCalculator.rightShift(5, 1));\
console.log(bitwiseCalculator.signedRightShift(5, 1));

---
_Source: https://npm.io/package/bitwise-calculator · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
