vue-pnpjs
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

Vue.js and PnP.js integration plugin

How to use

  1. Install the plugin:
       npm install vue-pnpjs
  2. Initialize it in your main file:
       import Vue from 'vue';
       import VuePnP from 'vue-pnpjs';
     
       import { sp } from '@pnp/sp';
       import { graph } from '@pnp/graph';
       import { setup } from '@pnp/common';
     
       setup({...})
     
       Vue.use(VuePnP, {
         sp: sp,
         graph: graph
       });
  3. Use it in your Vue instances:
      this.$pnp.sp.web.get().then(...)

/vue-pnpjs/

    Package Sidebar

    Install

    npm i vue-pnpjs

    Weekly Downloads

    3

    Version

    0.0.3

    License

    MIT

    Unpacked Size

    3.67 kB

    Total Files

    8

    Last publish

    Collaborators

    • s-kainet