Registry / devops / rest.node

rest.node

JSON →
library0.4.1jsnpmunverified

A minimal Node.js base class for building REST API clients quickly. Version 0.4.1 requires Node >= 0.6.0. It provides a simple foundation with no built-in HTTP client, leaving the developer to implement request logic. Unmaintained since 2012, it lacks modern features like promises, ESM, and TypeScript support. Not recommended for new projects; alternatives like axios, got, or node-fetch are more robust.

devops
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Package uses CommonJS; no ESM exports.

var Rest = require('rest.node');

Direct instantiation of the base class.

var rest = new Rest();

No promise support; uses error-first callbacks.

rest.get('/path', callback);

Creates a REST client and demonstrates GET and POST requests with callbacks.

var Rest = require('rest.node'); var rest = new Rest(); rest.get('https://api.example.com/resource', function(err, data) { if (err) console.error(err); else console.log(data); }); rest.post('https://api.example.com/resource', { key: 'value' }, function(err, data) { if (err) console.error(err); else console.log(data); });
Debug
Known footguns
breakingPackage is abandoned; no updates since 2012.
breakingNo built-in HTTP client; you must implement request logic.
gotchaAll callbacks use error-first pattern; no promises.
deprecatedRequires Node >=0.6.0; modern Node versions may have breaking changes.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
0 hits · last 30 days

No traffic data recorded yet.

Resources