Giter Site home page Giter Site logo

browser-scan's Introduction

Browser scan

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

Table of Contents

Apps

Browser scan can be used in three different ways

Browser scan Web

  1. Browser scan web is a web application powered by React and Node
  2. It lets you scan your project/file against a sepcific version of a browser and produces results per file on line basis
  3. Currently browser scan web supports only style sheets

Browser scan CLI

  1. browser-scan-cli can scan your project/file in cli environment
  2. install it using the command
  • npm install @browser-scan/cli -g or yarn global add @browser-scan/cli
  1. Sample input and output TBD

Browser scan API

  1. A Collection of Rest API's that can be integrated into your APPS
  2. The Following APIs are supported

Scanner Stream

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][]>;
}

Scanner File

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

GraphQL API

  • TBD

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.