Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-glassdoor

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-glassdoor

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

  • 1.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-20%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 31 Mar 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc