node-pressgang-cylon-processor
A node module that provides a pure JavaScript re-implementation PressGang CCMS Content Spec Processor functionality. "Why?" I hear you ask. This reimplementation provides Content Spec Processor functionality as a library, so that you can hook all kinds of weird and wonderful things into the processing.
Installation
npm install pressgang-cylon
Basic Usage
First, require pressgang-cylon
:
var cylon = ;
The Cylon Processor implements csprocessor checkout
:
var url = 'http://pressgang.server.com:8080/TopicIndex';var id = 8432;var dir = '/opt/checkouts' cylon;
The callback function receives a Content Specification metadata object with all the metadata from the Content Specification. This is useful if you want to generate an index of checked out books.
You can extract the metadata from a Content Specification using getSpecMetadata
:
cylon;
You can get a Content Specification with getSpec
:
cylon;