
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
decms-client
Advanced tools
The DeCMS client consists of a client API and a CLI tool. It also supplies a test script that can be run against a DeCMS server.
var decms = require('decms-client'),
client = new decms.Client('http://127.0.0.1:8080', 'ip');
client.get("search", {q:"sport"}, function(error, result) {
console.log(error, result.response.docs);
});
parameters
should be an object with key-value pairs. data
should either be an object that will be serialized as JSON, or a readable stream that will be piped.
The callback result
will be the parsed JSON response from DeCMS. If we failed to parse the raw response it will be available on the error object as rawResponse
.
Communicate with DeCMS: decms [options] [method
] path
method
should be one of "get", "post", "put" or "delete" and will default to "get" if not provided.
--help Displays this help [boolean]
-t, --access_token Access token, can also be supplied as a DECMS_ACCESS_TOKEN environment variable [default: "ip"]
-h, --host DeCMS host, can also be supplied as a DECMS_HOST environment variable [default: "http://e.tv2.dk:8080"]
-f, --file Load data from file
-u, --uri Resolve the path as a document uri. [boolean]
-p, --pretty Prints prettified human readable JSON [boolean]
Get document: $ decms document/3dba0b213c0d0e57f42301605bcd097897826fa6
...document by uri: $ decms --uri tvtid://program/25/27774915
Search: $ decms search?q=hugo
Post a document: $ ./bin/decms.js post document --file document.json
DeCMS client provides a test suite that can be run using decms_test
.
--help Displays this help [boolean]
-t, --access_token Access token, can also be supplied as a DECMS_ACCESS_TOKEN environment variable [default: "ip"]
-h, --host DeCMS host, can also be supplied as a DECMS_HOST environment variable [default: "http://e.tv2.dk:8080"]
FAQs
DeCMS client
The npm package decms-client receives a total of 2 weekly downloads. As such, decms-client popularity was classified as not popular.
We found that decms-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.