iching

A c/c++ library for calculation birth/core/end hexagram numbers

I-Ching birth/core/end hexagram calculation library

This is a static c/c++ library for calculation birth/core/end hexagram numbers.

This library works with Node.js 0.8.x and 0.10.x.

Maybe it works with the 0.6. If it so, please, let me know.

You can install the library via npm:

npm install iching

You should have node-gyp and c++ compiler (gcc or clang) installed.

Read this Livejournal post (in russian) for the explanation (about I-Ching).

View tests/test.c or tests/test.cc for the usage example.

Sample test.js:

var iching=require('iching');
console.log(iching.getHexagrams(1980,11,24,1));

Should print out:

{ birth: 23, core: 2, end: 2, mline: 6 }