JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q33583F
  • License MIT

Inspect JS object in browser in any system that runs Javascript

Package Exports

  • js.inspect

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (js.inspect) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Why JS.inspect()?

JS.inspect was made to help inspect objects, strings, sql queries in any system that runs javascript when Debug is not available or is too much intrusive.

  • React Native
  • browser
  • Nodejs
  • NativeScript

Demo

JS.inspect Demo

How to install?

yarn global add js.inspect 
npm i -g js.inspect

Usage

POST

http://localhost:8080/inspect

body application/json

{
    "socket_id": "4JLn0IALS0J_sk-2AAAB",
    "title": "Random Object List",
    "lang": "", 
    "obj": [
        {"id": 1, "name": "AAAAA"},
        {"id": 2, "name": "BBBBBB"},
        {"id": 3, "name": "CCCCCCC"},
        {"id": 4, "name": "DDDDDDD", "age": 20 },
        {"id": 4, "age": 33 }
    ]
}

Result 01

body application/json

{
    "socket_id": "04DF2iK4ghiAjqtaAAAA",
    "title": "SQL formatted",
    "lang": "sql", 
    "obj": "select id, name, age from table_name where id > 5 and id < 9"
}

Result 02

Demo YouTube