{"_id":"pressgang-rest","_rev":"41-d612dfcfd297570c5808c94976208c5f","name":"pressgang-rest","description":"A high level library for REST communication with a PressGang Component Content Management System (CCMS) Server","dist-tags":{"latest":"0.2.0"},"versions":{"0.0.1":{"name":"pressgang-rest","version":"0.0.1","description":"A high level library for REST communication with a PressGang Component Content Management System (CCMS) Server","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/jwulf/node-pressgang-rest.git"},"keywords":["pressgang","rest"],"author":{"name":"Joshua Wulf"},"license":"BSD","dependencies":{"restler":"~2.0.1"},"directories":{"doc":".","test":null,"example":null},"readme":"#pressgang-ccms-rest-node\n\nA node module that provides a REST client library for the PressGang CCMS. It provides a more semantic interface for application development than the raw PressGang REST interface. Uses restler for the REST interface.\n\n##Installation\n\n```bash\nnpm install pressgang-ccms-rest-node\n```\n## Basic Usage\n\nFirst, require `pressgang-ccms-rest-node`:\n\n```js\nvar PressGangCCMS = require('pressgang-ccms-rest-node').PressGangCCMS;\n```\nNext, create a new PressGangCCMS object:\n\n```js\nvar pressgang = new PressGangCCMS('http://127.0.0.1:8080/TopicIndex');\n```\n\nNow, you can get the XML of a topic:\n\n```js\npressgang.getTopicData('xml', 8445, \n\tfunction(err, result){\n\t\tconsole.log('The topic xml content is:' + result);\n\t});\n```\n\nTo get the JSON representation of a topic:\n\n```js\npressgang.getTopicData('json', 8445, \n\tfunction(err, result){\n\t\tconsole.log('The JSON representation of the topic is:' \n\t\t+ JSON.Stringify(result);\n\t});\n```\n\n`isContentSpec` is an example of a more semantic interface to PressGang:\n\n```js\npressgang.isContentSpec(456, \n\tfunction(err, is){\n\t\tif (is) console.log('Topic 456 is a Content Specification')\n\t});\n```\n\n","_id":"pressgang-rest@0.0.1","dist":{"shasum":"8d5edad46ddee5192528ef75a7c69e061854766d","tarball":"https://registry.npmjs.org/pressgang-rest/-/pressgang-rest-0.0.1.tgz","integrity":"sha512-wBMP3t0/ZKa3QAg9i6ZbIIL6QteGDs18vS0UORuByLz+9US0VqvibRaCGHs0nOujQnexdC7PsdTPsjXH/cCFqA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGbC+iKp3Wc+LmSucyDpx5C/CkM4GWP5kjneYgWwVy1MAiEA78VwSV5GPP7tKRCRXuPzbhGBO4qpIqAjRtm7T6R74mY="}]},"_npmVersion":"1.1.62","_npmUser":{"name":"sitapati","email":"sitapati@worldsankirtan.net"},"maintainers":[{"name":"sitapati","email":"sitapati@worldsankirtan.net"}]},"0.0.2":{"name":"pressgang-rest","version":"0.0.2","description":"A high level library for REST communication with a PressGang Component Content Management System (CCMS) Server","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/jwulf/node-pressgang-rest.git"},"keywords":["pressgang","rest"],"author":{"name":"Joshua Wulf"},"license":"BSD","dependencies":{"restler":"~2.0.1"},"directories":{"doc":".","test":null,"example":null},"readme":"#node-pressgang-rest\n\nA node module that provides a REST client library for the PressGang CCMS. It provides a more semantic interface for application development than the raw PressGang REST interface. Uses restler for the REST interface.\n\n##Installation\n\n```bash\nnpm install pressgang-rest\n```\n## Basic Usage\n\nFirst, require `pressgang-rest`:\n\n```js\nvar PressGangCCMS = require('pressgang-rest').PressGangCCMS;\n```\nNext, create a new PressGangCCMS object:\n\n```js\nvar pressgang = new PressGangCCMS('http://127.0.0.1:8080/TopicIndex');\n```\n\nNow, you can get the XML of a topic:\n\n```js\npressgang.getTopicData('xml', 8445, \n\tfunction(err, result){\n\t\tconsole.log('The topic xml content is:' + result);\n\t});\n```\n\nTo get the JSON representation of a topic:\n\n```js\npressgang.getTopicData('json', 8445, \n\tfunction(err, result){\n\t\tconsole.log('The JSON representation of the topic is:' \n\t\t+ JSON.Stringify(result);\n\t});\n```\n\n`isContentSpec` is an example of a more semantic interface to PressGang:\n\n```js\npressgang.isContentSpec(456, \n\tfunction(err, is){\n\t\tif (is) console.log('Topic 456 is a Content Specification')\n\t});\n```\n\n","_id":"pressgang-rest@0.0.2","dist":{"shasum":"7536ecb387fe30b64d8db5dd6bb8c241cd702198","tarball":"https://registry.npmjs.org/pressgang-rest/-/pressgang-rest-0.0.2.tgz","integrity":"sha512-fI8HsJRcMzfipXQUD736M/xVsWVxbLuOYd7VN9SiKLYBDF0d/hsFp3SizD6HCQcR/iy4DhHe40cwIdTsBtN9JQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDeAg3mBH+s6V9kCjPlc82zEx0a7iHuH7xy28IYGFOFRQIhAJtuLTgtknaoAwRxpYtUYDd/w5ohiZHx2sujXvgGJlr/"}]},"_npmVersion":"1.1.62","_npmUser":{"name":"sitapati","email":"sitapati@worldsankirtan.net"},"maintainers":[{"name":"sitapati","email":"sitapati@worldsankirtan.net"}]},"0.0.3":{"name":"pressgang-rest","version":"0.0.3","description":"A high level library for REST communication with a PressGang Component Content Management System (CCMS) Server","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/jwulf/node-pressgang-rest.git"},"keywords":["pressgang","rest"],"author":{"name":"Joshua Wulf"},"license":"BSD","dependencies":{"restler":"~2.0.1"},"directories":{"doc":".","test":null,"example":null},"readme":"#node-pressgang-rest\n\nA node module that provides a REST client library for the PressGang CCMS. It provides a more semantic interface for application development than the raw PressGang REST interface. Uses restler for the REST interface.\n\n##Installation\n\n```bash\nnpm install pressgang-rest\n```\n## Basic Usage\n\nFirst, require `pressgang-rest`:\n\n```js\nvar PressGangCCMS = require('pressgang-rest').PressGangCCMS;\n```\nNext, create a new PressGangCCMS object:\n\n```js\nvar pressgang = new PressGangCCMS('http://127.0.0.1:8080/TopicIndex');\n```\n\nNow, you can get the XML of a topic:\n\n```js\npressgang.getTopicData('xml', 8445, \n\tfunction(err, result){\n\t\tconsole.log('The topic xml content is:' + result);\n\t});\n```\n\nTo get the JSON representation of a topic:\n\n```js\npressgang.getTopicData('json', 8445, \n\tfunction(err, result){\n\t\tconsole.log('The JSON representation of the topic is:' \n\t\t+ JSON.Stringify(result);\n\t});\n```\n\n`isContentSpec` is an example of a more semantic interface to PressGang:\n\n```js\npressgang.isContentSpec(456, \n\tfunction(err, is){\n\t\tif (is) console.log('Topic 456 is a Content Specification')\n\t});\n```\n\nYou can change the logging level of the PressGangCCMS Object to get details for debugging. The `loglevel` defaults to 0. Higher levels produce more trace output on the console:\n\n```js\npressgang.set('loglevel', 2);\n```\n","_id":"pressgang-rest@0.0.3","dist":{"shasum":"e2990af780df66d965efca128dcd2d5de14a997a","tarball":"https://registry.npmjs.org/pressgang-rest/-/pressgang-rest-0.0.3.tgz","integrity":"sha512-Ki1dtZ9xgBsWVvJ2u8sCxvZsNQ3y3jC6RvuLf/sndoocYTTI7KtfhPrki9exPleTPYMsTBh4uo/TnO6zhOtnMw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC0drZp2WyYq1oOL+3SembKKrIeHPiAIx4xhLLtto0L0gIgGniF+RsFVVLTvOM5rQkvv/QgiMHANmSx/VcceV+5NSQ="}]},"_npmVersion":"1.1.62","_npmUser":{"name":"sitapati","email":"sitapati@worldsankirtan.net"},"maintainers":[{"name":"sitapati","email":"sitapati@worldsankirtan.net"}]},"0.0.4":{"name":"pressgang-rest","version":"0.0.4","description":"A high level library for REST communication with a PressGang Component Content Management System (CCMS) Server","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/jwulf/node-pressgang-rest.git"},"keywords":["pressgang","rest"],"author":{"name":"Joshua Wulf"},"license":"BSD","dependencies":{"restler":"~2.0.1"},"directories":{"doc":".","test":null,"example":null},"readme":"#node-pressgang-rest\n\nA node module that provides a REST client library for the PressGang CCMS. It provides a more semantic interface for application development than the raw PressGang REST interface. Uses restler for the REST interface.\n\n##Installation\n\n```bash\nnpm install pressgang-rest\n```\n## Basic Usage\n\nFirst, require `pressgang-rest`:\n\n```js\nvar PressGangCCMS = require('pressgang-rest').PressGangCCMS;\n```\nNext, create a new PressGangCCMS object:\n\n```js\nvar pressgang = new PressGangCCMS('http://127.0.0.1:8080/TopicIndex');\n```\n\nNow, you can get the XML of a topic:\n\n```js\npressgang.getTopicData('xml', 8445, \n\tfunction(err, result){\n\t\tconsole.log('The topic xml content is:' + result);\n\t});\n```\n\nTo get the JSON representation of a topic:\n\n```js\npressgang.getTopicData('json', 8445, \n\tfunction(err, result){\n\t\tconsole.log('The JSON representation of the topic is:' \n\t\t+ JSON.Stringify(result);\n\t});\n```\n\n`isContentSpec` is an example of a more semantic interface to PressGang:\n\n```js\npressgang.isContentSpec(456, \n\tfunction(err, is){\n\t\tif (is) console.log('Topic 456 is a Content Specification')\n\t});\n```\n\nYou can change the logging level of the PressGangCCMS Object to get details for debugging. The `loglevel` defaults to 0. Higher levels produce more trace output on the console:\n\n```js\npressgang.set('loglevel', 2);\n```\n","_id":"pressgang-rest@0.0.4","dist":{"shasum":"725e24b66296aaa37fd1d95e504ab37981b55942","tarball":"https://registry.npmjs.org/pressgang-rest/-/pressgang-rest-0.0.4.tgz","integrity":"sha512-KtX7LpJmMb/uXI1TegCxrtlHH9TVpft571ZVGLoYFvbOMPe06Id0SqaqsaCby1krUI2K7U7FkQCf1EjCACsBJA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAW/X5B7AWsqKHpGpGLDJhHdZFzVOrYMNHW6LK/KrSThAiEAkcYvtonfIrLYnSmH3v30alh5BLVNZaSHBMghqt6eZD4="}]},"_npmVersion":"1.1.62","_npmUser":{"name":"sitapati","email":"sitapati@worldsankirtan.net"},"maintainers":[{"name":"sitapati","email":"sitapati@worldsankirtan.net"}]},"0.0.5":{"name":"pressgang-rest","version":"0.0.5","description":"A high level library for REST communication with a PressGang Component Content Management System (CCMS) Server","main":"index.js","scripts":{"test":"jasmine-node tests/dry-tests.spec.js"},"repository":{"type":"git","url":"git://github.com/jwulf/node-pressgang-rest.git"},"keywords":["pressgang","rest"],"author":{"name":"Joshua Wulf"},"license":"BSD","dependencies":{"restler":"~2.0.1"},"directories":{"doc":".","test":null,"example":null},"readme":"#node-pressgang-rest\n\nA node module that provides a REST client library for the PressGang CCMS. It provides a more semantic interface for application development than the raw PressGang REST interface. Uses restler for the REST interface.\n\n##Installation\n\n```bash\nnpm install pressgang-rest\n```\n## Basic Usage\n\nFirst, require `pressgang-rest`:\n\n```js\nvar PressGangCCMS = require('pressgang-rest').PressGangCCMS;\n```\nNext, create a new PressGangCCMS object:\n\n```js\nvar pressgang = new PressGangCCMS('http://127.0.0.1:8080/TopicIndex');\n```\n\nNow, you can get the XML of a topic:\n\n```js\npressgang.getTopicData('xml', 8445, \n\tfunction(err, result){\n\t\tconsole.log('The topic xml content is:' + result);\n\t});\n```\n\nTo get the JSON representation of a topic:\n\n```js\npressgang.getTopicData('json', 8445, \n\tfunction(err, result){\n\t\tconsole.log('The JSON representation of the topic is:' \n\t\t+ JSON.Stringify(result);\n\t});\n```\n\nTo get a specific revision of a topic:\n\n```js\npressgang.getTopicData('json', 8445, 10405, \n    function(err, result){\n\t\tconsole.log('The XML of revision 10405 is:' \n\t\t+ result.xml;\n\t});\n```\n\n`isContentSpec` will return true if an ID is a Content Specification:\n\n```js\npressgang.isContentSpec(456, \n\tfunction(err, is){\n\t\tif (is) console.log('Topic 456 is a Content Specification')\n\t});    \n```\n\n`getContentSpec` returns a Content Spec object, which has the plain text content of the Content Spec, and a metadata record.\n```js\npressgang.getContentSpec(456, \n    function(err, result){\n\t\tconsole.log(result.spec); // Plain-text of the spec\n        console.log(result.metadata); // All the spec metadata in an object\n\t});    \n```\n\nYou can change the logging level of the PressGangCCMS Object to get details for debugging. The `loglevel` defaults to 0. Higher levels produce more trace output on the console:\n\n```js\npressgang.loglevel = 2;\n```\n\n##Source Code\nThe source is hosted on github at https://github.com/jwulf/node-pressgang-rest.\n\nIt's written using Microsoft TypeScript, and compiled to JavaScript using the node typescript module. There is a TypeScript declaration file in the module.\n","_id":"pressgang-rest@0.0.5","dist":{"shasum":"0a10e079579920d883888f3e0594da12788dc620","tarball":"https://registry.npmjs.org/pressgang-rest/-/pressgang-rest-0.0.5.tgz","integrity":"sha512-iHOvp6Atz0aWbQl/N6ZeoeFwhM9Ubmz5d2qoc/O5rWqwc7z7KvAZOGX+wndgdlf/FgBP5xSpxQ0Pc8Alwgr8Hg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHLKCiv6WHgEEir+ZxQulJkn6Ww08vo/Gu9e7cdqOwHqAiEA6nnkoU6gfdwh0saYvdOCEyggMlJyIdD8AkvETh7RkwY="}]},"_npmVersion":"1.1.62","_npmUser":{"name":"sitapati","email":"sitapati@worldsankirtan.net"},"maintainers":[{"name":"sitapati","email":"sitapati@worldsankirtan.net"}]},"0.0.6":{"name":"pressgang-rest","version":"0.0.6","description":"A high level library for REST communication with a PressGang Component Content Management System (CCMS) Server","main":"index.js","scripts":{"test":"jasmine-node tests/dry-tests.spec.js"},"repository":{"type":"git","url":"git://github.com/jwulf/node-pressgang-rest.git"},"keywords":["pressgang","rest"],"author":{"name":"Joshua Wulf"},"license":"BSD","dependencies":{"restler":"~2.0.1"},"directories":{"doc":".","test":null,"example":null},"readme":"#node-pressgang-rest\n\nA node module that provides a REST client library for the PressGang CCMS. It provides a more semantic interface for application development than the raw PressGang REST interface. Uses restler for the REST interface.\n\n##Installation\n\n```bash\nnpm install pressgang-rest\n```\n## Basic Usage\n\nFirst, require `pressgang-rest`:\n\n```js\nvar PressGangCCMS = require('pressgang-rest').PressGangCCMS;\n```\nNext, create a new PressGangCCMS object:\n\n```js\nvar pressgang = new PressGangCCMS('http://127.0.0.1:8080/TopicIndex');\n```\n\nNow, you can get the XML of a topic:\n\n```js\npressgang.getTopicData('xml', 8445, \n\tfunction(err, result){\n\t\tconsole.log('The topic xml content is:' + result);\n\t});\n```\n\nTo get the JSON representation of a topic:\n\n```js\npressgang.getTopicData('json', 8445, \n\tfunction(err, result){\n\t\tconsole.log('The JSON representation of the topic is:' \n\t\t+ JSON.Stringify(result);\n\t});\n```\n\nTo get a specific revision of a topic:\n\n```js\npressgang.getTopicData('json', 8445, 10405, \n    function(err, result){\n\t\tconsole.log('The XML of revision 10405 is:' \n\t\t+ result.xml;\n\t});\n```\n\n`isContentSpec` will return true if an ID is a Content Specification:\n\n```js\npressgang.isContentSpec(456, \n\tfunction(err, is){\n\t\tif (is) console.log('Topic 456 is a Content Specification')\n\t});    \n```\n\n`getContentSpec` returns a Content Spec object, which has the plain text content of the Content Spec, and a metadata record.\n```js\npressgang.getContentSpec(456, \n    function(err, result){\n\t\tconsole.log(result.spec); // Plain-text of the spec\n        console.log(result.metadata); // All the spec metadata in an object\n\t});    \n```\n\nYou can change the logging level of the PressGangCCMS Object to get details for debugging. The `loglevel` defaults to 0. Higher levels produce more trace output on the console:\n\n```js\npressgang.loglevel = 2;\n```\n\n##Source Code\nThe source is hosted on github at https://github.com/jwulf/node-pressgang-rest.\n\nIt's written using Microsoft TypeScript, and compiled to JavaScript using the node typescript module. There is a TypeScript declaration file in the module.\n","readmeFilename":"README.md","_id":"pressgang-rest@0.0.6","dist":{"shasum":"48c8f99a0c9fd467a41ee3db6d7dc04c272fbf77","tarball":"https://registry.npmjs.org/pressgang-rest/-/pressgang-rest-0.0.6.tgz","integrity":"sha512-U01hAxjtrIDFQTNeaBpGYlxwkGDqyLSxiZFaJY8QcTZ4k8syjVp8kAu5h8nVn+kVtYniRbQCvqoxUj4NTX5Dhg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDgyCHMkmUbmB+EimdtCO/RVgI/gGZZIVJtwy+6uSMQXwIhANBwQAbyUUOwKMbA7ST3mKMbhgSLAR07E8JqwzfB+2s6"}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"sitapati","email":"sitapati@worldsankirtan.net"},"maintainers":[{"name":"sitapati","email":"sitapati@worldsankirtan.net"}]},"0.0.7":{"name":"pressgang-rest","version":"0.0.7","description":"A high level library for REST communication with a PressGang Component Content Management System (CCMS) Server","main":"index.js","scripts":{"test":"jasmine-node tests/dry-tests.spec.js"},"repository":{"type":"git","url":"git://github.com/jwulf/node-pressgang-rest.git"},"keywords":["pressgang","rest"],"author":{"name":"Joshua Wulf"},"license":"BSD","dependencies":{"restler":"~2.0.1"},"directories":{"doc":".","test":null,"example":null},"readme":"#node-pressgang-rest\n\nA node module that provides a REST client library for the PressGang CCMS. It provides a more semantic interface for application development than the raw PressGang REST interface. Uses restler for the REST interface.\n\n##Installation\n\n```bash\nnpm install pressgang-rest\n```\n## Basic Usage\n\nFirst, require `pressgang-rest`:\n\n```js\nvar PressGangCCMS = require('pressgang-rest').PressGangCCMS;\n```\nNext, create a new PressGangCCMS object:\n\n```js\nvar pressgang = new PressGangCCMS('http://127.0.0.1:8080/TopicIndex');\n```\n\nNow, you can get the XML of a topic:\n\n```js\npressgang.getTopicData('xml', 8445, \n\tfunction(err, result){\n\t\tconsole.log('The topic xml content is:' + result);\n\t});\n```\n\nTo get the JSON representation of a topic:\n\n```js\npressgang.getTopicData('json', 8445, \n\tfunction(err, result){\n\t\tconsole.log('The JSON representation of the topic is:' \n\t\t+ JSON.Stringify(result);\n\t});\n```\n\nTo get a specific revision of a topic:\n\n```js\npressgang.getTopicData('json', 8445, 10405, \n    function(err, result){\n\t\tconsole.log('The XML of revision 10405 is:' \n\t\t+ result.xml;\n\t});\n```\n\n`isContentSpec` will return true if an ID is a Content Specification:\n\n```js\npressgang.isContentSpec(456, \n\tfunction(err, is){\n\t\tif (is) console.log('Topic 456 is a Content Specification')\n\t});    \n```\n\n`getContentSpec` returns a Content Spec object, which has the plain text content of the Content Spec, and a metadata record.\n```js\npressgang.getContentSpec(456, \n    function(err, result){\n\t\tconsole.log(result.spec); // Plain-text of the spec\n        console.log(result.metadata); // All the spec metadata in an object\n\t});    \n```\n\nYou can change the logging level of the PressGangCCMS Object to get details for debugging. The `loglevel` defaults to 0. Higher levels produce more trace output on the console:\n\n```js\npressgang.loglevel = 2;\n```\n\n##Source Code\nThe source is hosted on github at https://github.com/jwulf/node-pressgang-rest.\n\nIt's written using Microsoft TypeScript, and compiled to JavaScript using the node typescript module. There is a TypeScript declaration file in the module.\n","readmeFilename":"README.md","_id":"pressgang-rest@0.0.7","dist":{"shasum":"548944d3ab2d37f2990c54f1db5d3de4b4f542d6","tarball":"https://registry.npmjs.org/pressgang-rest/-/pressgang-rest-0.0.7.tgz","integrity":"sha512-F5mzeqKJD++6FiHnu75JJAuGaY541FSdTKXAq0yFT1ACSuKQsN0Wefa7IKUapVZaTYUU4Qtxz7JPElUaJOhJOg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCt8BZVr+oKXAeiNK472GrHeLH+LASd9HmE2xXrY+wxsQIhANM1ZrTg1QnFB7UtsWCCS5gnjA85WgtKhcyUZgDwQWWy"}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"sitapati","email":"sitapati@worldsankirtan.net"},"maintainers":[{"name":"sitapati","email":"sitapati@worldsankirtan.net"}]},"0.0.8":{"name":"pressgang-rest","version":"0.0.8","description":"A high level library for REST communication with a PressGang Component Content Management System (CCMS) Server","main":"index.js","scripts":{"test":"jasmine-node tests/dry-tests.spec.js"},"repository":{"type":"git","url":"git://github.com/jwulf/node-pressgang-rest.git"},"keywords":["pressgang","rest"],"author":{"name":"Joshua Wulf"},"license":"BSD","dependencies":{"restler":"~2.0.1"},"directories":{"doc":".","test":null,"example":null},"readme":"#node-pressgang-rest\n\nA node module that provides a REST client library for the PressGang CCMS. It provides a more semantic interface for application development than the raw PressGang REST interface. Uses restler for the REST interface.\n\n##Installation\n\n```bash\nnpm install pressgang-rest\n```\n## Basic Usage\n\nFirst, require `pressgang-rest`:\n\n```js\nvar PressGangCCMS = require('pressgang-rest').PressGangCCMS;\n```\nNext, create a new PressGangCCMS object:\n\n```js\nvar pressgang = new PressGangCCMS('http://127.0.0.1:8080/TopicIndex');\n```\n\nNow, you can get the XML of a topic:\n\n```js\npressgang.getTopicData('xml', 8445, \n\tfunction(err, result){\n\t\tconsole.log('The topic xml content is:' + result);\n\t});\n```\n\nTo get the JSON representation of a topic:\n\n```js\npressgang.getTopicData('json', 8445, \n\tfunction(err, result){\n\t\tconsole.log('The JSON representation of the topic is:' \n\t\t+ JSON.Stringify(result);\n\t});\n```\n\nTo get a specific revision of a topic:\n\n```js\npressgang.getTopicData('json', 8445, 10405, \n    function(err, result){\n\t\tconsole.log('The XML of revision 10405 is:' \n\t\t+ result.xml;\n\t});\n```\n\n`isContentSpec` will return true if an ID is a Content Specification:\n\n```js\npressgang.isContentSpec(456, \n\tfunction(err, is){\n\t\tif (is) console.log('Topic 456 is a Content Specification')\n\t});    \n```\n\n`getContentSpec` returns a Content Spec object, which has the plain text content of the Content Spec, and a metadata record.\n```js\npressgang.getContentSpec(456, \n    function(err, result){\n\t\tconsole.log(result.spec); // Plain-text of the spec\n        console.log(result.metadata); // All the spec metadata in an object\n\t});    \n```\n\nYou can change the logging level of the PressGangCCMS Object to get details for debugging. The `loglevel` defaults to 0. Higher levels produce more trace output on the console:\n\n```js\npressgang.loglevel = 2;\n```\n\nYou can also do quick and dirty topic operations, like this:\n\n`getTopic` returns a JSON representation of a topic. \n\n```js\nPressGangCCMS.getTopic('http://localhost:8080', 3445, function(topic) { console.log(topic); });\n```\n\n`getTopic` takes an optional revision parameter between the topic ID and the callback. Here 3445 is the topic id, and 23433 is the revision:\n\n```js\nPressGangCCMS.getTopic('http://localhost:8080', 3445, 23433, function(topic) { console.log(topic); });\n```\n\n##Source Code\nThe source is hosted on github at https://github.com/jwulf/node-pressgang-rest.\n\nIt's written using Microsoft TypeScript, and compiled to JavaScript using the node typescript module. There is a TypeScript declaration file in the module.\n","readmeFilename":"README.md","_id":"pressgang-rest@0.0.8","dist":{"shasum":"1eaaeed9b6281646647acef4a272030b1db23905","tarball":"https://registry.npmjs.org/pressgang-rest/-/pressgang-rest-0.0.8.tgz","integrity":"sha512-QuIgjwY6EhQXwvJBa56RSTBtGQE7lWPOG+CN7+GeQ/bJ+IDfedOAUtsE65NUDyCQZYXZeinCwb1Y6MOOsBg3Ug==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHGahDlh3+I9ZwVnSYGOnRmSU9gkchgXnWGnG5yhIzIlAiEA0xLlBkbe2hPyWTrtePZrV5VdPSRe6ZpxIJJpRVw0CfQ="}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"sitapati","email":"sitapati@worldsankirtan.net"},"maintainers":[{"name":"sitapati","email":"sitapati@worldsankirtan.net"}]},"0.0.9":{"name":"pressgang-rest","version":"0.0.9","description":"A high level library for REST communication with a PressGang Component Content Management System (CCMS) Server","main":"index.js","scripts":{"test":"jasmine-node tests/dry-tests.spec.js"},"repository":{"type":"git","url":"git://github.com/jwulf/node-pressgang-rest.git"},"keywords":["pressgang","rest"],"author":{"name":"Joshua Wulf"},"license":"BSD","dependencies":{"restler":"~2.0.1"},"directories":{"doc":".","test":null,"example":null},"readme":"#node-pressgang-rest\n\nA node module that provides a REST client library for the PressGang CCMS. It provides a more semantic interface for application development than the raw PressGang REST interface. Uses restler for the REST interface.\n\n##Installation\n\n```bash\nnpm install pressgang-rest\n```\n## Basic Usage\n\nFirst, require `pressgang-rest`:\n\n```js\nvar PressGangCCMS = require('pressgang-rest').PressGangCCMS;\n```\nNext, create a new PressGangCCMS object:\n\n```js\nvar pressgang = new PressGangCCMS('http://127.0.0.1:8080/TopicIndex');\n```\n\nNow, you can get the XML of a topic:\n\n```js\npressgang.getTopicData('xml', 8445, \n\tfunction(err, result){\n\t\tconsole.log('The topic xml content is:' + result);\n\t});\n```\n\nTo get the JSON representation of a topic:\n\n```js\npressgang.getTopicData('json', 8445, \n\tfunction(err, result){\n\t\tconsole.log('The JSON representation of the topic is:' \n\t\t+ JSON.Stringify(result);\n\t});\n```\n\nTo get a specific revision of a topic:\n\n```js\npressgang.getTopicData('json', 8445, 10405, \n    function(err, result){\n\t\tconsole.log('The XML of revision 10405 is:' \n\t\t+ result.xml;\n\t});\n```\n\n`isContentSpec` will return true if an ID is a Content Specification:\n\n```js\npressgang.isContentSpec(456, \n\tfunction(err, is){\n\t\tif (is) console.log('Topic 456 is a Content Specification')\n\t});    \n```\n\n`getContentSpec` returns a Content Spec object, which has the plain text content of the Content Spec, and a metadata record.\n```js\npressgang.getContentSpec(456, \n    function(err, result){\n\t\tconsole.log(result.spec); // Plain-text of the spec\n        console.log(result.metadata); // All the spec metadata in an object\n\t});    \n```\n\nYou can change the logging level of the PressGangCCMS Object to get details for debugging. The `loglevel` defaults to 0. Higher levels produce more trace output on the console:\n\n```js\npressgang.loglevel = 2;\n```\n\nYou can also do quick and dirty topic operations, like this:\n\n`getTopic` returns a JSON representation of a topic. \n\n```js\nPressGangCCMS.getTopic('http://localhost:8080', 3445, function(topic) { console.log(topic); });\n```\n\n`getTopic` takes an optional revision parameter between the topic ID and the callback. Here 3445 is the topic id, and 23433 is the revision:\n\n```js\nPressGangCCMS.getTopic('http://localhost:8080', 3445, 23433, function(topic) { console.log(topic); });\n```\n\n##Source Code\nThe source is hosted on github at https://github.com/jwulf/node-pressgang-rest.\n\nIt's written using Microsoft TypeScript, and compiled to JavaScript using the node typescript module. There is a TypeScript declaration file in the module.\n","readmeFilename":"README.md","_id":"pressgang-rest@0.0.9","dist":{"shasum":"4c0eae731c5635ae5624b250e62018764de26252","tarball":"https://registry.npmjs.org/pressgang-rest/-/pressgang-rest-0.0.9.tgz","integrity":"sha512-otdQTcI2+1ZjKmJ4Ip+j6n1B8/454TM0o7eECmN+v2fH5qtf8I5wKVFNNQrJbcBePXiurlWjrh3w6wQy3jkH7w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFmmShU1HICsd7Ea/f5X+n6NZUEMeDr1aLtWallYXtZJAiEAjv1SiNh6V4dlMzM3eLEoYB3TfwLzIeLIHufYGwvue7U="}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"sitapati","email":"sitapati@worldsankirtan.net"},"maintainers":[{"name":"sitapati","email":"sitapati@worldsankirtan.net"}]},"0.0.10":{"name":"pressgang-rest","version":"0.0.10","description":"A high level library for REST communication with a PressGang Component Content Management System (CCMS) Server","main":"index.js","scripts":{"test":"jasmine-node tests/dry-tests.spec.js"},"repository":{"type":"git","url":"git://github.com/jwulf/node-pressgang-rest.git"},"keywords":["pressgang","rest"],"author":{"name":"Joshua Wulf"},"license":"BSD","dependencies":{"restler":"~2.0.1"},"directories":{"doc":".","test":null,"example":null},"readme":"#node-pressgang-rest\n\nA node module that provides a REST client library for the PressGang CCMS. It provides a more semantic interface for application development than the raw PressGang REST interface. Uses restler for the REST interface.\n\n##Installation\n\n```bash\nnpm install pressgang-rest\n```\n## Basic Usage\n\nFirst, require `pressgang-rest`:\n\n```js\nvar PressGangCCMS = require('pressgang-rest').PressGangCCMS;\n```\nNext, create a new PressGangCCMS object:\n\n```js\nvar pressgang = new PressGangCCMS('http://127.0.0.1:8080/TopicIndex');\n```\n\nNow, you can get the XML of a topic:\n\n```js\npressgang.getTopicData('xml', 8445, \n\tfunction(err, result){\n\t\tconsole.log('The topic xml content is:' + result);\n\t});\n```\n\nTo get the JSON representation of a topic:\n\n```js\npressgang.getTopicData('json', 8445, \n\tfunction(err, result){\n\t\tconsole.log('The JSON representation of the topic is:' \n\t\t+ JSON.Stringify(result);\n\t});\n```\n\nTo get a specific revision of a topic:\n\n```js\npressgang.getTopicData('json', 8445, 10405, \n    function(err, result){\n\t\tconsole.log('The XML of revision 10405 is:' \n\t\t+ result.xml;\n\t});\n```\n\n`isContentSpec` will return true if an ID is a Content Specification:\n\n```js\npressgang.isContentSpec(456, \n\tfunction(err, is){\n\t\tif (is) console.log('Topic 456 is a Content Specification')\n\t});    \n```\n\n`getContentSpec` returns a Content Spec object, which has the plain text content of the Content Spec, and a metadata record.\n```js\npressgang.getContentSpec(456, \n    function(err, result){\n\t\tconsole.log(result.spec); // Plain-text of the spec\n        console.log(result.metadata); // All the spec metadata in an object\n\t});    \n```\n\nYou can change the logging level of the PressGangCCMS Object to get details for debugging. The `loglevel` defaults to 0. Higher levels produce more trace output on the console:\n\n```js\npressgang.loglevel = 2;\n```\n\nYou can also do quick and dirty topic operations, like this:\n\n`getTopic` returns a JSON representation of a topic. \n\n```js\nPressGangCCMS.getTopic('http://localhost:8080', 3445, function(topic) { console.log(topic); });\n```\n\n`getTopic` takes an optional revision parameter between the topic ID and the callback. Here 3445 is the topic id, and 23433 is the revision:\n\n```js\nPressGangCCMS.getTopic('http://localhost:8080', 3445, 23433, function(topic) { console.log(topic); });\n```\n\n##Source Code\nThe source is hosted on github at https://github.com/jwulf/node-pressgang-rest.\n\nIt's written using Microsoft TypeScript, and compiled to JavaScript using the node typescript module. There is a TypeScript declaration file in the module.\n","readmeFilename":"README.md","_id":"pressgang-rest@0.0.10","dist":{"shasum":"49a4b356a31c2c763baa3cb4b3e198be9b712574","tarball":"https://registry.npmjs.org/pressgang-rest/-/pressgang-rest-0.0.10.tgz","integrity":"sha512-FgPb26N8SYPvPdMdtpmvAstbT4ftJA2lCNSiOx4K2eJo9fd6j0apdN2GwJXsl79q6KWgCyc4cl8pvpATaGdK5g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDEEn/O/BBTBSKNNQJXp+8fxUXwaO/G/HxaOuJsohTpKQIhAMSWmO1S/+/HjNjdbJVieiIO6K7QDyFp2kRUPaBZfB7g"}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"sitapati","email":"sitapati@worldsankirtan.net"},"maintainers":[{"name":"sitapati","email":"sitapati@worldsankirtan.net"}]},"0.0.11":{"name":"pressgang-rest","version":"0.0.11","description":"A high level library for REST communication with a PressGang Component Content Management System (CCMS) Server","main":"index.js","scripts":{"test":"jasmine-node tests/dry-tests.spec.js"},"repository":{"type":"git","url":"git://github.com/jwulf/node-pressgang-rest.git"},"keywords":["pressgang","rest"],"author":{"name":"Joshua Wulf"},"license":"BSD","dependencies":{"restler":"~2.0.1"},"directories":{"doc":".","test":null,"example":null},"readme":"#node-pressgang-rest\n\nA node module that provides a REST client library for the PressGang CCMS. It provides a more semantic interface for application development than the raw PressGang REST interface. Uses restler for the REST interface.\n\n##Installation\n\n```bash\nnpm install pressgang-rest\n```\n## Basic Usage\n\nFirst, require `pressgang-rest`:\n\n```js\nvar PressGangCCMS = require('pressgang-rest').PressGangCCMS;\n```\nNext, create a new PressGangCCMS object:\n\n```js\nvar pressgang = new PressGangCCMS('http://127.0.0.1:8080/TopicIndex');\n```\n\nNow, you can get the XML of a topic:\n\n```js\npressgang.getTopicData('xml', 8445, \n\tfunction(err, result){\n\t\tconsole.log('The topic xml content is:' + result);\n\t});\n```\n\nTo get the JSON representation of a topic:\n\n```js\npressgang.getTopicData('json', 8445, \n\tfunction(err, result){\n\t\tconsole.log('The JSON representation of the topic is:' \n\t\t+ JSON.Stringify(result);\n\t});\n```\n\nTo get a specific revision of a topic:\n\n```js\npressgang.getTopicData('json', 8445, 10405, \n    function(err, result){\n\t\tconsole.log('The XML of revision 10405 is:' \n\t\t+ result.xml;\n\t});\n```\n\n`isContentSpec` will return true if an ID is a Content Specification:\n\n```js\npressgang.isContentSpec(456, \n\tfunction(err, is){\n\t\tif (is) console.log('Topic 456 is a Content Specification')\n\t});    \n```\n\n`getContentSpec` returns a Content Spec object, which has the plain text content of the Content Spec, and a metadata record.\n```js\npressgang.getContentSpec(456, \n    function(err, result){\n\t\tconsole.log(result.spec); // Plain-text of the spec\n        console.log(result.metadata); // All the spec metadata in an object\n\t});    \n```\n\nYou can change the logging level of the PressGangCCMS Object to get details for debugging. The `loglevel` defaults to 0. Higher levels produce more trace output on the console:\n\n```js\npressgang.loglevel = 2;\n```\n\nYou can also do quick and dirty topic operations, like this:\n\n`getTopic` returns a JSON representation of a topic. \n\n```js\nPressGangCCMS.getTopic('http://localhost:8080', 3445, function(topic) { console.log(topic); });\n```\n\n`getTopic` takes an optional revision parameter between the topic ID and the callback. Here 3445 is the topic id, and 23433 is the revision:\n\n```js\nPressGangCCMS.getTopic('http://localhost:8080', 3445, 23433, function(topic) { console.log(topic); });\n```\n\n##Source Code\nThe source is hosted on github at https://github.com/jwulf/node-pressgang-rest.\n\nIt's written using Microsoft TypeScript, and compiled to JavaScript using the node typescript module. There is a TypeScript declaration file in the module.\n","readmeFilename":"README.md","_id":"pressgang-rest@0.0.11","dist":{"shasum":"79533dcc959fe39647fb7deb00d7cb41ebd11245","tarball":"https://registry.npmjs.org/pressgang-rest/-/pressgang-rest-0.0.11.tgz","integrity":"sha512-HTrgPkBeWUSgV3mZ+0kvaa/YtMHaU5376Xz/w0upxBTu+dAWxCYY5LjkdE60t4irlltqqi7YEI+LQm7HGFMYDg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCTra6WbCep6gafo7z3D0Cb5sjlfull4l9PY/v6jwpvLAIgN93m0MeY8IE1P59zTOUafG2uLDEXBHkedI8wE/B7B7A="}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"sitapati","email":"sitapati@worldsankirtan.net"},"maintainers":[{"name":"sitapati","email":"sitapati@worldsankirtan.net"}]},"0.0.12":{"name":"pressgang-rest","version":"0.0.12","description":"A high level library for REST communication with a PressGang Component Content Management System (CCMS) Server","main":"index.js","scripts":{"test":"jasmine-node tests/dry-tests.spec.js"},"repository":{"type":"git","url":"git://github.com/jwulf/node-pressgang-rest.git"},"keywords":["pressgang","rest"],"author":{"name":"Joshua Wulf"},"license":"BSD","dependencies":{"restler":"~2.0.1"},"directories":{"doc":".","test":null,"example":null},"readme":"#node-pressgang-rest\n\nA node module that provides a REST client library for the PressGang CCMS. It provides a more semantic interface for application development than the raw PressGang REST interface. Uses restler for the REST interface.\n\n##Installation\n\n```bash\nnpm install pressgang-rest\n```\n## Basic Usage\n\nFirst, require `pressgang-rest`:\n\n```js\nvar PressGangCCMS = require('pressgang-rest').PressGangCCMS;\n```\nNext, create a new PressGangCCMS object:\n\n```js\nvar pressgang = new PressGangCCMS('http://127.0.0.1:8080/TopicIndex');\n```\n\nNow, you can get the XML of a topic:\n\n```js\npressgang.getTopicData('xml', 8445, \n\tfunction(err, result){\n\t\tconsole.log('The topic xml content is:' + result);\n\t});\n```\n\nTo get the JSON representation of a topic:\n\n```js\npressgang.getTopicData('json', 8445, \n\tfunction(err, result){\n\t\tconsole.log('The JSON representation of the topic is:' \n\t\t+ JSON.Stringify(result);\n\t});\n```\n\nTo get a specific revision of a topic:\n\n```js\npressgang.getTopicData('json', 8445, 10405, \n    function(err, result){\n\t\tconsole.log('The XML of revision 10405 is:' \n\t\t+ result.xml;\n\t});\n```\n\n`isContentSpec` will return true if an ID is a Content Specification:\n\n```js\npressgang.isContentSpec(456, \n\tfunction(err, is){\n\t\tif (is) console.log('Topic 456 is a Content Specification')\n\t});    \n```\n\n`getContentSpec` returns a Content Spec object, which has the plain text content of the Content Spec, and a metadata record.\n```js\npressgang.getContentSpec(456, \n    function(err, result){\n\t\tconsole.log(result.spec); // Plain-text of the spec\n        console.log(result.metadata); // All the spec metadata in an object\n\t});    \n```\n\nYou can change the logging level of the PressGangCCMS Object to get details for debugging. The `loglevel` defaults to 0. Higher levels produce more trace output on the console:\n\n```js\npressgang.loglevel = 2;\n```\n\nYou can also do quick and dirty topic operations, like this:\n\n`getTopic` returns a JSON representation of a topic. \n\n```js\nPressGangCCMS.getTopic('http://localhost:8080', 3445, function(topic) { console.log(topic); });\n```\n\n`getTopic` takes an optional revision parameter between the topic ID and the callback. Here 3445 is the topic id, and 23433 is the revision:\n\n```js\nPressGangCCMS.getTopic('http://localhost:8080', 3445, 23433, function(topic) { console.log(topic); });\n```\n\n##Source Code\nThe source is hosted on github at https://github.com/jwulf/node-pressgang-rest.\n\nIt's written using Microsoft TypeScript, and compiled to JavaScript using the node typescript module. There is a TypeScript declaration file in the module.\n","readmeFilename":"README.md","_id":"pressgang-rest@0.0.12","dist":{"shasum":"489163ab9ddeebfc1c2981fec5fee5ae40c8368b","tarball":"https://registry.npmjs.org/pressgang-rest/-/pressgang-rest-0.0.12.tgz","integrity":"sha512-s7uJ/jnKrZD9MyMVWAc/CI0V8s+ueyuC/mD4SNMQf+ZxbSrOIkVUsQrKg+EXacy2/d7+wT4WAkH4fmMcQczVfg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC/EUJV5yBHMiXxu8aa5ZQeSNstO9tKf/Ri3XKkt5qbqAiEA/hHuGhuqFKtwWdJnpQm5LcMIqiI2VNzGK+96Q5bNebE="}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"sitapati","email":"sitapati@worldsankirtan.net"},"maintainers":[{"name":"sitapati","email":"sitapati@worldsankirtan.net"}]},"0.0.13":{"name":"pressgang-rest","version":"0.0.13","description":"A high level library for REST communication with a PressGang Component Content Management System (CCMS) Server","main":"index.js","scripts":{"test":"jasmine-node tests/dry-tests.spec.js"},"repository":{"type":"git","url":"git://github.com/jwulf/node-pressgang-rest.git"},"keywords":["pressgang","rest"],"author":{"name":"Joshua Wulf"},"license":"BSD","dependencies":{"restler":"~2.0.1"},"directories":{"doc":".","test":null,"example":null},"readme":"#node-pressgang-rest\n\nA node module that provides a REST client library for the PressGang CCMS. It provides a more semantic interface for application development than the raw PressGang REST interface. Uses restler for the REST interface.\n\n##Installation\n\n```bash\nnpm install pressgang-rest\n```\n## Basic Usage\n\nFirst, require `pressgang-rest`:\n\n```js\nvar PressGangCCMS = require('pressgang-rest').PressGangCCMS;\n```\nNext, create a new PressGangCCMS object:\n\n```js\nvar pressgang = new PressGangCCMS('http://127.0.0.1:8080/TopicIndex');\n```\n\nNow, you can get the XML of a topic:\n\n```js\npressgang.getTopicData('xml', 8445, \n\tfunction(err, result){\n\t\tconsole.log('The topic xml content is:' + result);\n\t});\n```\n\nTo get the JSON representation of a topic:\n\n```js\npressgang.getTopicData('json', 8445, \n\tfunction(err, result){\n\t\tconsole.log('The JSON representation of the topic is:' \n\t\t+ JSON.Stringify(result);\n\t});\n```\n\nTo get a specific revision of a topic:\n\n```js\npressgang.getTopicData('json', 8445, 10405, \n    function(err, result){\n\t\tconsole.log('The XML of revision 10405 is:' \n\t\t+ result.xml;\n\t});\n```\n\n`isContentSpec` will return true if an ID is a Content Specification:\n\n```js\npressgang.isContentSpec(456, \n\tfunction(err, is){\n\t\tif (is) console.log('Topic 456 is a Content Specification')\n\t});    \n```\n\n`getContentSpec` returns a Content Spec object, which has the plain text content of the Content Spec, and a metadata record.\n```js\npressgang.getContentSpec(456, \n    function(err, result){\n\t\tconsole.log(result.spec); // Plain-text of the spec\n        console.log(result.metadata); // All the spec metadata in an object\n\t});    \n```\n\nYou can change the logging level of the PressGangCCMS Object to get details for debugging. The `loglevel` defaults to 0. Higher levels produce more trace output on the console:\n\n```js\npressgang.loglevel = 2;\n```\n\nYou can also do quick and dirty topic operations, like this:\n\n`getTopic` returns a JSON representation of a topic. \n\n```js\nPressGangCCMS.getTopic('http://localhost:8080', 3445, function(topic) { console.log(topic); });\n```\n\n`getTopic` takes an optional revision parameter between the topic ID and the callback. Here 3445 is the topic id, and 23433 is the revision:\n\n```js\nPressGangCCMS.getTopic('http://localhost:8080', 3445, 23433, function(topic) { console.log(topic); });\n```\n\n##Source Code\nThe source is hosted on github at https://github.com/jwulf/node-pressgang-rest.\n\nIt's written using Microsoft TypeScript, and compiled to JavaScript using the node typescript module. There is a TypeScript declaration file in the module.\n","readmeFilename":"README.md","_id":"pressgang-rest@0.0.13","dist":{"shasum":"b8af84790b23cd58c01b3318162cf331f3133cfb","tarball":"https://registry.npmjs.org/pressgang-rest/-/pressgang-rest-0.0.13.tgz","integrity":"sha512-TAHWsgjbwWE/Dx8qHEh3yS6cXPOMyeMCenz4KQAcUTYa0rXm1uFpKub+xVqJkHTgX8qelRvwwNJ2GSFsCWOjKg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA7QC0f8LQWIqk2Th6oA1FfrPh+/6ViN1WYbeKrSKlhlAiBdUWOSWBllBkIdE7nzcvoLTd4isfq/gajDNTRX7qBreQ=="}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"sitapati","email":"sitapati@worldsankirtan.net"},"maintainers":[{"name":"sitapati","email":"sitapati@worldsankirtan.net"}]},"0.1.0":{"name":"pressgang-rest","version":"0.1.0","description":"A high level library for REST communication with a PressGang Component Content Management System (CCMS) Server","main":"index.js","scripts":{"test":"jasmine-node tests/dry-tests.spec.js"},"repository":{"type":"git","url":"git://github.com/jwulf/node-pressgang-rest.git"},"keywords":["pressgang","rest"],"author":{"name":"Joshua Wulf"},"license":"BSD","dependencies":{"restler":"https://github.com/jwulf/restler/tarball/eb33b68d5af6e18a92d818e07de9dfa39ab2056a"},"directories":{"doc":".","test":null,"example":null},"readme":"#node-pressgang-rest\n\nA node module that provides a REST client library for the PressGang CCMS. It provides a more semantic interface for application development than the raw PressGang REST interface. Uses restler for the REST interface.\n\n##Installation\n\n```bash\nnpm install pressgang-rest\n```\n\n## Basic Usage v.0.1.0 and up\n\n```js\nvar pressgang = require('pressgang-rest);\n```\n\nGet a topic:\n\n```js\npressgang.getTopic('http://127.0.0.1:8080', 4324, {revision: 2343, expand: tags}, \n    function (err, topic) {\n        if (err) return console.log(err);\n        console.log('Got Topic %s at revision %s', topic.id, topic.revision);\n        console.log('XML is %s', topic.xml);\n    });\n```\n\n`revision` and `expand` are optional. `expand` can take any of the root expandable entities, which include:\n\n```js\ntags\nincomingRelationships\noutgoingRelationships\nsourceUrls_OTM\nbugzillaBugs_OTM\nproperties\nlogDetails\nrevisions\n```\n\nGet a Content Spec:\n\n```js\npressgang.getSpec('http://127.0.0.1:8080', 7069, function (err, spec) {\n    if (err) return console.log(err);\n    console.log('Got Spec ID %s at revision %s', spec.id, spec.revision);\n    console.log('The spec contents: %s', spec.content);\n    console.log('The spec metadata: %s', JSON.stringify(spec.metadata));\n});\n```\n\n\n## Basic Usage v.0.0.13 and below\n\nFirst, require `pressgang-rest`:\n\n```js\nvar PressGangCCMS = require('pressgang-rest').PressGangCCMS;\n```\nNext, create a new PressGangCCMS object:\n\n```js\nvar pressgang = new PressGangCCMS('http://127.0.0.1:8080/TopicIndex');\n```\n\nNow, you can get the XML of a topic:\n\n```js\npressgang.getTopicData('xml', 8445, \n\tfunction(err, result){\n\t\tconsole.log('The topic xml content is:' + result);\n\t});\n```\n\nTo get the JSON representation of a topic:\n\n```js\npressgang.getTopicData('json', 8445, \n\tfunction(err, result){\n\t\tconsole.log('The JSON representation of the topic is:' \n\t\t+ JSON.stringify(result);\n\t});\n```\n\nTo get a specific revision of a topic:\n\n```js\npressgang.getTopicData('json', 8445, 10405, \n    function(err, result){\n\t\tconsole.log('The XML of revision 10405 is:' \n\t\t+ result.xml;\n\t});\n```\n\n`isContentSpec` will return true if an ID is a Content Specification:\n\n```js\npressgang.isContentSpec(456, \n\tfunction(err, is){\n\t\tif (is) console.log('Topic 456 is a Content Specification')\n\t});    \n```\n\n`getContentSpec` returns a Content Spec object, which has the plain text content of the Content Spec, and a metadata record.\n```js\npressgang.getContentSpec(456, \n    function(err, result){\n\t\tconsole.log(result.spec); // Plain-text of the spec\n        console.log(result.metadata); // All the spec metadata in an object\n\t});    \n```\n\nYou can change the logging level of the PressGangCCMS Object to get details for debugging. The `loglevel` defaults to 0. Higher levels produce more trace output on the console:\n\n```js\npressgang.loglevel = 2;\n```\n\nYou can also do quick and dirty topic operations, like this:\n\n`getTopic` returns a JSON representation of a topic. \n\n```js\nPressGangCCMS.getTopic('http://localhost:8080', 3445, function(topic) { console.log(topic); });\n```\n\n`getTopic` takes an optional revision parameter between the topic ID and the callback. Here 3445 is the topic id, and 23433 is the revision:\n\n```js\nPressGangCCMS.getTopic('http://localhost:8080', 3445, 23433, function(topic) { console.log(topic); });\n```\n\n##Source Code\nThe source is hosted on github at https://github.com/jwulf/node-pressgang-rest.\n\nUp to 0.0.13 it was written using Microsoft TypeScript, and compiled to JavaScript using the node typescript module. There is a TypeScript declaration file in the module.\n\nFrom 0.1.0 I made it straight-forward JavaScript. Tests have not been updated yet.","readmeFilename":"README.md","_id":"pressgang-rest@0.1.0","dist":{"shasum":"e05530569070fc620f9190b2901db312ae038917","tarball":"https://registry.npmjs.org/pressgang-rest/-/pressgang-rest-0.1.0.tgz","integrity":"sha512-YlsvbfIBmgU2eXKtpo/pKlo9/CfIElZsGJhAUZxfwl4etQAMY8tttj/IFZxu/tCmax2XDgpDJVGcwsqBjwgZCQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCOSk8xcK6CjeSONg7ZDQx8XshjyRMsigm5Feokr6F5QgIgeLyfZNMBkCo5HCTjK0T8+/uK+KxcyJgWc0NMGvLrauY="}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"sitapati","email":"sitapati@worldsankirtan.net"},"maintainers":[{"name":"sitapati","email":"sitapati@worldsankirtan.net"}]},"0.1.1":{"name":"pressgang-rest","version":"0.1.1","description":"A high level library for REST communication with a PressGang Component Content Management System (CCMS) Server","main":"index.js","scripts":{"test":"jasmine-node tests/dry-tests.spec.js"},"repository":{"type":"git","url":"git://github.com/jwulf/node-pressgang-rest.git"},"keywords":["pressgang","rest"],"author":{"name":"Joshua Wulf"},"license":"BSD","dependencies":{"restler":"https://github.com/jwulf/restler/tarball/eb33b68d5af6e18a92d818e07de9dfa39ab2056a"},"directories":{"doc":".","test":null,"example":null},"readme":"#node-pressgang-rest\n\nA node module that provides a REST client library for the PressGang CCMS. It provides a more semantic interface for application development than the raw PressGang REST interface. Uses restler for the REST interface.\n\n##Installation\n\n```bash\nnpm install pressgang-rest\n```\n\n## Basic Usage v.0.1.0 and up\n\n```js\nvar pressgang = require('pressgang-rest);\n```\n\nGet a topic:\n\n```js\npressgang.getTopic('http://127.0.0.1:8080', 4324, {revision: 2343, expand: tags}, \n    function (err, topic) {\n        if (err) return console.log(err);\n        console.log('Got Topic %s at revision %s', topic.id, topic.revision);\n        console.log('XML is %s', topic.xml);\n    });\n```\n\n`revision` and `expand` are optional. `expand` can take any of the root expandable entities, which include:\n\n```js\ntags\nincomingRelationships\noutgoingRelationships\nsourceUrls_OTM\nbugzillaBugs_OTM\nproperties\nlogDetails\nrevisions\n```\n\nGet a Content Spec:\n\n```js\npressgang.getSpec('http://127.0.0.1:8080', 7069, function (err, spec) {\n    if (err) return console.log(err);\n    console.log('Got Spec ID %s at revision %s', spec.id, spec.revision);\n    console.log('The spec contents: %s', spec.content);\n    console.log('The spec metadata: %s', JSON.stringify(spec.metadata));\n});\n```\n\n\n## Basic Usage v.0.0.13 and below\n\nFirst, require `pressgang-rest`:\n\n```js\nvar PressGangCCMS = require('pressgang-rest').PressGangCCMS;\n```\nNext, create a new PressGangCCMS object:\n\n```js\nvar pressgang = new PressGangCCMS('http://127.0.0.1:8080/TopicIndex');\n```\n\nNow, you can get the XML of a topic:\n\n```js\npressgang.getTopicData('xml', 8445, \n\tfunction(err, result){\n\t\tconsole.log('The topic xml content is:' + result);\n\t});\n```\n\nTo get the JSON representation of a topic:\n\n```js\npressgang.getTopicData('json', 8445, \n\tfunction(err, result){\n\t\tconsole.log('The JSON representation of the topic is:' \n\t\t+ JSON.stringify(result);\n\t});\n```\n\nTo get a specific revision of a topic:\n\n```js\npressgang.getTopicData('json', 8445, 10405, \n    function(err, result){\n\t\tconsole.log('The XML of revision 10405 is:' \n\t\t+ result.xml;\n\t});\n```\n\n`isContentSpec` will return true if an ID is a Content Specification:\n\n```js\npressgang.isContentSpec(456, \n\tfunction(err, is){\n\t\tif (is) console.log('Topic 456 is a Content Specification')\n\t});    \n```\n\n`getContentSpec` returns a Content Spec object, which has the plain text content of the Content Spec, and a metadata record.\n```js\npressgang.getContentSpec(456, \n    function(err, result){\n\t\tconsole.log(result.spec); // Plain-text of the spec\n        console.log(result.metadata); // All the spec metadata in an object\n\t});    \n```\n\nYou can change the logging level of the PressGangCCMS Object to get details for debugging. The `loglevel` defaults to 0. Higher levels produce more trace output on the console:\n\n```js\npressgang.loglevel = 2;\n```\n\nYou can also do quick and dirty topic operations, like this:\n\n`getTopic` returns a JSON representation of a topic. \n\n```js\nPressGangCCMS.getTopic('http://localhost:8080', 3445, function(topic) { console.log(topic); });\n```\n\n`getTopic` takes an optional revision parameter between the topic ID and the callback. Here 3445 is the topic id, and 23433 is the revision:\n\n```js\nPressGangCCMS.getTopic('http://localhost:8080', 3445, 23433, function(topic) { console.log(topic); });\n```\n\n##Source Code\nThe source is hosted on github at https://github.com/jwulf/node-pressgang-rest.\n\nUp to 0.0.13 it was written using Microsoft TypeScript, and compiled to JavaScript using the node typescript module. There is a TypeScript declaration file in the module.\n\nFrom 0.1.0 I made it straight-forward JavaScript. Tests have not been updated yet.","readmeFilename":"README.md","_id":"pressgang-rest@0.1.1","dist":{"shasum":"b41869dcde9224e54a2b4cd4e15d4673608dbc54","tarball":"https://registry.npmjs.org/pressgang-rest/-/pressgang-rest-0.1.1.tgz","integrity":"sha512-ILblra/W8Y3+1elthnJkA+om/4EhEByRD+t2/MvKGPyi5JdKWcVRU/MTzsp0jsd/pSUTLz8uq2jWA0hf2JeH8A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDF2z3VvDZIjKChzs0F/JbTtkkC8MZeSAmtLFr5kwlJ0AiAy8W1NMRuCyj/npwwuWRs3T3RloMTuBNWqFZG/SWz7qQ=="}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"sitapati","email":"sitapati@worldsankirtan.net"},"maintainers":[{"name":"sitapati","email":"sitapati@worldsankirtan.net"}]},"0.1.2":{"name":"pressgang-rest","version":"0.1.2","description":"A high level library for REST communication with a PressGang Component Content Management System (CCMS) Server","main":"index.js","scripts":{"test":"jasmine-node tests/dry-tests.spec.js"},"repository":{"type":"git","url":"git://github.com/jwulf/node-pressgang-rest.git"},"keywords":["pressgang","rest"],"author":{"name":"Joshua Wulf"},"license":"BSD","dependencies":{"restler":"https://github.com/jwulf/restler/tarball/eb33b68d5af6e18a92d818e07de9dfa39ab2056a"},"directories":{"doc":".","test":null,"example":null},"readme":"#node-pressgang-rest\n\nA node module that provides a REST client library for the PressGang CCMS. It provides a more semantic interface for application development than the raw PressGang REST interface. Uses restler for the REST interface.\n\n##Installation\n\n```bash\nnpm install pressgang-rest\n```\n\n## Basic Usage v.0.1.0 and up\n\n```js\nvar pressgang = require('pressgang-rest);\n```\n\nGet a topic:\n\n```js\npressgang.getTopic('http://127.0.0.1:8080', 4324, {revision: 2343, expand: tags}, \n    function (err, topic) {\n        if (err) return console.log(err);\n        console.log('Got Topic %s at revision %s', topic.id, topic.revision);\n        console.log('XML is %s', topic.xml);\n    });\n```\n\n`revision` and `expand` are optional. `expand` can take any of the root expandable entities, which include:\n\n```js\ntags\nincomingRelationships\noutgoingRelationships\nsourceUrls_OTM\nbugzillaBugs_OTM\nproperties\nlogDetails\nrevisions\n```\n\nGet a Content Spec:\n\n```js\npressgang.getSpec('http://127.0.0.1:8080', 7069, function (err, spec) {\n    if (err) return console.log(err);\n    console.log('Got Spec ID %s at revision %s', spec.id, spec.revision);\n    console.log('The spec contents: %s', spec.content);\n    console.log('The spec metadata: %s', JSON.stringify(spec.metadata));\n});\n```\n\n\n## Basic Usage v.0.0.13 and below\n\nFirst, require `pressgang-rest`:\n\n```js\nvar PressGangCCMS = require('pressgang-rest').PressGangCCMS;\n```\nNext, create a new PressGangCCMS object:\n\n```js\nvar pressgang = new PressGangCCMS('http://127.0.0.1:8080/TopicIndex');\n```\n\nNow, you can get the XML of a topic:\n\n```js\npressgang.getTopicData('xml', 8445, \n\tfunction(err, result){\n\t\tconsole.log('The topic xml content is:' + result);\n\t});\n```\n\nTo get the JSON representation of a topic:\n\n```js\npressgang.getTopicData('json', 8445, \n\tfunction(err, result){\n\t\tconsole.log('The JSON representation of the topic is:' \n\t\t+ JSON.stringify(result);\n\t});\n```\n\nTo get a specific revision of a topic:\n\n```js\npressgang.getTopicData('json', 8445, 10405, \n    function(err, result){\n\t\tconsole.log('The XML of revision 10405 is:' \n\t\t+ result.xml;\n\t});\n```\n\n`isContentSpec` will return true if an ID is a Content Specification:\n\n```js\npressgang.isContentSpec(456, \n\tfunction(err, is){\n\t\tif (is) console.log('Topic 456 is a Content Specification')\n\t});    \n```\n\n`getContentSpec` returns a Content Spec object, which has the plain text content of the Content Spec, and a metadata record.\n```js\npressgang.getContentSpec(456, \n    function(err, result){\n\t\tconsole.log(result.spec); // Plain-text of the spec\n        console.log(result.metadata); // All the spec metadata in an object\n\t});    \n```\n\nYou can change the logging level of the PressGangCCMS Object to get details for debugging. The `loglevel` defaults to 0. Higher levels produce more trace output on the console:\n\n```js\npressgang.loglevel = 2;\n```\n\nYou can also do quick and dirty topic operations, like this:\n\n`getTopic` returns a JSON representation of a topic. \n\n```js\nPressGangCCMS.getTopic('http://localhost:8080', 3445, function(topic) { console.log(topic); });\n```\n\n`getTopic` takes an optional revision parameter between the topic ID and the callback. Here 3445 is the topic id, and 23433 is the revision:\n\n```js\nPressGangCCMS.getTopic('http://localhost:8080', 3445, 23433, function(topic) { console.log(topic); });\n```\n\n##Source Code\nThe source is hosted on github at https://github.com/jwulf/node-pressgang-rest.\n\nUp to 0.0.13 it was written using Microsoft TypeScript, and compiled to JavaScript using the node typescript module. There is a TypeScript declaration file in the module.\n\nFrom 0.1.0 I made it straight-forward JavaScript. Tests have not been updated yet.","readmeFilename":"README.md","_id":"pressgang-rest@0.1.2","dist":{"shasum":"f7eaac4499a919b468182fb782150c70fc0c1769","tarball":"https://registry.npmjs.org/pressgang-rest/-/pressgang-rest-0.1.2.tgz","integrity":"sha512-hhVi/+bA307Qs0Nd0W7PnDsaaiJzayoogLTree03qz32q8faPXU82Hj2pqmZKyUnUE6bAOv3KpQSARsv744c8w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEj8S0rlxMogJwkcWcla0gLvvQ6ygf/LGwfng/HIR/vkAiBWC6V95+ot04eBEqqrdz/FkWReOn+A9DOuYK8MQlcMZQ=="}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"sitapati","email":"sitapati@worldsankirtan.net"},"maintainers":[{"name":"sitapati","email":"sitapati@worldsankirtan.net"}]},"0.2.0":{"name":"pressgang-rest","version":"0.2.0","description":"A high level library for REST communication with a PressGang Component Content Management System (CCMS) Server","main":"index.js","scripts":{"test":"jasmine-node tests/wet-tests.spec.js"},"repository":{"type":"git","url":"git://github.com/jwulf/node-pressgang-rest.git"},"keywords":["pressgang","rest"],"author":{"name":"Joshua Wulf"},"license":"BSD","dependencies":{"restler":"https://github.com/jwulf/restler/tarball/eb33b68d5af6e18a92d818e07de9dfa39ab2056a"},"directories":{"doc":".","test":null,"example":null},"readme":"#node-pressgang-rest\n\nA node module that provides a REST client library for the PressGang CCMS. It provides a more semantic interface for application development than the raw PressGang REST interface. Uses restler for the REST interface.\n\n##Installation\n\n```bash\nnpm install pressgang-rest\n```\n\n## Basic Usage v.0.1.0 and up\n\n```js\nvar pressgang = require('pressgang-rest);\n```\n\nGet a topic:\n\n```js\npressgang.getTopic('http://127.0.0.1:8080', 4324, {revision: 2343, expand: tags}, \n    function (err, topic) {\n        if (err) return console.log(err);\n        console.log('Got Topic %s at revision %s', topic.id, topic.revision);\n        console.log('XML is %s', topic.xml);\n    });\n```\n\n`revision` and `expand` are optional. `expand` can take any of the root expandable entities, which include:\n\n```js\ntags\nincomingRelationships\noutgoingRelationships\nsourceUrls_OTM\nbugzillaBugs_OTM\nproperties\nlogDetails\nrevisions\n```\n\nGet a Content Spec:\n\n```js\npressgang.getSpec('http://127.0.0.1:8080', 7069, function (err, spec) {\n    if (err) return console.log(err);\n    console.log('Got Spec ID %s at revision %s', spec.id, spec.revision);\n    console.log('The spec contents: %s', spec.content);\n    console.log('The spec metadata: %s', JSON.stringify(spec.metadata));\n});\n```\n\n\n## Basic Usage v.0.0.13 and below\n\nFirst, require `pressgang-rest`:\n\n```js\nvar PressGangCCMS = require('pressgang-rest').PressGangCCMS;\n```\nNext, create a new PressGangCCMS object:\n\n```js\nvar pressgang = new PressGangCCMS('http://127.0.0.1:8080/TopicIndex');\n```\n\nNow, you can get the XML of a topic:\n\n```js\npressgang.getTopicData('xml', 8445, \n\tfunction(err, result){\n\t\tconsole.log('The topic xml content is:' + result);\n\t});\n```\n\nTo get the JSON representation of a topic:\n\n```js\npressgang.getTopicData('json', 8445, \n\tfunction(err, result){\n\t\tconsole.log('The JSON representation of the topic is:' \n\t\t+ JSON.stringify(result);\n\t});\n```\n\nTo get a specific revision of a topic:\n\n```js\npressgang.getTopicData('json', 8445, 10405, \n    function(err, result){\n\t\tconsole.log('The XML of revision 10405 is:' \n\t\t+ result.xml;\n\t});\n```\n\n`isContentSpec` will return true if an ID is a Content Specification:\n\n```js\npressgang.isContentSpec(456, \n\tfunction(err, is){\n\t\tif (is) console.log('Topic 456 is a Content Specification')\n\t});    \n```\n\n`getContentSpec` returns a Content Spec object, which has the plain text content of the Content Spec, and a metadata record.\n```js\npressgang.getContentSpec(456, \n    function(err, result){\n\t\tconsole.log(result.spec); // Plain-text of the spec\n        console.log(result.metadata); // All the spec metadata in an object\n\t});    \n```\n\nYou can change the logging level of the PressGangCCMS Object to get details for debugging. The `loglevel` defaults to 0. Higher levels produce more trace output on the console:\n\n```js\npressgang.loglevel = 2;\n```\n\nYou can also do quick and dirty topic operations, like this:\n\n`getTopic` returns a JSON representation of a topic. \n\n```js\nPressGangCCMS.getTopic('http://localhost:8080', 3445, function(topic) { console.log(topic); });\n```\n\n`getTopic` takes an optional revision parameter between the topic ID and the callback. Here 3445 is the topic id, and 23433 is the revision:\n\n```js\nPressGangCCMS.getTopic('http://localhost:8080', 3445, 23433, function(topic) { console.log(topic); });\n```\n\n##Source Code\nThe source is hosted on github at https://github.com/jwulf/node-pressgang-rest.\n\nUp to 0.0.13 it was written using Microsoft TypeScript, and compiled to JavaScript using the node typescript module. There is a TypeScript declaration file in the module.\n\nFrom 0.1.0 I made it straight-forward JavaScript. Tests have not been updated yet.","readmeFilename":"README.md","_id":"pressgang-rest@0.2.0","dist":{"shasum":"37a727ba925e483eb561f7ae0d40ab0a196402f3","tarball":"https://registry.npmjs.org/pressgang-rest/-/pressgang-rest-0.2.0.tgz","integrity":"sha512-zHewnKoS/lyCyUte/f/e1I+ucL+KeMK1xt/bwmYolZlxgM+zwswQq/P/aWocNtHdZ5uDC/8jqTAZ1/B6/lvMmA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEykVL+k3/0gbmRceyHeMjvB1GFGUIjpff09OW8IjfohAiBv9jWN5Uf3l+QcEr2LBZ9dIcxBhjtAkkH8J5TGY0auRA=="}]},"_npmVersion":"1.1.65","_npmUser":{"name":"sitapati","email":"sitapati@worldsankirtan.net"},"maintainers":[{"name":"sitapati","email":"sitapati@worldsankirtan.net"}]}},"readme":"#pressgang-ccms-rest-node\n\nA node module that provides a REST client library for the PressGang CCMS. It provides a more semantic interface for application development than the raw PressGang REST interface. Uses restler for the REST interface.\n\n##Installation\n\n```bash\nnpm install pressgang-ccms-rest-node\n```\n## Basic Usage\n\nFirst, require `pressgang-ccms-rest-node`:\n\n```js\nvar PressGangCCMS = require('pressgang-ccms-rest-node').PressGangCCMS;\n```\nNext, create a new PressGangCCMS object:\n\n```js\nvar pressgang = new PressGangCCMS('http://127.0.0.1:8080/TopicIndex');\n```\n\nNow, you can get the XML of a topic:\n\n```js\npressgang.getTopicData('xml', 8445, \n\tfunction(err, result){\n\t\tconsole.log('The topic xml content is:' + result);\n\t});\n```\n\nTo get the JSON representation of a topic:\n\n```js\npressgang.getTopicData('json', 8445, \n\tfunction(err, result){\n\t\tconsole.log('The JSON representation of the topic is:' \n\t\t+ JSON.Stringify(result);\n\t});\n```\n\n`isContentSpec` is an example of a more semantic interface to PressGang:\n\n```js\npressgang.isContentSpec(456, \n\tfunction(err, is){\n\t\tif (is) console.log('Topic 456 is a Content Specification')\n\t});\n```\n\n","maintainers":[{"name":"sitapati","email":"sitapati@worldsankirtan.net"}],"time":{"modified":"2022-06-24T14:39:17.566Z","created":"2012-10-16T01:42:54.809Z","0.0.1":"2012-10-16T01:42:59.517Z","0.0.2":"2012-10-16T01:45:32.473Z","0.0.3":"2012-10-16T03:06:44.939Z","0.0.4":"2012-10-16T03:52:18.695Z","0.0.5":"2012-10-31T12:43:03.324Z","0.0.6":"2013-04-16T03:45:32.631Z","0.0.7":"2013-04-16T03:50:06.071Z","0.0.8":"2013-04-21T00:31:32.391Z","0.0.9":"2013-04-21T11:24:53.081Z","0.0.10":"2013-04-21T11:26:58.338Z","0.0.11":"2013-04-21T11:43:28.433Z","0.0.12":"2013-04-21T12:04:36.521Z","0.0.13":"2013-04-21T12:08:52.730Z","0.1.0":"2013-04-25T08:54:35.177Z","0.1.1":"2013-04-25T12:42:27.343Z","0.1.2":"2013-04-26T04:12:45.154Z","0.2.0":"2013-09-16T02:32:22.625Z"},"author":{"name":"Joshua Wulf"},"repository":{"type":"git","url":"git://github.com/jwulf/node-pressgang-rest.git"}}