UNPKG

@lifeomic/cli

Version:

CLI for interacting with the LifeOmic PHC API.

13 lines (10 loc) 257 B
'use strict'; const yaml = require('js-yaml'); const getStdin = require('get-stdin'); module.exports = async function (options) { if (options.json) { return JSON.parse(await getStdin()); } else { return yaml.safeLoad(await getStdin()); } };