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

calcjs

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

calcjs - npm Package Compare versions

Comparing version 0.0.5 to 0.0.7

25

calcjs.js
/**
* CalcJs
* @name calcjs.js
* @author Yuhei Aihara <aihara_yuhei2cyberagent.co.jp>
* @author Yuhei Aihara <aihara_yuhei@cyberagent.co.jp>
* @license MIT License

@@ -13,3 +13,3 @@ */

var version = '0.0.5';
var VERSION = '0.0.6';

@@ -104,3 +104,3 @@ function calcDigit(list) {

function CalcJs() {
this.version = version;
this.VERSION = VERSION;
}

@@ -153,12 +153,21 @@

var calcjs = new CalcJs();
if (typeof exports !== 'undefined') {
if (typeof module !== 'undefined' && module.exports) {
exports = module.exports = calcjs;
// export for AMD
if (typeof define === 'function' && typeof define.amd === 'object') {
define(function() {
return calcjs;
});
}
// export for nodejs
else if (typeof exports !== 'undefined' && typeof module !== 'undefined') {
if (module.exports === exports) {
module.exports = calcjs;
} else {
exports = calcjs;
}
} else {
}
// export for browser
else {
root.calcjs = calcjs;
}
}.call(this));
{
"name": "calcjs",
"version": "0.0.5",
"version": "0.0.7",
"description": "calcjs",

@@ -12,3 +12,3 @@ "main": "calcjs.js",

"type": "git",
"url": "git://github.com/yuhei-a/calcjs.git"
"url": "git://github.com/iyu/calcjs.git"
},

@@ -23,3 +23,3 @@ "keywords": [

"bugs": {
"url": "https://github.com/yuhei-a/calcjs/issues"
"url": "https://github.com/iyu/calcjs/issues"
},

@@ -26,0 +26,0 @@ "devDependencies": {

@@ -31,16 +31,23 @@ CalcJs

## Installation
In browsers:
In browser:
```
<script src="calcjs.js"></script>
<script>
(function() {
var calcjs = window.calcjs;
// using calcjs
}());
</script>
```
Using `npm`:
In an AMD loader:
```
npm install calcjs
require(['calcjs'], function(calcjs) {
// using calcjs
});
```
## Usage
In browsers:
Using `npm`:
```
var calcjs = windows.calcjs;
npm install --save calcjs
```

@@ -51,4 +58,6 @@

var calcjs = require('calcjs');
// using calcjs
```
## Usage
```

@@ -82,3 +91,8 @@ // Addition

## Test
Run `npm test` and `npm run-script jshint`
## Contribution
1. Fork it ( https://github.com/iyu/calcjs/fork )
2. Create a feature branch
3. Commit your changes
4. Rebase your local changes against the master branch
5. Run test suite with the `npm test; npm run-script jshint` command and confirm that it passes
5. Create new Pull Request
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