npm/npx

how to create an npx preset?

Opened this issue · 1 comments

I can run npx envinfo@latest --preset nyc:

⟩ npx envinfo@latest --preset nyc
npx: installed 1 in 1.139s

  System:
    OS: macOS Mojave 10.14.6
    CPU: (8) x64 Intel(R) Core(TM) i7-3635QM CPU @ 2.40GHz
    Memory: 2.11 GB / 16.00 GB
  Binaries:
    Node: 12.5.0 - ~/.nvm/versions/node/v12.5.0/bin/node
    Yarn: 1.16.0 - ~/.nvm/versions/node/v12.5.0/bin/yarn
    npm: 6.9.0 - ~/.nvm/versions/node/v12.5.0/bin/npm
  npmPackages:
    nyc: ^15.0.0 => 15.0.0

could you write docs how to write an npx preset so when replacying nyc with my library name, I could obtain my custom result?

or npx envinfo@latest --preset apollo