# node-servicenow

> A wrapper around the ServiceNow v1 Table REST API

Latest version **1.2.0** (published 2015-09-23) · ISC license · 0 weekly downloads

## Install

```sh
npm install node-servicenow
pnpm add node-servicenow
yarn add node-servicenow
bun add node-servicenow
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2015-09-23 |
| First published | 2015-09-21 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Colin O'Brien |
| Maintainers | echo3toecho7 |
| Keywords | ServiceNow |

## Links

- npm: https://www.npmjs.com/package/node-servicenow
- Repository: https://github.com/echo3toecho7/node-servicenow
- Homepage: https://github.com/Echo3ToEcho7/node-servicenow
- Issues: https://github.com/echo3toecho7/node-servicenow/issues
- npm.io page: https://npm.io/package/node-servicenow

## Dependencies (1)

- [restler](https://npm.io/package/restler.md) ^3.3.0

## Recent versions

- 1.2.0 (latest) — 2015-09-23
- 1.1.0 — 2015-09-23
- 1.0.0 — 2015-09-21

## README

ServiceNow Node
===============

The node-servicenow library is a simple wrapper around the v1 Table REST
Api. Currently, the library only supports getting a record and updating
a record. I will add create, delete, and query operations in the future.

Example
-------

```javascript

var ServiceNow = requrie('node-servicenow');
var instance = new ServiceNow('https://myinstance.service-now.com', 'username', 'password', {
  version: 'v1'
});
var record = instance.record('incident', '1234567890abcdef');

var opts = {
  params: {
    sysparm_scope: 'global'
  }
};

record.retrieve().then(() =>
  console.log('Short Description', irecord.get('short_description'));
  record.set('short_decription', 'Some Udpate')
         .set('state', 3)
         .update(opts)
         .then((res) => console.log(res.short_decription));
);
```

---
_Source: https://npm.io/package/node-servicenow · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
