radic
Overview
radic
is the core library and application for many of my node applications.
- It exports a variety of objects, classes and instances for external use.
radic
is also a stand-alone application which manages global configuration and such.
How to use
Documentation
Installation
# Globally install radic for using radic command line tools sudo npm install -g radic # Local install into project for using libraries and helpers npm install --save radic
Overview
Module | Description |
---|---|
config | persitent file based configuration |
db | file based database. Uses models/schemas with validation |
git | local commands like add, commit etc. also includes API for github/bitbucket |
util | extends the core util functionality with extras |
ui | .. |
cli | cli commands, output, input etc |
net | network functionality, like downloading |
sh | shell exec, execsync, execlist etc |
binwraps | wraps cli commands in a nice coat. |
google api functions |
Basic usage
Config
var radic = Config = radicConfig config = 'config' /** options */ ; var abc = config; config; config; // saves the modified configuration to fileconfig;configclear;config; // or this
Cli
#!/usr/bin/env nodevar radic = cli = radiccli; cli description'Shows current version' method { clilog; }; cli;
SH
var radic = ;var result; // Synchronous execresult = radicsh;console; console; // Inline scripts result = radicsh;console;console; result = radicsh;console;console;
Net
var radic = ;radicnet;
Binwraps
var radic = ; var binwraps = radicbinwraps; binwraps; var vbox = binwrapsvboxmanage;var result = ;console; binwrapsautoSyncExec = false;; var commands = binwraps;binwraps commands0 'arg' weed: 'bad' ; // just an example..
DB
File based database
var db = 'radic'; var user = db;
License
Copyright 2014 Robin Radic