The idea of this library is to provide you with all the essential building blocks you need to get your node on. Extensive. Consistent. Structured. Modular. Grab what you need; ignore the rest.
Like it? Don't like it? It's all about picking your poison. I've chosen an uncommon (unorthodox?) poison, but this library will be updated frequently, have many examples and documentation, and that's what matters.
- core - Essentials. Mixin your way to victory!
- database - We all need a little persistency in our lives.
- debug - Write to me.
- framework - MVC? HMVC? MVVM? Your choice.
- site - Startup.
- Run this command:
npm install node-std. If you don't have NPM installed, you can get it here, navigate to the
node-stddirectory and run:
npm install .
var std = require('std').std; var blog = std('import blog'); var p1 = blog.post(); p1.title = 'Hello world!';
- Install node-std if you haven't already.
modulesdirectory for your module.
- Add a
__init__.jspackage file to your module directory.
- Add any exports to your package file that you may want to be accessible.
- You're ready to create your module's structure.
Add your modules to node-std's importer:
var std = require('std').std; std.prototype.add_path('./modules'); var my_module = std('import my_module');
The API is still under construction, and may experience highly volatile changes.
You can find the library in the
Command to watch and compile:
You can find existing unit tests in the
Projects using node-std
- Nether (unreleased)
Major thanks to the CoffeeScript team.
Uses the following Node modules: backbone, underscore, connect, socket.io