How to use figgy-pudding - 1 common examples

To help you get started, we’ve selected a few figgy-pudding examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github npm / tink / lib / commands / view.js View on Github external
import figgyPudding from 'figgy-pudding'
import libnpm from 'libnpm'
import npmlog from 'npmlog'

import { h, renderToString } from 'ink'
import { PackageView, PackageFields } from '../components/view.jsx'

const ViewOpts = figgyPudding({
  field: {},
  json: {},
  log: { default: () => npmlog },
  'pkg@version': {}
})

export default async function (argv, opts) {
  opts = ViewOpts(opts)

  let { 'pkg@version': spec, field: fields } = opts

  if (!spec) { spec = '.' }
  if (!fields) { fields = [] }

  const packument = await libnpm.packument(spec, opts.concat({
    fullMetadata: true

figgy-pudding

Delicious, festive, cascading config/opts definitions

ISC
Latest version published 4 years ago

Package Health Score

52 / 100
Full package analysis

Popular figgy-pudding functions