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

prettier-bytes

Package Overview
Dependencies
Maintainers
6
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prettier-bytes - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

2

index.js
module.exports = prettierBytes
function prettierBytes (num) {
if (typeof num !== 'number' || Number.isNaN(num)) {
if (typeof num !== 'number' || isNaN(num)) {
throw new TypeError('Expected a number, got ' + typeof num)

@@ -6,0 +6,0 @@ }

{
"name": "prettier-bytes",
"description": "augment pretty-bytes to make the output a little more readable (and a little less precise)",
"version": "1.0.3",
"version": "1.0.4",
"author": "Dan Flettre <flettre@gmail.com>",

@@ -6,0 +6,0 @@ "bugs": {

@@ -35,3 +35,3 @@ # prettier-bytes

console.log(pretty)
// logs 1.3 kB
// logs 1.3 KB
```

@@ -38,0 +38,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