vuepress-theme-hope

vuepress-shared

Some powerful utils for VuePress2

Install

pnpm add -D vuepress-shared@next

Usage

Note

VuePress is running on both Node.js Side and Browser Side, we called it node and client.

So you should be aware to import the correct file, as Node.js has build-in modules and has ability to access file system, and browser has global variables like window or navigator.

  • At Node Side, you should import functions from vuepress-shared/node.
  • At Client Side, you should import functions from vuepress-shared/client.