1.0.12 • Published 5 years ago

@author.io/metadoc-plugin v1.0.12

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

metadoc-plugin

An extendable base class for building metadoc plugins.

Usage

npm install @author.io/metadoc-plugin -D

An example plugin:

const MetadocPlugin = require('@author.io/metadoc-plugin')

class MyPlugin extends MetadocPlugin {
  constructor () {
    super(...arguments)
  }

  process () {
    console.log('Do something with', this.data)
  }
}

The metadoc plugin base class is en extension of the Node.js EventEmitter class, meaning it can fire events.

It's a pretty simplistic class, so it might be easier to just read the code.

The key elements are the source and output attributs and the helper methods.

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago