oh-my-posh/website/docs/segments/npm.md
2022-05-13 08:19:35 +02:00

802 B

id title sidebar_label
npm npm NPM

What

Display the currently active npm version.

Sample Configuration

{
  "type": "npm",
  "style": "powerline",
  "powerline_symbol": "\uE0B0",
  "foreground": "#193549",
  "background": "#ffeb3b",
  "template": "\ue71e {{ .Full }} "
}

Template (info)

:::note default template

\ue71e {{.Full}}

:::

Properties

  • .Full: string - the full version
  • .Major: string - major number
  • .Minor: string - minor number
  • .Patch: string - patch number
  • .URL: string - URL of the version info / release notes
  • .Error: string - error encountered when fetching the version string