Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cleydyr/cutter-sanborn-js

A library to calculate the call number based on the Cutter-Sanborn table
https://github.com/cleydyr/cutter-sanborn-js

Last synced: about 2 months ago
JSON representation

A library to calculate the call number based on the Cutter-Sanborn table

Awesome Lists containing this project

README

        

# cutter-sanborn-js

A library for the Cutter-Sanborn call number system written in Javascript.

## Usage

```javascript
import { CutternSanbornTableFactory } from "cutter-sanborn-js";

const cutterSanbornTable = CutternSanbornTableFactory.createTable();

cutterSanbornTable.callNumber("lentino", "noemia") === 574; // true
cutterSanbornTable.callNumber("prado", "heloisa") === 896; // true
```

## Testing

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

```bash
npm run test
```