
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
javascript-calculator
Advanced tools
This is a Simple Javascript Calculator
| Name | Description | Type |
|---|---|---|
| background | change the calculator background | String |
| numbersBackground | change the numbers box background | String |
| numbersColor | change the numbers box color | String |
| operatorsBackground | change the operators box background | String |
| operatorsColor | change the operators box color | String |
| clearAndEqualBackgrounds | change the clear and equal box background | String |
| clearAndEqualColors | change the clear and equal box color | String |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Calculator</title>
<script src="../node_modules/src/index.js"></script>
</head>
<body>
</body>
</html>
Step 1: add some class to the div.
<div class="wrapper"></div>
Step 2: Initialize the plugin on your page. For example
// initialize with defaults
$(".wrapper").javascriptCalcInit();
// initialize with options
$(".wrapper").javascriptCalcInit({
background:'black',
numbersBackground:'#8c4141',
numbersColor:'white',
operatorsBackground:'#FF5722',
operatorsColor:'white',
clearAndEqualBackgrounds:'#8c4141',
clearAndEqualColors:'white',
});
To install using the npm package manager run:
$ npm install javascript-calculator
Contributions are always welcome!
FAQs
This is a simple Js Calculator
We found that javascript-calculator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.