ng

node-glassdoor

Node.js module for interacting with Glassdoor's API v1.1

Showing:

Popularity

Downloads/wk

1

GitHub Stars

5

Maintenance

Last Commit

4yrs ago

Contributors

0

Package

Dependencies

3

Size (min+gzip)

184.1KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

node-glassdoor

npm version
Node.js module for interacting with Glassdoor's API v1.1 ( powered by glassdoor )

Install

npm install --save node-glassdoor

Usage

//init
var Glassdoor = require('node-glassdoor').initGlassdoor({
    partnerId: xxxxx,
    partnerKey: "xxxxxx"
});

//Return the first employer information from list of results
//
//Return a employer object or empty object
//
//Result Example: https://gist.github.com/macctown/3ba27cda74db26174571fb092eeedc3e
Glassdoor.findOneCompany('google', 
    {
        state:"CA", 
        country:"US"
    })
    .then(function (data) {
        console.log(data);
    })
    .catch(function (err) {
        console.error(err);
    });


//Return all employers information that match the keyword
//
//note I: the specific location information (state, city, country) 
//      only affect the job info inside of each employer info
//
//note II: the original API return 10 employers in each page if there are more than 10
//  but here we concat employers in every page and return an array contains all of results
//
//Return a employer object array or empty array
//
//Result Example: https://gist.github.com/macctown/8707312193de85d2d4373945cfc345c8
Glassdoor.findAllCompanies('google', 
    {
        state:"CA"
    })
    .then(function (data) {
        console.log(JSON.stringify(data));
    })
    .catch(function (err) {
        console.error(err);
    }) 

Test

ID="xxxxx" KEY="xxxxxx" npm test

Reference

TODO

  • Make code fancy
  • Add those fancy badges
  • Add Job API

License

MIT

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial