evo-elements

0.0.3 • Public • Published

Build Status

evo-elements

Overview

This package includes common and basic building elements for all evo projects.

In this version, it includes:

  • BiMap: a bi-directional map which maps a key entity <key1, key2> to a value;
  • Config: a simple configuration framework to release you from writing similar code in projects;
  • DelayedJob: ensure a postponed job won't be scheduled multiple times;
  • Errors: unified error representation;
  • Logger: logging infrastructure using syslog levels;
  • Schema: data object validation and normalization;
  • StateMachine: a state machine with easy-to-use DSL;
  • States: a basic framework for building a state machine;
  • Trace: simple console logging with predefined levels and customizable component names;
  • Try: simple try/catch block wrapper to save you writing try/catch by routing exception to callback.

Install

npm install evo-elements

or pull directly from github.com and link to your project:

git clone https://github.com/evo-cloud/elements
npm link elements --prefix=node_modules

In your JavaScript code, use

var elements = require('evo-elements');

How to Use

See doc for manuals of individual components.

License

MIT/X11 License

Dependencies (7)

Dev Dependencies (2)

Package Sidebar

Install

npm i evo-elements

Weekly Downloads

0

Version

0.0.3

License

none

Last publish

Collaborators

  • easeway