An open API service indexing awesome lists of open source software.

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

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