subjects-utils
v0.0.2
Published
Utilities to use subject codes (BISAC)
Downloads
236
Readme
Licenses Utilities
This node package contains multiple utilies to manage BISAC subjects.
How to install it?
$ npm install subjects-utils
How to use it?
Include the library:
var subjects = require("subjects-utils");
By code:
var subject = subjects.byCode("ANT007000");
// subject.label -> "ANTIQUES & COLLECTIBLES / Buttons & Pins"
By label:
var subject = subjects.byLabel('ANTIQUES & COLLECTIBLES / Dolls');
// subject.code -> "ANT007000"
All BISAC codes:
subjects.all.bisac