Skip to content

baslr/node-blkid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

blkid

usage

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']

About

abstract blkid cmd

Resources

Stars

Watchers

Forks

Packages

No packages published