13 lines
640 B
Markdown
13 lines
640 B
Markdown
|
# lib directory
|
||
|
|
||
|
This directory contains core scriptcraft files and modules.
|
||
|
|
||
|
* plugin.js - A module which provides support for persistent plugins (plugins which need to save state)
|
||
|
* require.js - The require() function implementation. See [Node.js modules] documentation.
|
||
|
* scriptcraft.js - The core scriptcraft code.
|
||
|
* events.js - Event handling module for use by plugin/module developers.
|
||
|
|
||
|
When `require('modulename')` is called, if a file in the current working directory called 'modulename' is not found then the `lib` folder is the first location that `require()` looks for modules.
|
||
|
|
||
|
[njsmod]: http://nodejs.org/api/modules.html
|