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']
-
Notifications
You must be signed in to change notification settings - Fork 0
baslr/node-blkid
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|