https://github.com/baslr/node-blkid
abstract blkid cmd
https://github.com/baslr/node-blkid
Last synced: over 1 year ago
JSON representation
abstract blkid cmd
- Host: GitHub
- URL: https://github.com/baslr/node-blkid
- Owner: baslr
- Created: 2015-05-27T18:07:55.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-05-27T19:34:05.000Z (about 11 years ago)
- Last Synced: 2025-02-25T20:47:15.257Z (over 1 year ago)
- Language: CoffeeScript
- Size: 125 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
blkid
=====
## usage
```coffeescript
blkid = require 'blkid'
blkid.all (partitions) ->
# [{
# partition : '/dev/sdx',
# uuid : 'xxx',
# uuid_sub : 'xxx',
# type : 'fs-type',
# partlabel : 'primary',
# partuuid : 'xxx'
# }]
blkid.partitions ['/dev/sda1'], (partitions) ->
# will output the infos for sda1
blkid.devices (devices) -> # ['sda', 'sdb', 'sdc', 'sdx']