crcn / plugin.js

Simple plugin system for javascript
14 stars 5 forks source link

Basic Usage does not work (TypeError) #19

Open nodecode opened 10 years ago

nodecode commented 10 years ago

Console output:

> var plugin = require('plugin').loader()
TypeError: Object function () {
    return plugin(arguments, require("./fs/node"), [
        require("./loaders/node/js")
    ]);
} has no method 'loader'
    at repl:1:32
    at REPLServer.self.eval (repl.js:110:21)
    at repl.js:249:20
    at REPLServer.self.eval (repl.js:122:7)
    at Interface. (repl.js:239:12)
    at Interface.EventEmitter.emit (events.js:95:17)
    at Interface._onLine (readline.js:202:10)
    at Interface._line (readline.js:531:8)
    at Interface._ttyWrite (readline.js:760:14)
    at ReadStream.onkeypress (readline.js:99:10)

Btw, is plugin.js dead or still alive?

crcn commented 10 years ago

pretty much dead. Use https://github.com/classdojo/node-packages instead.