New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

disk-calc

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

disk-calc - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

6

bin/disk-calc.js

@@ -64,3 +64,4 @@ #!/usr/bin/env node

try {
process.stdout.write('NTFS format size: ' + (calc('Windows', 'NTFS', diskSize, hideSize) + ' MB').green + os.EOL)
process.stdout.write('NTFS format size: ' +
(calc('Windows', 'NTFS', diskSize, hideSize) + ' MB').green + os.EOL)
} catch (e) {

@@ -72,3 +73,4 @@ process.stderr.write(e.message.red + os.EOL)

try {
process.stdout.write('FAT32 format size: ' + (calc('Windows', 'FAT32', diskSize, hideSize) + ' MB').green + os.EOL)
process.stdout.write('FAT32 format size: ' +
(calc('Windows', 'FAT32', diskSize, hideSize) + ' MB').green + os.EOL)
} catch (e) {

@@ -75,0 +77,0 @@ process.stderr.write(e.message.red + os.EOL)

@@ -11,5 +11,5 @@ /**

* @param {string} format
* @param {int|float} diskSize
* @param {int|float} [hideSize]
* @return {int|float}
* @param {int|float} diskSize(GB unit partition size)
* @param {int|float} [hideSize(GB unit hidden partition size)]
* @return {int|float} MB unit partition size
* @api public

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

@@ -9,4 +9,4 @@ /**

*
* @param {string} size
* @return {int|float}
* @param {string} size(GB/MB/KB unit partition size)
* @return {int|float} GB unit partition size
* @api public

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

{
"name": "disk-calc",
"version": "1.0.0",
"description": "Hard disk calculation.",
"version": "1.0.1",
"description": "Hard disk calculation. Easy to calculate integer hard disk partition.",
"main": "index.js",

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

@@ -6,5 +6,7 @@ # disk-calc

[![Dependency](https://david-dm.org/WindomZ/disk-calc.svg)](https://david-dm.org/WindomZ/disk-calc)
[![Coverage Status](https://coveralls.io/repos/github/WindomZ/disk-calc/badge.svg?branch=dev)](https://coveralls.io/github/WindomZ/disk-calc?branch=dev)
[![Standard - JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com/)
> Hard disk calculation.
> Hard disk calculation.
> Easy to calculate integer hard disk partition.

@@ -46,9 +48,9 @@ [![NPM](https://nodei.co/npm/disk-calc.png)](https://nodei.co/npm/disk-calc/)

```bash
$ disk-calc usage # Display the program steps in English.
$ disk-calc usage -c # Display the program steps in Chinese.
$ disk-calc windows 10 # Calculate the size of the 10G partition
$ disk-calc windows 10g # Calculate the size of the 10G partition
$ disk-calc windows 10G # Calculate the size of the 10G partition
$ disk-calc windows 10GB # Calculate the size of the 10G partition
$ disk-calc windows 10 566M # Calculate the size of the 10G partition + 566MB hidden partition sizes
$ disk-calc usage # Display the program steps in English.
$ disk-calc usage -c # Display the program steps in Chinese.
$ disk-calc windows 10 # Calculate the size of the 10G partition
$ disk-calc windows 10g # Calculate the size of the 10G partition
$ disk-calc windows 10G # Calculate the size of the 10G partition
$ disk-calc windows 10GB # Calculate the size of the 10G partition
$ disk-calc windows 10G 566M # Calculate the size of the 10G partition + 566MB hidden partition sizes
```

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