Companies House
An ES6 Node.js library for the Companies House BETA API
Installation instructions
Run npm install --save companies-house-api
Usage
First you will need to create an account on companies house and get an API Key
Then you will need to include the library
const CHA = require('companies-house-api');
const cha = new CHA('YOUR_API_KEY');
Search Methods
cha.searchForCompanyById(companyID).then(result => {
console.log(result);
}).catch(err => {
console.log(err);
});
cha.searchForCompanyByGenericTerm(query).then(result => {
console.log(result);
}).catch(err => {
console.log(err);
});
cha.searchAll(query).then(result => {
console.log(result);
}).catch(err => {
console.log(err);
});
cha.searchForOfficer(query).then(result => {
console.log(result);
}).catch(err => {
console.log(err);
});
cha.searchForDisqualifiedOfficer(query).then(result => {
console.log(result);
}).catch(err => {
console.log(err);
});