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

@transloadit/prettier-bytes

Package Overview
Dependencies
Maintainers
6
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@transloadit/prettier-bytes - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

3

dist/prettierBytes.d.ts

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

export default function prettierBytes(num: number): string;
declare const _default: (num: number) => string;
export = _default;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function prettierBytes(num) {
module.exports = function prettierBytes(num) {
if (typeof num !== 'number' || Number.isNaN(num)) {

@@ -22,4 +21,3 @@ throw new TypeError(`Expected a number, got ${typeof num}`);

return `${(neg ? '-' : '') + num.toFixed(1)} ${unit}`;
}
exports.default = prettierBytes;
};
//# sourceMappingURL=prettierBytes.js.map
{
"name": "@transloadit/prettier-bytes",
"license": "MIT",
"version": "0.2.0",
"version": "0.3.0",
"publishConfig": {

@@ -26,3 +26,3 @@ "access": "public"

},
"gitHead": "3fbbb8c4c18eeb9b9de5e3a5c022d46a7cc40800"
"gitHead": "df8101d46064782dd743550aac74ab6afdb6b82c"
}

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