Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/cleydyr/cutter-sanborn-js
- Owner: cleydyr
- Created: 2024-11-01T14:24:35.000Z (2 months ago)
- Default Branch: master
- Last Pushed: 2024-11-01T14:29:58.000Z (2 months ago)
- Last Synced: 2024-11-01T14:45:47.316Z (2 months ago)
- Language: TypeScript
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```