New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

nfifo

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nfifo

Simple node.js lib and cli that connects with a Project-FiFo API

latest
Source
npmnpm
Version
0.7.2
Version published
Weekly downloads
1
-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

nFiFo

NPM

This is a little handy node.js lib to connect to Project FiFo, an VM administration system that uses SmartOS.

Its a simplist alternative to fifo.js that let you query the fifo api.

It will read the file ~/.fifo just like pyfi to read the login credentials

How to use it

Check out an example here.

Additionally, you can install it as a CLI, with npm install nfifo -g:

  • Show all vms, in table format

    nfifo vms

  • Show all vms, in plain json format

    nfifo --table false vms

  • Show dataset base64-14.1.0 details

nfifo datasets 8639203c-d515-11e3-9571-5bf3a74f354f | prettyjson

  • Delete dataset base64-14.1.0

nfifo --method delete datasets 8639203c-d515-11e3-9571-5bf3a74f354f

  • Show all packages, with curl tip

nfifo --curl true packages

  • Dump the zvol of the dataset base64-14.1.0 to a file

nfifo --json false datasets 8639203c-d515-11e3-9571-5bf3a74f354f dataset.gz > file.zvol.gz

  • Create a new package, from stdin

echo '{"cpu_cap": 100, "name": "small", "quota": 10, "ram": 1024}' | nfifo --method post --stdin packages

  • Create a new VM, from file

nfifo --method post --file ./vm_spec.json vms

  • Upload a dataset:
nfifo-upload-dataset.js --zvol file.zvol.gz --manifest manifest_file.json
Uploading (19.0s) [===========----------------------------------------------------------------------] 17% ETA 90.8s

Note: prettyjson and json can be installed with npm install -g ...

Keywords

Project-FiFo

FAQs

Package last updated on 05 Jan 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts