Browser scan lets you scan your CSS and Javascript against a browser of your choice. The feature compatibility is obtained from Can I use databse
- Apps
- Browser scan web (Coming Soon)
- Browser scan CLI (Coming Soon)
- Browser scan API (Coming Soon)
- Scanner Stream
- Scanner File
- GraphQL APIS-TBD
- Browser Scan app (npm)
Browser scan can be used in three different ways
- Browser scan web is a web application powered by React and Node
- It lets you scan your project/file against a sepcific version of a browser and produces results per file on line basis
- Currently browser scan web supports only style sheets
- browser-scan-cli can scan your project/file in cli environment
- install it using the command
npm install @browser-scan/cli -g
oryarn global add @browser-scan/cli
- Sample input and output TBD
- A Collection of Rest API's that can be integrated into your APPS
- The Following APIs are supported
A POST Rest API that Streams the results of the given file for a specified version of a browser
METHOD: POST
PATH: '/scan/stream'
HEADERS:
- Transfer-Encoding: chunked
- Content-Type : application/json
RESPONSE: 200 OK
interface RequestBody {
browser: Browsers;
version: string;
file: Blob;
}
interface Response {
scanned_result: Record<file, [line, Compatibility_Message][]>;
}
A Post API that lets you scan style files and get the results on line basis without any streaming
METHOD: POST
PATH: '/scan/file'
HEADERS:
- Content-Type: aplication/json
RESPONSE STATUS CODE: 200
The request body and response body are same as the stream scanner
- TBD