Node.js wrapper library for ServiceNow REST API, version 1.2.2. Provides authentication and CRUD operations on ServiceNow tables, including fetching table data, creating/updating/deleting tasks, retrieving attachments, and change tasks. Built on axios, it supports custom proxy settings via https-proxy-agent. Released under MIT, this library aims to simplify integration with ServiceNow but is community-maintained with limited updates, last updated in v1.2.2 (2021). Alternative to official ServiceNow SDK or manual HTTP requests.
npm install servicenow-rest-apiNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic usage: importing the library, creating an instance with instance name, username, and password from env var, authenticating, and fetching sample data from the 'incident' table.
Check ServiceNow documentation: modern instances use OAuth or basic auth by default. Consider switching to official SDK.
Use callbacks via .then() is not supported. Wrap in a Promise if needed.
Access data via response.result instead of response directly.
Use environment variables and avoid logging credentials. Consider OAuth instead.
Use CommonJS require: const sn = require('servicenow-rest-api');Correct: const ServiceNow = new sn('instance','user','pass');