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

js-big-decimal

Package Overview
Dependencies
Maintainers
2
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-big-decimal - npm Package Compare versions

Comparing version 1.1.4 to 1.1.5

dist/node/big-decimal.d.ts

28

package.json
{
"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

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