0.4.4 • Published 6 years ago

pown-modules v0.4.4

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

pown-modules Gitter

Utility library for working with Pown.js modules.

Quickstart

From the same directory as your project's package.json, install this module with the following command:

$ npm install pown-modules --save

Once that's done, you can list all installed pown modules like this:

const pownModules = require('pown-modules')

pownModules.list((err, modules) => {
    if (err) {
        console.error(err)

        return
    }

    modules.forEach((module) => {
        // do something with module.config, module.package or module.realpath
    })
})

Pown Modules

A pown module is a regular NPM module which exports pown features and options via package.json or .pownrc.

Example: package.json

{
    "pown": {
        "main": "./main.js",
        "command": "./mytool.js",
        "commands": [
            "./mytool2.js"
        ],
        "plugin": "./myplugin.js",
        "plugins": [
            "./myplugin2.js"
        ]
    }
}

Example: .pownrc

{
    "main": "./main.js",
    "command": "./mytool.js",
    "commands": [
        "./mytool2.js"
    ],
    "plugin": "./myplugin.js",
    "plugins": [
        "./myplugin2.js"
    ]
}
0.4.4

6 years ago

0.4.3

7 years ago

0.4.2

7 years ago

0.4.1

7 years ago

0.4.0

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago