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

@types/bytes

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/bytes - npm Package Compare versions

Comparing version 3.0.0 to 3.1.0

23

bytes/index.d.ts

@@ -1,19 +0,12 @@

// Type definitions for bytes 3.0
// Type definitions for bytes 3.1
// Project: https://github.com/visionmedia/bytes.js
// Definitions by: Zhiyuan Wang <https://github.com/danny8002>
// Rickard Laurin <https://github.com/believer>
// Florian Keller <https://github.com/ffflorian>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
interface BytesOptions {
decimalPlaces?: number;
thousandsSeparator?: string;
unitSeparator?: string;
fixedDecimals?: boolean;
unit?: string;
}
/**
* Convert the given value in bytes into a string.
*/
declare function bytes(value: number, options?: BytesOptions): string;
declare function bytes(value: number, options?: bytes.BytesOptions): string;

@@ -26,2 +19,12 @@ /**

declare namespace bytes {
type Unit = 'b' | 'gb' | 'kb' | 'mb' | 'pb' | 'tb' | 'B' | 'GB' | 'KB' | 'MB' | 'PB' | 'TB';
interface BytesOptions {
decimalPlaces?: number;
fixedDecimals?: boolean;
thousandsSeparator?: string;
unit?: Unit;
unitSeparator?: string;
}
/**

@@ -28,0 +31,0 @@ * Format the given value in bytes into a string.

{
"name": "@types/bytes",
"version": "3.0.0",
"version": "3.1.0",
"description": "TypeScript definitions for bytes",

@@ -16,13 +16,20 @@ "license": "MIT",

"githubUsername": "believer"
},
{
"name": "Florian Keller",
"url": "https://github.com/ffflorian",
"githubUsername": "ffflorian"
}
],
"main": "",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/bytes"
},
"scripts": {},
"dependencies": {},
"typesPublisherContentHash": "f668e9d7f1280973cb85657c8dc2dd3529fb0eff9bd1a01a0f260e68c44cc4cf",
"typeScriptVersion": "2.0"
"typesPublisherContentHash": "1132907454ff62dfe83c266bba399acd50d507b2a6514309486fd20607330d8e",
"typeScriptVersion": "2.8"
}

@@ -8,6 +8,6 @@ # Installation

# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/bytes
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/bytes.
Additional Details
* Last updated: Thu, 01 Mar 2018 21:23:58 GMT
### Additional Details
* Last updated: Mon, 11 Nov 2019 19:50:33 GMT
* Dependencies: none

@@ -17,2 +17,2 @@ * Global values: none

# Credits
These definitions were written by Zhiyuan Wang <https://github.com/danny8002>, Rickard Laurin <https://github.com/believer>.
These definitions were written by Zhiyuan Wang (https://github.com/danny8002), Rickard Laurin (https://github.com/believer), and Florian Keller (https://github.com/ffflorian).
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