🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

biguint-format

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

biguint-format - npm Package Compare versions

Comparing version

to
1.0.1

yarn.lock

0

index.js

@@ -0,0 +0,0 @@ /**

13

package.json
{
"name": "biguint-format",
"version": "1.0.0",
"version": "1.0.1",
"description": "An arbitrary length unsigned integer formatter library for Node.js",

@@ -28,9 +28,10 @@ "main": "index.js",

"name": "Tom Pawlak",
"url": "http://blog.tompawlak.org/",
"url": "https://blog.abelotech.com/",
"email": "tompwk@gmail.com"
},
"licenses": [{
"type": "MIT",
"url": "http://blog.tompawlak.org/p/mit.html"
}],
"licenses": [
{
"type": "MIT"
}
],
"bugs": {

@@ -37,0 +38,0 @@ "url": "https://github.com/T-PWK/biguint-format/issues"

Big UInteger Formatter
====
[![Build Status](https://travis-ci.org/T-PWK/biguint-format.svg?branch=master)](https://travis-ci.org/T-PWK/biguint-format) [![npm version](https://badge.fury.io/js/biguint-format.svg)](http://badge.fury.io/js/biguint-format) [![Dependency Status](https://gemnasium.com/T-PWK/biguint-format.svg)](https://gemnasium.com/T-PWK/biguint-format) [![Code Climate](https://codeclimate.com/github/T-PWK/biguint-format/badges/gpa.svg)](https://codeclimate.com/github/T-PWK/biguint-format) [![Test Coverage](https://codeclimate.com/github/T-PWK/biguint-format/badges/coverage.svg)](https://codeclimate.com/github/T-PWK/biguint-format)
[![Build Status](https://travis-ci.org/T-PWK/biguint-format.svg?branch=master)](https://travis-ci.org/T-PWK/biguint-format)
[![npm version](https://badge.fury.io/js/biguint-format.svg)](http://badge.fury.io/js/biguint-format)
[![Coverage Status](https://coveralls.io/repos/github/T-PWK/biguint-format/badge.svg?branch=master)](https://coveralls.io/github/T-PWK/biguint-format?branch=master)
[![Code Climate](https://codeclimate.com/github/T-PWK/biguint-format/badges/gpa.svg)](https://codeclimate.com/github/T-PWK/biguint-format)

@@ -22,3 +25,3 @@ An arbitrary length unsigned integer formatter library for Node.js.

Node.js `biguint-format` module has been built in order to help display very large (arbitrary lengh) unsigned integers without any integer precision lose.
Node.js `biguint-format` module has been built in order to help display very large (arbitrary length) unsigned integers without any integer precision lose.

@@ -36,3 +39,3 @@ Example:

```
## Instalation ##
## Installation ##
```

@@ -46,3 +49,3 @@ $ npm install biguint-format

The `number` argument represents an arbitrary lenght unsigned integer number to be converted to string. It can be provided in one of the following formats:
The `number` argument represents an arbitrary length unsigned integer number to be converted to string. It can be provided in one of the following formats:
* Node.js [Buffer](http://nodejs.org/api/buffer.html) e.g. `new Buffer([0x1, 0xFF])`

@@ -53,3 +56,3 @@ * An array of bytes (values from `0x00` to `0xFF`) e.g. `[0x1, 0xFF]`.

The `format` argument represents output string format and it can be one of the following options:
* `dec` - convertion to decimal format e.g. `123324884`
* `dec` - conversion to decimal format e.g. `123324884`
* `bin` - conversion to binary format e.g. `1100101010`

@@ -64,7 +67,7 @@ * `hex` - conversion to hexadecimal format e.g. `0xADFFAA11`

* `prefix` - output string prefix. Note that this option is not supported by `dec` conversion.
* `groupsize` - splits output string into groups of `groupsize` lenght characters.
* `delimiter` - specifes delimiter string to be inserted in between character groups. Default value is space. It is quite handy option when dealing with large numbers.
* `groupsize` - splits output string into groups of `groupsize` length characters.
* `delimiter` - specifies delimiter string to be inserted in between character groups. Default value is space. It is quite handy option when dealing with large numbers.
* `trim` - (works only with `bin` formatting) specifies if the leading 0's should be trimmed.
* `padstr` - string used for right-padding of the fomratted string if its length (inlucing prefix and grouping) is less than value of `size` parameter.
* `size` - determines formatted string size. That opiton has effect only with `padstr` option. Note that the formatted string is not trimmed if its length is longer than value of `size` parameter.
* `padstr` - string used for right-padding of the formatted string if its length (including prefix and grouping) is less than value of `size` parameter.
* `size` - determines formatted string size. That option has effect only with `padstr` option. Note that the formatted string is not trimmed if its length is longer than value of `size` parameter.

@@ -129,3 +132,3 @@ ### Examples ###

## Author ##
Writen by Tom Pawlak - [Blog](http://blog.tompawlak.org)
Written by Tom Pawlak - [Blog](https://blog.abelotech.com)

@@ -136,2 +139,2 @@ ## License ##

MIT License : http://blog.tompawlak.org/mit-license
MIT License : https://blog.abelotech.com/mit-license/

@@ -0,0 +0,0 @@ var assert = require('assert')

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet