Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
NodeJS wrapper library for using WebMerge API.
$ npm install webmerge --save
or with yarn
...
$ yarn add webmerge
In order to use WebMerge's API, you need to obtain an API key and secret from this page.
https://dashmug.github.io/webmerge-node/index.html (work-in-progress)
const WebMergeAPI = require('webmerge').WebMergeAPI
const api = new WebMergeAPI(API_KEY, SECRET)
// Retrieve a specific document
api.getDocument(123456, (error, result) => console.log(result))
Using native Promise,
const WebMergePromiseAPI = require('webmerge').WebMergePromiseAPI
const api = new WebMergePromiseAPI(API_KEY, SECRET)
// Retrieve a specific document
api.getDocument(123456).then(console.log)
Using Bluebird,
const Promise = require('bluebird')
const WebMergePromiseAPI = require('webmerge').WebMergePromiseAPI
const api = new WebMergePromiseAPI(API_KEY, SECRET, Promise)
// Retrieve a specific document
api.getDocument(123456).then(console.log)
See documentation for more information.
new WebMergeAPI(key, secret)
Create an API client that uses callbacks.
new WebMergeAPI(key, secret, [PromiseImplementation])
Create an API client that uses Promises. Optionally, you may specify which Promise implementation to use (e.g. bluebird). Defaults to using Native Promises.
WebMerge REST API Reference: https://www.webmerge.me/developers/documents
mergeDocument(id, key, data, isTestMode, downloadFile, callback)
Merge a document.
createDocument(data, callback)
Create a new document. Depending on the type of document you are creating, different parameters are required
updateDocument(id, data, callback)
Update a document. You cannot change the type of document, but you can change many of the other settings as well as change the contents of the document. Only parameters that are sent in the request will be updated.
getDocuments(options, callback)
Retrieve a list of documents.
getDocument(id, callback)
Retrieve a specific document.
getDocumentFields(id, callback)
Retrieve a list of fields for a specific document.
getDocumentFiles(id, callback)
Retrieve the file that was uploaded for a specific document (pdf, docx, xlsx, or pptx).
copyDocument(id, data, callback)
Create a copy of a document.
deleteDocument(id, callback)
Delete a document.
WebMerge REST API Reference: https://www.webmerge.me/developers/routes
mergeDataRoute(id, key, data, isTestMode, downloadFile, callback)
Merge a data route.
createDataRoute(data, callback)
Create a new data route.
updateDataRoute(id, data, callback)
Update a data route.
getDataRoutes(callback)
Retrieve a list of data routes.
getDataRoute(id, callback)
Retrieve a specific data route.
getDataRouteFields(id, callback)
Retrieve a list of fields for a specific data route. This includes fields from all documents in routing rules.
getDataRouteRules(id, callback)
Retrieve a list of rules for a specific data route.
deleteDataRoute(id, callback)
Delete a data route.
WebMerge REST API Reference: https://www.webmerge.me/developers/tools
combineFiles(data, callback)
Combine multiple files (pages) into a single file.
convertToPDF(data, callback)
Convert file to PDF
MIT © Noel Martin Llevares
FAQs
Library for accessing WebMerge (https://webmerge.me/) API
The npm package webmerge receives a total of 15 weekly downloads. As such, webmerge popularity was classified as not popular.
We found that webmerge 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.