https://github.com/balena-io-modules/win-drive-clean
Remove a disks partition table on Windows
https://github.com/balena-io-modules/win-drive-clean
partition-table windows
Last synced: about 1 month ago
JSON representation
Remove a disks partition table on Windows
- Host: GitHub
- URL: https://github.com/balena-io-modules/win-drive-clean
- Owner: balena-io-modules
- License: other
- Created: 2018-01-31T22:03:35.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-17T21:12:13.000Z (about 7 years ago)
- Last Synced: 2024-04-15T01:58:27.015Z (about 1 year ago)
- Topics: partition-table, windows
- Language: C++
- Size: 30.3 KB
- Stars: 4
- Watchers: 5
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# win-drive-clean
[](https://npmjs.com/package/win-drive-clean)
[](https://npmjs.com/package/win-drive-clean)
[](https://npmjs.com/package/win-drive-clean)
[](https://travis-ci.org/resin-io-modules/win-drive-clean/branches)
[](https://ci.appveyor.com/project/resin-io/win-drive-clean/branch/master)
[](https://david-dm.org/resin-io-modules/win-drive-clean)
[](https://gitter.im/resin-io/etcher)Remove a disks partition table on Windows
## Install via [npm](https://npmjs.com)
```sh
$ npm install --save win-drive-clean
```## Usage
```js
const driveClean = require('win-drive-clean')
```**NOTE:** As this is Windows only, calling `driveClean()` on other platforms will be a NOOP and always succeed.
```js
driveClean('\\\\.\\PhysicalDrive5', (error) => {
// ...
})
```