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

binary-data-types

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

binary-data-types - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

64

dist/binary-data-types.cjs.js

@@ -43,3 +43,3 @@ 'use strict';

*/
int2: {'bits': 2, 'signed': true},
int2: {bits: 2, signed: true, float: false, be: false},
/**

@@ -49,3 +49,3 @@ * Unsigned 2-bit integers

*/
uInt2: {'bits': 2},
uInt2: {bits: 2, signed: false, float: false, be: false},
/**

@@ -55,3 +55,3 @@ * Signed 4-bit integers

*/
int4: {'bits': 4, 'signed': true},
int4: {bits: 4, signed: true, float: false, be: false},
/**

@@ -61,3 +61,3 @@ * Unsigned 4-bit integers

*/
uInt4: {'bits': 4},
uInt4: {bits: 4, signed: false, float: false, be: false},
/**

@@ -67,3 +67,3 @@ * Signed 8-bit integers

*/
int8: {'bits': 8, 'signed': true},
int8: {bits: 8, signed: true, float: false, be: false},
/**

@@ -73,3 +73,3 @@ * Unsigned 4-bit integers

*/
uInt8: {'bits': 8},
uInt8: {bits: 8, signed: false, float: false, be: false},
// LE

@@ -80,3 +80,3 @@ /**

*/
int16 : {'bits': 16, 'signed': true},
int16 : {bits: 16, signed: true, float: false, be: false},
/**

@@ -86,3 +86,3 @@ * Unsigned 16-bit integers little-endian

*/
uInt16: {'bits': 16},
uInt16: {bits: 16, signed: false, float: false, be: false},
/**

@@ -92,3 +92,3 @@ * Half-precision floating-point numbers little-endian

*/
float16: {'bits': 16, 'float': true},
float16: {bits: 16, signed: true, float: true, be: false},
/**

@@ -98,3 +98,3 @@ * Signed 24-bit integers little-endian

*/
int24: {'bits': 24, 'signed': true},
int24: {bits: 24, signed: true, float: false, be: false},
/**

@@ -104,3 +104,3 @@ * Unsigned 24-bit integers little-endian

*/
uInt24: {'bits': 24},
uInt24: {bits: 24, signed: false, float: false, be: false},
/**

@@ -110,3 +110,3 @@ * Signed 32-bit integers little-endian

*/
int32: {'bits': 32, 'signed': true},
int32: {bits: 32, signed: true, float: false, be: false},
/**

@@ -116,3 +116,3 @@ * Unsigned 32-bit integers little-endian

*/
uInt32: {'bits': 32},
uInt32: {bits: 32, signed: false, float: false, be: false},
/**

@@ -122,3 +122,3 @@ * Single-precision floating-point numbers little-endian

*/
float32: {'bits': 32, 'float': true},
float32: {bits: 32, signed: true, float: true, be: false},
/**

@@ -128,3 +128,3 @@ * Signed 40-bit integers little-endian

*/
int40: {'bits': 40, 'signed': true},
int40: {bits: 40, signed: true, float: false, be: false},
/**

@@ -134,3 +134,3 @@ * Unsigned 40-bit integers little-endian

*/
uInt40: {'bits': 40},
uInt40: {bits: 40, signed: false, float: false, be: false},
/**

@@ -140,3 +140,3 @@ * Signed 48-bit integers little-endian

*/
int48: {'bits': 48, 'signed': true},
int48: {bits: 48, signed: true, float: false, be: false},
/**

@@ -146,3 +146,3 @@ * Unsigned 48-bit integers little-endian

*/
uInt48: {'bits': 48},
uInt48: {bits: 48, signed: false, float: false, be: false},
/**

@@ -152,3 +152,3 @@ * Double-precision floating-point numbers little-endian

*/
float64: {'bits': 64, 'float': true},
float64: {bits: 64, signed: true, float: true, be: false},
// BE

@@ -159,3 +159,3 @@ /**

*/
int16BE : {'bits': 16, 'signed': true, 'be': true},
int16BE : {bits: 16, signed: true, float: false, be: true},
/**

@@ -165,3 +165,3 @@ * Unsigned 16-bit integers big-endian

*/
uInt16BE: {'bits': 16, 'be': true},
uInt16BE: {bits: 16, signed: false, float: false, be: true},
/**

@@ -171,3 +171,3 @@ * Half-precision floating-point numbers big-endian

*/
float16BE: {'bits': 16, 'float': true, 'be': true},
float16BE: {bits: 16, signed: true, float: true, be: true},
/**

@@ -177,3 +177,3 @@ * Signed 24-bit integers big-endian

*/
int24BE: {'bits': 24, 'signed': true, 'be': true},
int24BE: {bits: 24, signed: true, float: false, be: true},
/**

@@ -183,3 +183,3 @@ * Unsigned 24-bit integers big-endian

*/
uInt24BE: {'bits': 24, 'be': true},
uInt24BE: {bits: 24, signed: false, float: false, be: true},
/**

@@ -189,3 +189,3 @@ * Signed 32-bit integers big-endian

*/
int32BE: {'bits': 32, 'signed': true, 'be': true},
int32BE: {bits: 32, signed: true, float: false, be: true},
/**

@@ -195,3 +195,3 @@ * Unsigned 32-bit integers big-endian

*/
uInt32BE: {'bits': 32, 'be': true},
uInt32BE: {bits: 32, signed: false, float: false, be: true},
/**

@@ -201,3 +201,3 @@ * Single-precision floating-point numbers big-endian

*/
float32BE: {'bits': 32, 'float': true, 'be': true},
float32BE: {bits: 32, signed: true, float: true, be: true},
/**

@@ -207,3 +207,3 @@ * Signed 40-bit integers big-endian

*/
int40BE: {'bits': 40, 'signed': true, 'be': true},
int40BE: {bits: 40, signed: true, float: false, be: true},
/**

@@ -213,3 +213,3 @@ * Unsigned 40-bit integers big-endian

*/
uInt40BE: {'bits': 40, 'be': true},
uInt40BE: {bits: 40, signed: false, float: false, be: true},
/**

@@ -219,3 +219,3 @@ * Signed 48-bit integers big-endian

*/
int48BE: {'bits': 48, 'signed': true, 'be': true},
int48BE: {bits: 48, signed: true, float: false, be: true},
/**

@@ -225,3 +225,3 @@ * Unsigned 48-bit integers big-endian

*/
uInt48BE: {'bits': 48, 'be': true},
uInt48BE: {bits: 48, signed: false, float: false, be: true},
/**

@@ -231,5 +231,5 @@ * Double-precision floating-point numbers big-endian

*/
float64BE: {'bits': 64, 'float': true, 'be': true},
float64BE: {bits: 64, signed: true, float: true, be: true},
};
module.exports = index;

@@ -41,3 +41,3 @@ /*

*/
int2: {'bits': 2, 'signed': true},
int2: {bits: 2, signed: true, float: false, be: false},
/**

@@ -47,3 +47,3 @@ * Unsigned 2-bit integers

*/
uInt2: {'bits': 2},
uInt2: {bits: 2, signed: false, float: false, be: false},
/**

@@ -53,3 +53,3 @@ * Signed 4-bit integers

*/
int4: {'bits': 4, 'signed': true},
int4: {bits: 4, signed: true, float: false, be: false},
/**

@@ -59,3 +59,3 @@ * Unsigned 4-bit integers

*/
uInt4: {'bits': 4},
uInt4: {bits: 4, signed: false, float: false, be: false},
/**

@@ -65,3 +65,3 @@ * Signed 8-bit integers

*/
int8: {'bits': 8, 'signed': true},
int8: {bits: 8, signed: true, float: false, be: false},
/**

@@ -71,3 +71,3 @@ * Unsigned 4-bit integers

*/
uInt8: {'bits': 8},
uInt8: {bits: 8, signed: false, float: false, be: false},
// LE

@@ -78,3 +78,3 @@ /**

*/
int16 : {'bits': 16, 'signed': true},
int16 : {bits: 16, signed: true, float: false, be: false},
/**

@@ -84,3 +84,3 @@ * Unsigned 16-bit integers little-endian

*/
uInt16: {'bits': 16},
uInt16: {bits: 16, signed: false, float: false, be: false},
/**

@@ -90,3 +90,3 @@ * Half-precision floating-point numbers little-endian

*/
float16: {'bits': 16, 'float': true},
float16: {bits: 16, signed: true, float: true, be: false},
/**

@@ -96,3 +96,3 @@ * Signed 24-bit integers little-endian

*/
int24: {'bits': 24, 'signed': true},
int24: {bits: 24, signed: true, float: false, be: false},
/**

@@ -102,3 +102,3 @@ * Unsigned 24-bit integers little-endian

*/
uInt24: {'bits': 24},
uInt24: {bits: 24, signed: false, float: false, be: false},
/**

@@ -108,3 +108,3 @@ * Signed 32-bit integers little-endian

*/
int32: {'bits': 32, 'signed': true},
int32: {bits: 32, signed: true, float: false, be: false},
/**

@@ -114,3 +114,3 @@ * Unsigned 32-bit integers little-endian

*/
uInt32: {'bits': 32},
uInt32: {bits: 32, signed: false, float: false, be: false},
/**

@@ -120,3 +120,3 @@ * Single-precision floating-point numbers little-endian

*/
float32: {'bits': 32, 'float': true},
float32: {bits: 32, signed: true, float: true, be: false},
/**

@@ -126,3 +126,3 @@ * Signed 40-bit integers little-endian

*/
int40: {'bits': 40, 'signed': true},
int40: {bits: 40, signed: true, float: false, be: false},
/**

@@ -132,3 +132,3 @@ * Unsigned 40-bit integers little-endian

*/
uInt40: {'bits': 40},
uInt40: {bits: 40, signed: false, float: false, be: false},
/**

@@ -138,3 +138,3 @@ * Signed 48-bit integers little-endian

*/
int48: {'bits': 48, 'signed': true},
int48: {bits: 48, signed: true, float: false, be: false},
/**

@@ -144,3 +144,3 @@ * Unsigned 48-bit integers little-endian

*/
uInt48: {'bits': 48},
uInt48: {bits: 48, signed: false, float: false, be: false},
/**

@@ -150,3 +150,3 @@ * Double-precision floating-point numbers little-endian

*/
float64: {'bits': 64, 'float': true},
float64: {bits: 64, signed: true, float: true, be: false},
// BE

@@ -157,3 +157,3 @@ /**

*/
int16BE : {'bits': 16, 'signed': true, 'be': true},
int16BE : {bits: 16, signed: true, float: false, be: true},
/**

@@ -163,3 +163,3 @@ * Unsigned 16-bit integers big-endian

*/
uInt16BE: {'bits': 16, 'be': true},
uInt16BE: {bits: 16, signed: false, float: false, be: true},
/**

@@ -169,3 +169,3 @@ * Half-precision floating-point numbers big-endian

*/
float16BE: {'bits': 16, 'float': true, 'be': true},
float16BE: {bits: 16, signed: true, float: true, be: true},
/**

@@ -175,3 +175,3 @@ * Signed 24-bit integers big-endian

*/
int24BE: {'bits': 24, 'signed': true, 'be': true},
int24BE: {bits: 24, signed: true, float: false, be: true},
/**

@@ -181,3 +181,3 @@ * Unsigned 24-bit integers big-endian

*/
uInt24BE: {'bits': 24, 'be': true},
uInt24BE: {bits: 24, signed: false, float: false, be: true},
/**

@@ -187,3 +187,3 @@ * Signed 32-bit integers big-endian

*/
int32BE: {'bits': 32, 'signed': true, 'be': true},
int32BE: {bits: 32, signed: true, float: false, be: true},
/**

@@ -193,3 +193,3 @@ * Unsigned 32-bit integers big-endian

*/
uInt32BE: {'bits': 32, 'be': true},
uInt32BE: {bits: 32, signed: false, float: false, be: true},
/**

@@ -199,3 +199,3 @@ * Single-precision floating-point numbers big-endian

*/
float32BE: {'bits': 32, 'float': true, 'be': true},
float32BE: {bits: 32, signed: true, float: true, be: true},
/**

@@ -205,3 +205,3 @@ * Signed 40-bit integers big-endian

*/
int40BE: {'bits': 40, 'signed': true, 'be': true},
int40BE: {bits: 40, signed: true, float: false, be: true},
/**

@@ -211,3 +211,3 @@ * Unsigned 40-bit integers big-endian

*/
uInt40BE: {'bits': 40, 'be': true},
uInt40BE: {bits: 40, signed: false, float: false, be: true},
/**

@@ -217,3 +217,3 @@ * Signed 48-bit integers big-endian

*/
int48BE: {'bits': 48, 'signed': true, 'be': true},
int48BE: {bits: 48, signed: true, float: false, be: true},
/**

@@ -223,3 +223,3 @@ * Unsigned 48-bit integers big-endian

*/
uInt48BE: {'bits': 48, 'be': true},
uInt48BE: {bits: 48, signed: false, float: false, be: true},
/**

@@ -229,5 +229,5 @@ * Double-precision floating-point numbers big-endian

*/
float64BE: {'bits': 64, 'float': true, 'be': true},
float64BE: {bits: 64, signed: true, float: true, be: true},
};
export default index;

@@ -1,2 +0,3 @@

var BinaryDataTypes=function(){return{int2:{bits:2,signed:!0},uInt2:{bits:2},int4:{bits:4,signed:!0},uInt4:{bits:4},int8:{bits:8,signed:!0},uInt8:{bits:8},int16:{bits:16,signed:!0},uInt16:{bits:16},float16:{bits:16,"float":!0},int24:{bits:24,signed:!0},uInt24:{bits:24},int32:{bits:32,signed:!0},uInt32:{bits:32},float32:{bits:32,"float":!0},int40:{bits:40,signed:!0},uInt40:{bits:40},int48:{bits:48,signed:!0},uInt48:{bits:48},float64:{bits:64,"float":!0},int16BE:{bits:16,signed:!0,be:!0},uInt16BE:{bits:16,
be:!0},float16BE:{bits:16,"float":!0,be:!0},int24BE:{bits:24,signed:!0,be:!0},uInt24BE:{bits:24,be:!0},int32BE:{bits:32,signed:!0,be:!0},uInt32BE:{bits:32,be:!0},float32BE:{bits:32,"float":!0,be:!0},int40BE:{bits:40,signed:!0,be:!0},uInt40BE:{bits:40,be:!0},int48BE:{bits:48,signed:!0,be:!0},uInt48BE:{bits:48,be:!0},float64BE:{bits:64,"float":!0,be:!0}}}();window.BinaryDataTypes=BinaryDataTypes;
var BinaryDataTypes=function(){return{int2:{bits:2,signed:!0,float:!1,be:!1},uInt2:{bits:2,signed:!1,float:!1,be:!1},int4:{bits:4,signed:!0,float:!1,be:!1},uInt4:{bits:4,signed:!1,float:!1,be:!1},int8:{bits:8,signed:!0,float:!1,be:!1},uInt8:{bits:8,signed:!1,float:!1,be:!1},int16:{bits:16,signed:!0,float:!1,be:!1},uInt16:{bits:16,signed:!1,float:!1,be:!1},float16:{bits:16,signed:!0,float:!0,be:!1},int24:{bits:24,signed:!0,float:!1,be:!1},uInt24:{bits:24,signed:!1,float:!1,be:!1},int32:{bits:32,signed:!0,
float:!1,be:!1},uInt32:{bits:32,signed:!1,float:!1,be:!1},float32:{bits:32,signed:!0,float:!0,be:!1},int40:{bits:40,signed:!0,float:!1,be:!1},uInt40:{bits:40,signed:!1,float:!1,be:!1},int48:{bits:48,signed:!0,float:!1,be:!1},uInt48:{bits:48,signed:!1,float:!1,be:!1},float64:{bits:64,signed:!0,float:!0,be:!1},int16BE:{bits:16,signed:!0,float:!1,be:!0},uInt16BE:{bits:16,signed:!1,float:!1,be:!0},float16BE:{bits:16,signed:!0,float:!0,be:!0},int24BE:{bits:24,signed:!0,float:!1,be:!0},uInt24BE:{bits:24,
signed:!1,float:!1,be:!0},int32BE:{bits:32,signed:!0,float:!1,be:!0},uInt32BE:{bits:32,signed:!1,float:!1,be:!0},float32BE:{bits:32,signed:!0,float:!0,be:!0},int40BE:{bits:40,signed:!0,float:!1,be:!0},uInt40BE:{bits:40,signed:!1,float:!1,be:!0},int48BE:{bits:48,signed:!0,float:!1,be:!0},uInt48BE:{bits:48,signed:!1,float:!1,be:!0},float64BE:{bits:64,signed:!0,float:!0,be:!0}}}();window.BinaryDataTypes=BinaryDataTypes;

@@ -47,3 +47,3 @@ (function (global, factory) {

*/
int2: {'bits': 2, 'signed': true},
int2: {bits: 2, signed: true, float: false, be: false},
/**

@@ -53,3 +53,3 @@ * Unsigned 2-bit integers

*/
uInt2: {'bits': 2},
uInt2: {bits: 2, signed: false, float: false, be: false},
/**

@@ -59,3 +59,3 @@ * Signed 4-bit integers

*/
int4: {'bits': 4, 'signed': true},
int4: {bits: 4, signed: true, float: false, be: false},
/**

@@ -65,3 +65,3 @@ * Unsigned 4-bit integers

*/
uInt4: {'bits': 4},
uInt4: {bits: 4, signed: false, float: false, be: false},
/**

@@ -71,3 +71,3 @@ * Signed 8-bit integers

*/
int8: {'bits': 8, 'signed': true},
int8: {bits: 8, signed: true, float: false, be: false},
/**

@@ -77,3 +77,3 @@ * Unsigned 4-bit integers

*/
uInt8: {'bits': 8},
uInt8: {bits: 8, signed: false, float: false, be: false},
// LE

@@ -84,3 +84,3 @@ /**

*/
int16 : {'bits': 16, 'signed': true},
int16 : {bits: 16, signed: true, float: false, be: false},
/**

@@ -90,3 +90,3 @@ * Unsigned 16-bit integers little-endian

*/
uInt16: {'bits': 16},
uInt16: {bits: 16, signed: false, float: false, be: false},
/**

@@ -96,3 +96,3 @@ * Half-precision floating-point numbers little-endian

*/
float16: {'bits': 16, 'float': true},
float16: {bits: 16, signed: true, float: true, be: false},
/**

@@ -102,3 +102,3 @@ * Signed 24-bit integers little-endian

*/
int24: {'bits': 24, 'signed': true},
int24: {bits: 24, signed: true, float: false, be: false},
/**

@@ -108,3 +108,3 @@ * Unsigned 24-bit integers little-endian

*/
uInt24: {'bits': 24},
uInt24: {bits: 24, signed: false, float: false, be: false},
/**

@@ -114,3 +114,3 @@ * Signed 32-bit integers little-endian

*/
int32: {'bits': 32, 'signed': true},
int32: {bits: 32, signed: true, float: false, be: false},
/**

@@ -120,3 +120,3 @@ * Unsigned 32-bit integers little-endian

*/
uInt32: {'bits': 32},
uInt32: {bits: 32, signed: false, float: false, be: false},
/**

@@ -126,3 +126,3 @@ * Single-precision floating-point numbers little-endian

*/
float32: {'bits': 32, 'float': true},
float32: {bits: 32, signed: true, float: true, be: false},
/**

@@ -132,3 +132,3 @@ * Signed 40-bit integers little-endian

*/
int40: {'bits': 40, 'signed': true},
int40: {bits: 40, signed: true, float: false, be: false},
/**

@@ -138,3 +138,3 @@ * Unsigned 40-bit integers little-endian

*/
uInt40: {'bits': 40},
uInt40: {bits: 40, signed: false, float: false, be: false},
/**

@@ -144,3 +144,3 @@ * Signed 48-bit integers little-endian

*/
int48: {'bits': 48, 'signed': true},
int48: {bits: 48, signed: true, float: false, be: false},
/**

@@ -150,3 +150,3 @@ * Unsigned 48-bit integers little-endian

*/
uInt48: {'bits': 48},
uInt48: {bits: 48, signed: false, float: false, be: false},
/**

@@ -156,3 +156,3 @@ * Double-precision floating-point numbers little-endian

*/
float64: {'bits': 64, 'float': true},
float64: {bits: 64, signed: true, float: true, be: false},
// BE

@@ -163,3 +163,3 @@ /**

*/
int16BE : {'bits': 16, 'signed': true, 'be': true},
int16BE : {bits: 16, signed: true, float: false, be: true},
/**

@@ -169,3 +169,3 @@ * Unsigned 16-bit integers big-endian

*/
uInt16BE: {'bits': 16, 'be': true},
uInt16BE: {bits: 16, signed: false, float: false, be: true},
/**

@@ -175,3 +175,3 @@ * Half-precision floating-point numbers big-endian

*/
float16BE: {'bits': 16, 'float': true, 'be': true},
float16BE: {bits: 16, signed: true, float: true, be: true},
/**

@@ -181,3 +181,3 @@ * Signed 24-bit integers big-endian

*/
int24BE: {'bits': 24, 'signed': true, 'be': true},
int24BE: {bits: 24, signed: true, float: false, be: true},
/**

@@ -187,3 +187,3 @@ * Unsigned 24-bit integers big-endian

*/
uInt24BE: {'bits': 24, 'be': true},
uInt24BE: {bits: 24, signed: false, float: false, be: true},
/**

@@ -193,3 +193,3 @@ * Signed 32-bit integers big-endian

*/
int32BE: {'bits': 32, 'signed': true, 'be': true},
int32BE: {bits: 32, signed: true, float: false, be: true},
/**

@@ -199,3 +199,3 @@ * Unsigned 32-bit integers big-endian

*/
uInt32BE: {'bits': 32, 'be': true},
uInt32BE: {bits: 32, signed: false, float: false, be: true},
/**

@@ -205,3 +205,3 @@ * Single-precision floating-point numbers big-endian

*/
float32BE: {'bits': 32, 'float': true, 'be': true},
float32BE: {bits: 32, signed: true, float: true, be: true},
/**

@@ -211,3 +211,3 @@ * Signed 40-bit integers big-endian

*/
int40BE: {'bits': 40, 'signed': true, 'be': true},
int40BE: {bits: 40, signed: true, float: false, be: true},
/**

@@ -217,3 +217,3 @@ * Unsigned 40-bit integers big-endian

*/
uInt40BE: {'bits': 40, 'be': true},
uInt40BE: {bits: 40, signed: false, float: false, be: true},
/**

@@ -223,3 +223,3 @@ * Signed 48-bit integers big-endian

*/
int48BE: {'bits': 48, 'signed': true, 'be': true},
int48BE: {bits: 48, signed: true, float: false, be: true},
/**

@@ -229,3 +229,3 @@ * Unsigned 48-bit integers big-endian

*/
uInt48BE: {'bits': 48, 'be': true},
uInt48BE: {bits: 48, signed: false, float: false, be: true},
/**

@@ -235,3 +235,3 @@ * Double-precision floating-point numbers big-endian

*/
float64BE: {'bits': 64, 'float': true, 'be': true},
float64BE: {bits: 64, signed: true, float: true, be: true},
};

@@ -238,0 +238,0 @@

@@ -41,3 +41,3 @@ /*

*/
int2: {'bits': 2, 'signed': true},
int2: {bits: 2, signed: true, float: false, be: false},
/**

@@ -47,3 +47,3 @@ * Unsigned 2-bit integers

*/
uInt2: {'bits': 2},
uInt2: {bits: 2, signed: false, float: false, be: false},
/**

@@ -53,3 +53,3 @@ * Signed 4-bit integers

*/
int4: {'bits': 4, 'signed': true},
int4: {bits: 4, signed: true, float: false, be: false},
/**

@@ -59,3 +59,3 @@ * Unsigned 4-bit integers

*/
uInt4: {'bits': 4},
uInt4: {bits: 4, signed: false, float: false, be: false},
/**

@@ -65,3 +65,3 @@ * Signed 8-bit integers

*/
int8: {'bits': 8, 'signed': true},
int8: {bits: 8, signed: true, float: false, be: false},
/**

@@ -71,3 +71,3 @@ * Unsigned 4-bit integers

*/
uInt8: {'bits': 8},
uInt8: {bits: 8, signed: false, float: false, be: false},
// LE

@@ -78,3 +78,3 @@ /**

*/
int16 : {'bits': 16, 'signed': true},
int16 : {bits: 16, signed: true, float: false, be: false},
/**

@@ -84,3 +84,3 @@ * Unsigned 16-bit integers little-endian

*/
uInt16: {'bits': 16},
uInt16: {bits: 16, signed: false, float: false, be: false},
/**

@@ -90,3 +90,3 @@ * Half-precision floating-point numbers little-endian

*/
float16: {'bits': 16, 'float': true},
float16: {bits: 16, signed: true, float: true, be: false},
/**

@@ -96,3 +96,3 @@ * Signed 24-bit integers little-endian

*/
int24: {'bits': 24, 'signed': true},
int24: {bits: 24, signed: true, float: false, be: false},
/**

@@ -102,3 +102,3 @@ * Unsigned 24-bit integers little-endian

*/
uInt24: {'bits': 24},
uInt24: {bits: 24, signed: false, float: false, be: false},
/**

@@ -108,3 +108,3 @@ * Signed 32-bit integers little-endian

*/
int32: {'bits': 32, 'signed': true},
int32: {bits: 32, signed: true, float: false, be: false},
/**

@@ -114,3 +114,3 @@ * Unsigned 32-bit integers little-endian

*/
uInt32: {'bits': 32},
uInt32: {bits: 32, signed: false, float: false, be: false},
/**

@@ -120,3 +120,3 @@ * Single-precision floating-point numbers little-endian

*/
float32: {'bits': 32, 'float': true},
float32: {bits: 32, signed: true, float: true, be: false},
/**

@@ -126,3 +126,3 @@ * Signed 40-bit integers little-endian

*/
int40: {'bits': 40, 'signed': true},
int40: {bits: 40, signed: true, float: false, be: false},
/**

@@ -132,3 +132,3 @@ * Unsigned 40-bit integers little-endian

*/
uInt40: {'bits': 40},
uInt40: {bits: 40, signed: false, float: false, be: false},
/**

@@ -138,3 +138,3 @@ * Signed 48-bit integers little-endian

*/
int48: {'bits': 48, 'signed': true},
int48: {bits: 48, signed: true, float: false, be: false},
/**

@@ -144,3 +144,3 @@ * Unsigned 48-bit integers little-endian

*/
uInt48: {'bits': 48},
uInt48: {bits: 48, signed: false, float: false, be: false},
/**

@@ -150,3 +150,3 @@ * Double-precision floating-point numbers little-endian

*/
float64: {'bits': 64, 'float': true},
float64: {bits: 64, signed: true, float: true, be: false},
// BE

@@ -157,3 +157,3 @@ /**

*/
int16BE : {'bits': 16, 'signed': true, 'be': true},
int16BE : {bits: 16, signed: true, float: false, be: true},
/**

@@ -163,3 +163,3 @@ * Unsigned 16-bit integers big-endian

*/
uInt16BE: {'bits': 16, 'be': true},
uInt16BE: {bits: 16, signed: false, float: false, be: true},
/**

@@ -169,3 +169,3 @@ * Half-precision floating-point numbers big-endian

*/
float16BE: {'bits': 16, 'float': true, 'be': true},
float16BE: {bits: 16, signed: true, float: true, be: true},
/**

@@ -175,3 +175,3 @@ * Signed 24-bit integers big-endian

*/
int24BE: {'bits': 24, 'signed': true, 'be': true},
int24BE: {bits: 24, signed: true, float: false, be: true},
/**

@@ -181,3 +181,3 @@ * Unsigned 24-bit integers big-endian

*/
uInt24BE: {'bits': 24, 'be': true},
uInt24BE: {bits: 24, signed: false, float: false, be: true},
/**

@@ -187,3 +187,3 @@ * Signed 32-bit integers big-endian

*/
int32BE: {'bits': 32, 'signed': true, 'be': true},
int32BE: {bits: 32, signed: true, float: false, be: true},
/**

@@ -193,3 +193,3 @@ * Unsigned 32-bit integers big-endian

*/
uInt32BE: {'bits': 32, 'be': true},
uInt32BE: {bits: 32, signed: false, float: false, be: true},
/**

@@ -199,3 +199,3 @@ * Single-precision floating-point numbers big-endian

*/
float32BE: {'bits': 32, 'float': true, 'be': true},
float32BE: {bits: 32, signed: true, float: true, be: true},
/**

@@ -205,3 +205,3 @@ * Signed 40-bit integers big-endian

*/
int40BE: {'bits': 40, 'signed': true, 'be': true},
int40BE: {bits: 40, signed: true, float: false, be: true},
/**

@@ -211,3 +211,3 @@ * Unsigned 40-bit integers big-endian

*/
uInt40BE: {'bits': 40, 'be': true},
uInt40BE: {bits: 40, signed: false, float: false, be: true},
/**

@@ -217,3 +217,3 @@ * Signed 48-bit integers big-endian

*/
int48BE: {'bits': 48, 'signed': true, 'be': true},
int48BE: {bits: 48, signed: true, float: false, be: true},
/**

@@ -223,3 +223,3 @@ * Unsigned 48-bit integers big-endian

*/
uInt48BE: {'bits': 48, 'be': true},
uInt48BE: {bits: 48, signed: false, float: false, be: true},
/**

@@ -229,3 +229,3 @@ * Double-precision floating-point numbers big-endian

*/
float64BE: {'bits': 64, 'float': true, 'be': true},
float64BE: {bits: 64, signed: true, float: true, be: true},
};
{
"name": "binary-data-types",
"version": "0.0.5",
"version": "0.0.6",
"description": "Binary data types.",

@@ -12,4 +12,11 @@ "main": "./dist/binary-data-types.cjs.js",

"scripts": {
"test": "test",
"build": "rollup --config"
"lint": "jshint index.js && jshint test",
"test": "nyc --require=esm ./node_modules/mocha/bin/_mocha test --recursive -R dot",
"test-esm": "nyc ./node_modules/mocha/bin/_mocha test --esm --require=esm --recursive -R dot",
"test-min": "node ./node_modules/mocha/bin/_mocha test --min --recursive -R dot",
"test-cjs": "node ./node_modules/mocha/bin/_mocha test --cjs --recursive -R dot",
"test-umd": "node ./node_modules/mocha/bin/_mocha test --umd --recursive -R dot",
"test-dist": "npm run test-esm && npm run test-min && npm run test-cjs && npm run test-umd",
"doc": "./node_modules/.bin/jsdoc index.js -d docs -r README.md -t node_modules/docdash",
"build": "npm run lint && rollup --config && npm run test-dist && npm run test"
},

@@ -32,3 +39,9 @@ "repository": {

"devDependencies": {
"browser-env": "^3.2.5",
"esm": "^3.0.55",
"google-closure-compiler-js": "^20180610.0.0",
"jshint": "^2.9.5",
"mocha": "^5.2.0",
"mocha-lcov-reporter": "^1.3.0",
"nyc": "^12.0.2",
"rollup": "^0.61.2",

@@ -35,0 +48,0 @@ "rollup-plugin-closure-compiler-js": "^1.0.6"

# binary-data-types
Pack and unpack binary data.
Copyright (c) 2017-2018 Rafael da Silva Rocha.
https://github.com/rochars/binary-data-types
Binary data types.
Binary data types definitions.

@@ -13,2 +11,37 @@ ## Install

## Use
## Node
```javascript
const BinaryDataTypes = require('binary-data-types');
console.log(BinaryDataTypes.uInt8);
```
### Browser
Use the minified file in the */dist* folder:
```html
<script src="binary-data-types.min.js"></script>
<script>
console.log(BinaryDataTypes.uInt8);
</script>
```
Or get it from the [jsDelivr](https://www.jsdelivr.com) CDN:
```html
<script src="https://cdn.jsdelivr.net/npm/binary-data-types"></script>
```
Or get it from [unpkg](https://www.unpkg.com):
```html
<script src="https://unpkg.com/binary-data-types"></script>
```
Or as a module from [jspm](https://jspm.io):
```html
<script type="module">
import BinaryDataTypes from 'https://dev.jspm.io/binary-data-types';
console.log(BinaryDataTypes.uInt8);
</script>
```
## Types

@@ -15,0 +48,0 @@

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