/pha

A library to calculate the call number based on the PHA table as per the Heloisa Almeida Prado's "Tabela PHA"

Primary LanguageTypeScript

PHA

A library for the PHA call number system.

Usage

import { PHATableFactory } from "pha";

const phaTable = PHATableFactory.createTable();

phaTable.callNumber("lentino", "noemia") === 589; // true
phaTable.callNumber("prado", "heloisa") === 917; // true

Testing

To run the tests for this library, use the following command:

npm run test