ahnen

1.0.2 • Public • Published

Ahnen.js

A set of javascript functions for interpreting ahnentafel numbers for genealogy. Try it out here.

Works with node.js. A standalone version of the code is available in the Standalone folder.

Functions

ahnen.sex(int)

Returns string Male or Female associated with the Ahnen number int.

ahnen.line(int)

Returns string 'rootPerson', 'fathersLine', 'mothersLine', or 'undetermined'.

ahnen.fullLine(int)

IMPORTANT! In this function M means Mother and F means Father, NOT male and female.

Returns an array of the relationship between ahnen number int and ahnen number 1. For example, the ahnen number 10 would return the array [M, F, M], meaning the root person's mother's father's mother.

Package Sidebar

Install

npm i ahnen

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

9.91 kB

Total Files

6

Last publish

Collaborators

  • jukilum