wfhalert-jobs 1.0.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -5
- package/package.json +2 -4
- package/src/index.d.ts +2 -11
- package/src/index.js +0 -3
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
A zero-dependency JavaScript client for the free [WFH Alert Jobs API](https://www.wfhalert.com/api).
|
|
4
4
|
|
|
5
|
-
The API exposes dated remote-job leads
|
|
5
|
+
The API exposes dated remote-job leads previously shared with WFH Alert free readers. Results include the original source URL. Historical listings may have closed, so applications should show the shared date and let users verify the source.
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
@@ -16,8 +16,8 @@ npm install wfhalert-jobs
|
|
|
16
16
|
import { wfhalert } from 'wfhalert-jobs';
|
|
17
17
|
|
|
18
18
|
const result = await wfhalert.listJobs({
|
|
19
|
-
category: 'customer-support',
|
|
20
19
|
q: 'support',
|
|
20
|
+
shared_after: '2026-11-01',
|
|
21
21
|
limit: 10,
|
|
22
22
|
});
|
|
23
23
|
|
|
@@ -32,15 +32,14 @@ for (const job of result.data) {
|
|
|
32
32
|
```js
|
|
33
33
|
import { wfhalert } from 'wfhalert-jobs';
|
|
34
34
|
|
|
35
|
-
for await (const job of wfhalert.iterateJobs({
|
|
35
|
+
for await (const job of wfhalert.iterateJobs({ company: 'Acme' })) {
|
|
36
36
|
console.log(job.title, job.shared_date);
|
|
37
37
|
}
|
|
38
38
|
```
|
|
39
39
|
|
|
40
|
-
##
|
|
40
|
+
## Check feed status
|
|
41
41
|
|
|
42
42
|
```js
|
|
43
|
-
const categories = await wfhalert.listCategories();
|
|
44
43
|
const health = await wfhalert.health();
|
|
45
44
|
```
|
|
46
45
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wfhalert-jobs",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Zero-dependency JavaScript client for the free WFH Alert Jobs API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -22,9 +22,7 @@
|
|
|
22
22
|
"remote-jobs",
|
|
23
23
|
"jobs-api",
|
|
24
24
|
"job-search",
|
|
25
|
-
"
|
|
26
|
-
"customer-support",
|
|
27
|
-
"data-entry"
|
|
25
|
+
"remote-work"
|
|
28
26
|
],
|
|
29
27
|
"author": "WFH Alert",
|
|
30
28
|
"license": "MIT",
|
package/src/index.d.ts
CHANGED
|
@@ -1,19 +1,16 @@
|
|
|
1
|
-
export type JobCategory = 'entry-level' | 'customer-support' | 'data-entry';
|
|
2
|
-
|
|
3
1
|
export interface Job {
|
|
4
2
|
id: string;
|
|
5
3
|
title: string;
|
|
6
4
|
company: string;
|
|
7
5
|
shared_date: string;
|
|
8
6
|
original_url: string;
|
|
9
|
-
categories: JobCategory[];
|
|
10
7
|
}
|
|
11
8
|
|
|
12
9
|
export interface JobQuery {
|
|
13
|
-
category?: JobCategory;
|
|
14
10
|
q?: string;
|
|
15
11
|
company?: string;
|
|
16
12
|
shared_after?: string;
|
|
13
|
+
shared_before?: string;
|
|
17
14
|
limit?: number;
|
|
18
15
|
cursor?: string;
|
|
19
16
|
}
|
|
@@ -30,15 +27,9 @@ export interface JobsPage {
|
|
|
30
27
|
};
|
|
31
28
|
}
|
|
32
29
|
|
|
33
|
-
export interface CategoryCount {
|
|
34
|
-
slug: JobCategory;
|
|
35
|
-
count: number;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
30
|
export interface WFHAlertClient {
|
|
39
31
|
listJobs(query?: JobQuery): Promise<JobsPage>;
|
|
40
|
-
|
|
41
|
-
health(): Promise<{ ok: boolean; generated_at: string; jobs: number; version: number }>;
|
|
32
|
+
health(): Promise<{ ok: boolean; generated_at: string; count: number; jobs: number; scope: 'free-audience'; version: number; freshness_note: string }>;
|
|
42
33
|
iterateJobs(query?: JobQuery): AsyncGenerator<Job>;
|
|
43
34
|
}
|
|
44
35
|
|
package/src/index.js
CHANGED