node-csfd-api 3.0.0-next.10 → 3.0.0-next.11
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 +18 -7
- package/cjs/interfaces/creator.interface.js +2 -0
- package/cjs/interfaces/global.js +2 -0
- package/cjs/interfaces/movie.interface.js +2 -0
- package/cjs/interfaces/search.interface.js +2 -0
- package/cjs/interfaces/user-ratings.interface.js +2 -0
- package/esm/interfaces/creator.interface.js +1 -0
- package/esm/interfaces/global.js +1 -0
- package/esm/interfaces/movie.interface.js +1 -0
- package/esm/interfaces/search.interface.js +1 -0
- package/esm/interfaces/user-ratings.interface.js +1 -0
- package/package.json +4 -5
package/README.md
CHANGED
|
@@ -7,16 +7,17 @@
|
|
|
7
7
|
|
|
8
8
|
> JavaScript NPM library for scraping **Czech Movie Database (csfd.cz)**
|
|
9
9
|
>
|
|
10
|
-
> - Browser + Node.js (SSR)
|
|
11
10
|
> - JavaScript / TypeScript
|
|
11
|
+
> - Browser + Node.js (SSR)
|
|
12
12
|
> - Tested (~100% Code coverage)
|
|
13
13
|
> - ✅ Ready for new ČSFD 2021!
|
|
14
14
|
> - You can use in:
|
|
15
15
|
> - Firebase function
|
|
16
16
|
> - AWS λ (lambda function)
|
|
17
|
+
> - CloudFlare Worker
|
|
17
18
|
> - Chrome extension
|
|
18
19
|
> - React native app
|
|
19
|
-
> -
|
|
20
|
+
> - Browsers (Pay attention to CORS)
|
|
20
21
|
|
|
21
22
|
## Install
|
|
22
23
|
|
|
@@ -138,7 +139,7 @@ csfd.movie(535121).then((movie) => console.log(movie));
|
|
|
138
139
|
|
|
139
140
|
### Search
|
|
140
141
|
|
|
141
|
-
> Search movies and
|
|
142
|
+
> Search movies, users and TV series
|
|
142
143
|
|
|
143
144
|
```javascript
|
|
144
145
|
import { csfd } from 'node-csfd-api';
|
|
@@ -199,7 +200,7 @@ users: [
|
|
|
199
200
|
|
|
200
201
|
### Creators
|
|
201
202
|
|
|
202
|
-
>
|
|
203
|
+
> Get creator info + filmography
|
|
203
204
|
|
|
204
205
|
```javascript
|
|
205
206
|
import { csfd } from 'node-csfd-api';
|
|
@@ -351,9 +352,19 @@ _Note: You can not use both parameters 'includesOnly' and 'excludes'. Parameter
|
|
|
351
352
|
|
|
352
353
|
## Used by
|
|
353
354
|
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
-
|
|
355
|
+
### Web extensions
|
|
356
|
+
|
|
357
|
+
- [Netflix: chrome extension](https://chrome.google.com/webstore/detail/netflix-csfd/eomgekccbddnlpmehgdjmlphndjgnlni) ([code](https://github.com/bartholomej/netflix-csfd-ext))
|
|
358
|
+
- [Dafilms: chrome extension](https://chrome.google.com/webstore/detail/dafilms/hgcgneddmgflnbmhkjnefiobjgobbmdm) ([code](https://github.com/bartholomej/dafilms-ext))
|
|
359
|
+
- [Kviff.tv: chrome extension](https://chrome.google.com/webstore/detail/kvifftv-%20-csfd/ihpngekoejodiligajlppbeedofhnmfm) ([code](https://github.com/bartholomej/kviff-ext))
|
|
360
|
+
|
|
361
|
+
### Web applications
|
|
362
|
+
|
|
363
|
+
- [bartweb.cz](https://bartweb.cz) – **Last seen** section (**Firebase function**)
|
|
364
|
+
|
|
365
|
+
### Mobile applications
|
|
366
|
+
|
|
367
|
+
- KinoKlub – Mobile application for AeroFilms (React Native: Android + iOS application)
|
|
357
368
|
|
|
358
369
|
## Roadmap
|
|
359
370
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-csfd-api",
|
|
3
|
-
"version": "3.0.0-next.
|
|
3
|
+
"version": "3.0.0-next.11",
|
|
4
4
|
"description": "ČSFD API in JavaScript. Amazing NPM library for scrapping csfd.cz :)",
|
|
5
5
|
"main": "./cjs/index.js",
|
|
6
6
|
"author": "BART! <bart@bartweb.cz>",
|
|
@@ -8,14 +8,13 @@
|
|
|
8
8
|
"start": "tsc -w",
|
|
9
9
|
"prebuild": "rimraf dist",
|
|
10
10
|
"build": "tsc && tsc -p tsconfig-cjs.json && yarn barrels",
|
|
11
|
-
"barrels": "barrelsby -c barrels.json",
|
|
12
|
-
"postbuild": "npm-prepare-dist -s postinstall -s prepare && yarn
|
|
11
|
+
"barrels": "barrelsby --delete -c barrels.json",
|
|
12
|
+
"postbuild": "npm-prepare-dist -s postinstall -s prepare && yarn fix-paths",
|
|
13
13
|
"tsc": "tsc",
|
|
14
14
|
"demo": "ts-node demo",
|
|
15
15
|
"lint": "eslint ./src/**/**/* --fix",
|
|
16
16
|
"test": "jest",
|
|
17
17
|
"fix-paths": "yarn json -I -f ./dist/package.json -e \"this.module='./esm/index.js';this.main='./cjs/index.js';this.types='./types/index.d.ts'\"",
|
|
18
|
-
"delete:unused-folders": "rimraf ./dist/esm/interfaces ./dist/cjs/interfaces",
|
|
19
18
|
"publish:next": "yarn && yarn build && yarn test --coverage true && cd dist && npm publish --tag next",
|
|
20
19
|
"postversion": "git push && git push --follow-tags",
|
|
21
20
|
"release:beta": "npm version preminor --preid=beta -m \"chore(update): prelease %s β\"",
|
|
@@ -30,7 +29,7 @@
|
|
|
30
29
|
},
|
|
31
30
|
"dependencies": {
|
|
32
31
|
"cross-fetch": "^3.1.5",
|
|
33
|
-
"node-html-parser": "^6.1.
|
|
32
|
+
"node-html-parser": "^6.1.5"
|
|
34
33
|
},
|
|
35
34
|
"repository": {
|
|
36
35
|
"url": "git+https://github.com/bartholomej/node-csfd-api.git",
|