Re: An utility to quickly introspect GJS exposed namespaces
- From: Patrick Griffis <tingping tingping se>
- To: "javascript-list gnome org" <javascript-list gnome org>
- Subject: Re: An utility to quickly introspect GJS exposed namespaces
- Date: Mon, 06 Nov 2017 14:16:46 -0500
The cgjs/utilities experiment became a quite useful stand alone utility to introspect at runtime GJS classes and gi avaliable namespaes.
More details here:
You can install it via `npm install -g cgjs-about` and then try one of these commands:
cgjs-about gi # show all namespaes
cgjs-about gi.Gio # show all gi.Gio info
cgjs-about Gio # same as above
cgjs-about Gtk.Button # show Gtk.Button class info
cgjs-about GLib.utf8_validate # show utf8_validate info
cgjs-about GLib enums # show GLib enums
options:
--json # print JSON output
--no-arguments # print JSON without arguments info
If something is missing or wrong, or it can be improved, please let me know.
Regards
Your link seems broken but I will say GNOME Builder would love such functionality. Does it work with just `gjs`?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]