To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!
More about adding a collaboratorGavel.js - JavaScript implementation
Gavel.js - JavaScript implementation
Gavel.js is JavaScript implementation of the Gavel specification.
Installation
npm install gavel
Introduction
Usage from JavaScript
const gavel = require('gavel');
const expectedResponse = {
'statusCode': '200',
'headers': {
'content-type': 'application/json',
'date': 'Wed, 03 Jul 2013 13:30:53 GMT',
'server': 'gunicorn/0.17.4',
'content-length': '30',
'connection': 'keep-alive'
},
'body': '{\n "origin": "94.113.241.2"\n}'
};
const realResponse = {
'statusCode': '200',
'headers': {
'content-type': 'application/json',
'date': 'Wed, 03 Jul 2013 13:30:53 GMT',
'server': 'gunicorn/0.17.4',
'content-length': '30',
'connection': 'keep-alive'
},
'body': '{\n "origin": "94.113.241.2"\n}'
};
const result = gavel.validate(expectedResponse, realResponse);
Command-line interface
Gavel.js implements CLI according to the common Command-line interface specification.
Topics
Last published about 3 years ago by honzajavorek.