Sand Base Grain/Module
All Grains (Modules) used by Sand must first extend this base grain.
To begin
-
Install it:
$ npm install sand-grain -S -
Create a new module which extends SandGrain and implement
SandGrain.name
property,SandGrain.init()
method and, optionally,SandGrain.shutdown()
var SandGrain = ;var MyModule = SandGrain; -
Use your shiny new module with Sand
var sand = ;var MyModule = ;sandstart;// now that sand is started, you can use sand.MyModule.myFunction() anywhere in your project
License
ISC © 2014 Pocketly