js-big-decimal
Advanced tools
Comparing version 1.1.4 to 1.1.5
{ | ||
"name": "js-big-decimal", | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"description": "Work with large numbers on the client side. Round them off to any required precission.", | ||
"main": "lib/big-decimal", | ||
"types": "lib/big-decimal", | ||
"main": "dist/node/big-decimal", | ||
"types": "dist/node/big-decimal", | ||
"scripts": { | ||
@@ -11,8 +11,12 @@ "test": "./node_modules/.bin/jasmine JASMINE_CONFIG_PATH=spec/jasmine.json --helper=spec/helper/*.js", | ||
"test-random": "node test/randomtest.js", | ||
"compile": "./node_modules/.bin/tsc --watch", | ||
"toc": "doctoc --title **Contents** ./README.md" | ||
"compile": "tsc --watch", | ||
"toc": "doctoc --title \"## Contents\" ./README.md" | ||
}, | ||
"keywords": [ | ||
"arithmetic", | ||
"operators", | ||
"precise", | ||
"number", | ||
"decimal", | ||
"big", | ||
"large", | ||
@@ -23,5 +27,9 @@ "round", | ||
"multiply", | ||
"divide" | ||
"divide", | ||
"format" | ||
], | ||
"author": "Niladri Roy <callniladri.pro@gmail.com> (https://github.com/royNiladri)", | ||
"contributors": [ | ||
"Niladri Roy <callniladri.pro@gmail.com> (https://github.com/royNiladri)", | ||
"Sushanto Halder <snhalder300@gmail.com> (https://github.com/Sushanto)" | ||
], | ||
"license": "MIT", | ||
@@ -37,6 +45,8 @@ "repository": { | ||
"devDependencies": { | ||
"del": "^3.0.0", | ||
"glob": "^7.1.2", | ||
"jasmine": "^2.6.0", | ||
"gulp": "^3.9.1", | ||
"gulp-run": "^1.7.1", | ||
"jasmine-spec-reporter": "^4.1.1", | ||
"typescript": "^2.4.1" | ||
"webpack": "^3.4.0" | ||
}, | ||
@@ -43,0 +53,0 @@ "false": {}, |
@@ -7,2 +7,4 @@ # JS Big Decimal | ||
[![npm](https://img.shields.io/npm/v/js-big-decimal.svg?style=flat-square)](https://www.npmjs.com/package/js-big-decimal) | ||
[![npm](https://img.shields.io/npm/dt/js-big-decimal.svg?style=flat-square)](https://www.npmjs.com/package/js-big-decimal) | ||
<!-- [![Github file size](https://img.shields.io/github/size/royNiladri/js-big-decimal/dist/web/js-big-decimal.min.js.svg?style=flat-square)]() --> | ||
@@ -13,3 +15,3 @@ Work with large numbers on the client side with high precision. | ||
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --> | ||
**Contents** | ||
## Contents | ||
@@ -40,10 +42,20 @@ - [Installation](#installation) | ||
### Usage | ||
:heavy_exclamation_mark: **Note:** Usage has changed since **version 1.1.4** | ||
Require in `javascript` as | ||
```jsavascript | ||
var bigDecimal = require('js-big-decimal').bigDecimal; | ||
var bigDecimal = require('js-big-decimal'); | ||
``` | ||
For `typescript`, use | ||
```jsavascript | ||
import { bigDecimal } from 'js-big-decimal'; | ||
import bigDecimal require('js-big-decimal'); | ||
``` | ||
For `web`, when used with script tag, a variable on `Window` object is created. | ||
```html | ||
<script src="node_modules/js-big-decimal/dist/web/js-big-decimal.min.js"></script> | ||
``` | ||
```javascript | ||
console.log(bigDecimal.add('12', '45')); | ||
``` | ||
@@ -50,0 +62,0 @@ ## Operations |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
114204
1309
175
6
10
1
1