https://github.com/windomz/disk-calc
Hard disk calculation - Easy to calculate integer hard disk partition.
https://github.com/windomz/disk-calc
calculator cli disk-calc
Last synced: about 1 year ago
JSON representation
Hard disk calculation - Easy to calculate integer hard disk partition.
- Host: GitHub
- URL: https://github.com/windomz/disk-calc
- Owner: WindomZ
- License: mit
- Created: 2017-05-27T15:37:41.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2020-06-01T01:29:54.000Z (about 6 years ago)
- Last Synced: 2025-02-28T20:04:29.257Z (over 1 year ago)
- Topics: calculator, cli, disk-calc
- Language: JavaScript
- Homepage:
- Size: 910 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
```
_______ __ _______. __ ___ ______ ___ __ ______
| \ | | / || |/ / / | / \ | | / |
| .--. || | | (----`| ' / ______| ,----' / ^ \ | | | ,----'
| | | || | \ \ | < |______| | / /_\ \ | | | |
| '--' || | .----) | | . \ | `----./ _____ \ | `----.| `----.
|_______/ |__| |_______/ |__|\__\ \______/__/ \__\ |_______| \______|
```
[](https://greenkeeper.io/)
[](https://travis-ci.org/WindomZ/disk-calc)
[](https://coveralls.io/github/WindomZ/disk-calc?branch=dev)
[](https://david-dm.org/WindomZ/disk-calc)
[](https://standardjs.com/)
[](https://opensource.org/licenses/MIT)
[](https://app.fossa.io/projects/git%2Bgithub.com%2FWindomZ%2Fdisk-calc?ref=badge_shield)
> Hard disk calculation.
> Easy to calculate integer hard disk partition.
[](https://nodei.co/npm/disk-calc/)
[](https://www.npmjs.com/package/disk-calc)
[](https://www.npmjs.com/package/disk-calc)
## Installation
```bash
npm install -g disk-calc
```
## Usage
```bash
$ disk-calc -h
Usage: disk-calc [options] [command]
Commands:
usage|u [options]
windows|win [hide_size]
Hard disk calculation.
Options:
-h, --help output usage information
-V, --version output the version number
```
## Examples
```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 10G 566M # Calculate the size of the 10G partition + 566MB hidden partition sizes
```
## Contributing
Welcome to pull requests, report bugs, suggest ideas and discuss **disk-calc**,
i would love to hear what you think about **disk-calc** on [issues page](https://github.com/WindomZ/disk-calc/issues).
If you like it then you can put a :star: on it.
## License
[MIT](https://github.com/WindomZ/disk-calc/blob/master/LICENSE)
[](https://app.fossa.io/projects/git%2Bgithub.com%2FWindomZ%2Fdisk-calc?ref=badge_large)