JSPM

  • Created
  • Published
  • Downloads 241
  • Score
    100M100P100Q78649F
  • License MIT

A BBCode to Vue2 Renderer part of @bbob

Package Exports

  • @bbob/vue2
  • @bbob/vue2/dist/index.js
  • @bbob/vue2/es/index.js
  • @bbob/vue2/lib/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@bbob/vue2) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@bbob/vue2

install size Known Vulnerabilities

Converts @bbob/parser AST tree to Vue 2

npm i @bbob/vue2 @bbob/preset-vue
import Vue from 'vue'
import VueBbob from '@bbob/vue2';

Vue.use(VueBbob);
<template>
  <div class="vue2">
    <h2>Generated vue2 here</h2>
    <bbob-bbcode container="div" :plugins="plugins">{{ bbcode }}</bbob-bbcode>
  </div>
</template>
<script>
  import Vue from 'vue'
  import preset from '@bbob/preset-vue'
  
  export default Vue.extend({
    name: 'App',
    data() {
      return {
        bbcode: 'Text [b]bolded[/b] and [i]Some Name[/i]',
        plugins: [
          preset()
        ],
      }
    }
  })
</script>