Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mateusfreira/node-stackoverflow-jobs
Stackoverflow jobs wrapper purely written in Node.js
https://github.com/mateusfreira/node-stackoverflow-jobs
Last synced: 24 days ago
JSON representation
Stackoverflow jobs wrapper purely written in Node.js
- Host: GitHub
- URL: https://github.com/mateusfreira/node-stackoverflow-jobs
- Owner: mateusfreira
- Created: 2015-12-30T00:47:55.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2019-03-30T16:46:53.000Z (over 5 years ago)
- Last Synced: 2024-10-01T16:47:07.779Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 32.2 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Stackoverflow Jobs
=============[![Build Status](https://travis-ci.org/mateusfreira/node-stackoverflow-jobs.svg?branch=master)](https://travis-ci.org/mateusfreira/node-stackoverflow-jobs)
[![Coverage Status](https://coveralls.io/repos/mateusfreira/node-stackoverflow-jobs/badge.svg?branch=master&service=github)](https://coveralls.io/github/mateusfreira/node-stackoverflow-jobs?branch=master)Stackoverflow Jobs rss wrapper purely written in Node.js
## Getting Started
Wrapper can be downloaded from npm:
`npm install stackoverflow-jobs --save`
Once installed, its easy to use it:
```javascript
var stackoverflowJobs = require('stackoverflow-jobs');
```## Search for terms
```javascript
stackoverflowJobs.searchTerm('node').then(function(result){
result.jobs; // array with Jobs.
result.total; // Number of results
}).catch(function(error){});
```## Generic searchs
You just need to pass the search parameter for the method
```javascript
stackoverflowJobs.search({allowsremote : true, offersrelocation: true, location: "USA" }).then(function(result){
result.jobs; // array with Jobs.
result.total; // Number of results
}).catch(function(error){});
```## Jobs Object are like e.g:
```javascript
{
id: 'an string id of object',
link: 'link to the job',
category: [ 'an string array of categories'],
title: 'Title job',
description: 'HTML description of job',
pubDate: 'Tue, 08 Dec 2015 22:20:20 Z',//an date Object
location:'location as string'
}
```## Issues / Bugs
Please feel free to open a new issue ticket if any occures. I love pull requests so they are also welcome. Before making it out the issue, please do unit tests for your code.