Discuss Scratch

WojtekGame
Scratcher
1000+ posts

code-gui - Npm package allowing contents of a folder with a Terminal UI!


(removed because bing ai is getting weird in the quote)
NOTE: code-gui uses the "colors" npm module to have a better view than before!
code-gui's name was simply taken from scratch-gui.

Normally for now it's just an file explorer clone for the terminal.

GitHub: https://GitHub.com/JSInventions/code-gui/
NPM: https://npmjs.com/package/code-gui

NOTE: After 1.0, you have to add {“style”:“text”} after the directory string.
Note that the (version number) represents the version the style was added
All possible styles are:
  • keyboard (v1.1.2)
  • text-2 (v1.1.2)
  • text (v1.1.0)
  • emoji (1.1.0)
  • emoji-hacker (1.1.0)
    (safe)
  • text-hacker (v1.1.3)
    (also safe)
Syntax from 1.1:
var loadDir = require("code-gui");
loadDir("C:/", {"style":"text"});
loadDir("C:/", {"style":"text-2"});
loadDir("C:/", {"style":"emoji"});
loadDir("C:/", {"style":"emoji-hacker"}); //No it dosen't hack Scratch.
loadDir("C:/", {"style":"keyboard"});
loadDir("C:/", {"style":"text-hacker"});
loadDir("C:/", {"style":"text", "showItems":1});
loadDir("C:/", {"style":"text", "limitNames":true});
Terminal:
#-- C:/
| ... // <NULL> Null count: <nc>
#------
┌── C:/
└──
...
#-- C:/
| SomeLongFileThatIMade... <FILE> File count: 1
#------

Last edited by WojtekGame (March 18, 2023 19:51:09)

bigspeedfpv
Scratcher
500+ posts

code-gui - Npm package allowing contents of a folder with a Terminal UI!

why do scratchers have an aversion to using ui libraries
document.createElement('div') is the strangest one i've seen yet i think
WojtekGame
Scratcher
1000+ posts

code-gui - Npm package allowing contents of a folder with a Terminal UI!

bigspeedfpv wrote:

why do scratchers have an aversion to using ui libraries
document.createElement('div') is the strangest one i've seen yet i think
because yes, and i found a better use for my package: Text UI
WojtekGame
Scratcher
1000+ posts

code-gui - Npm package allowing contents of a folder with a Terminal UI!

BUMP!
god286
Scratcher
1000+ posts

code-gui - Npm package allowing contents of a folder with a Terminal UI!

So, this is basically a nice looking ls command? Cool
In your github repository your functions are in 1 line each. I think you should format the code. If you want to have a small package size then you could use a build tool.
WojtekGame
Scratcher
1000+ posts

code-gui - Npm package allowing contents of a folder with a Terminal UI!

god286 wrote:

So, this is basically a nice looking ls command? Cool
In your github repository your functions are in 1 line each. I think you should format the code. If you want to have a small package size then you could use a build tool.
1.Done 2.zipping required
WojtekGame
Scratcher
1000+ posts

code-gui - Npm package allowing contents of a folder with a Terminal UI!

BUMP + ADDED README!
WojtekGame
Scratcher
1000+ posts

code-gui - Npm package allowing contents of a folder with a Terminal UI!

b u m p
bigspeedfpv
Scratcher
500+ posts

code-gui - Npm package allowing contents of a folder with a Terminal UI!

eslint + prettier plz
also, update your node, node.js 14.x goes EOL in like a month
WojtekGame
Scratcher
1000+ posts

code-gui - Npm package allowing contents of a folder with a Terminal UI!

bigspeedfpv wrote:

eslint + prettier plz
also, update your node, node.js 14.x goes EOL in like a month
o-o
WojtekGame
Scratcher
1000+ posts

code-gui - Npm package allowing contents of a folder with a Terminal UI!

bigspeedfpv wrote:

eslint + prettier plz
also, update your node, node.js 14.x goes EOL in like a month
ok done updating to 19.x
WojtekGame
Scratcher
1000+ posts

code-gui - Npm package allowing contents of a folder with a Terminal UI!

boomp
lolecksdeehaha
Scratcher
1000+ posts

code-gui - Npm package allowing contents of a folder with a Terminal UI!

WojtekGame wrote:

BUMP + ADDED README!
By the way, if you're planning to have more dependencies in the future, typing
npm install
by itself in the directory will install all the stuff that it needs.
also, don't recommend -g, it can break some future projects that need different versions.
WojtekGame
Scratcher
1000+ posts

code-gui - Npm package allowing contents of a folder with a Terminal UI!

lolecksdeehaha wrote:

WojtekGame wrote:

BUMP + ADDED README!
By the way, if you're planning to have more dependencies in the future, typing
npm install
by itself in the directory will install all the stuff that it needs.
also, don't recommend -g, it can break some future projects that need different versions.
I may update if i will get more NPM projects (or dependecies).
And ik, “-g” is just global, i may remove when done.
WojtekGame
Scratcher
1000+ posts

code-gui - Npm package allowing contents of a folder with a Terminal UI!

bumping this again
WojtekGame
Scratcher
1000+ posts

code-gui - Npm package allowing contents of a folder with a Terminal UI!

bump + zipped much so it won't use too much internet data.
WojtekGame
Scratcher
1000+ posts

code-gui - Npm package allowing contents of a folder with a Terminal UI!

npm registry wrote:

code-gui is updated to 1.1.0
WojtekGame
Scratcher
1000+ posts

code-gui - Npm package allowing contents of a folder with a Terminal UI!

bump pls
WojtekGame
Scratcher
1000+ posts

code-gui - Npm package allowing contents of a folder with a Terminal UI!

bump
bigspeedfpv
Scratcher
500+ posts

code-gui - Npm package allowing contents of a folder with a Terminal UI!

why bump so many times in one day

Powered by DjangoBB