Sweeper.js Update
Matthew Harris

Matthew Harris @mreggo

About: Hi I'm Matthew Harris, a teenage developer from NSW Australia, I enjoy making games and coding things for fun

Location:
NSW, Australia
Joined:
Mar 6, 2022

Sweeper.js Update

Publish Date: Mar 9 '22
10 0

Hello again, this post covers the goals of sweeper.js if you don't know what sweeper.js check out this post

Currently with sweeper.js I am working on a way to create a custom div, my goal with this is to have the div code utilize sweeper code so you never have to write html.

In a perfect world the ideal basic sweeper.js project would look like this

const sweeper = require('sweeper.js');

sweeper.init('windowTitle' () => {
    sweeper.div('divClass' () => {
        sweeper.h('h size', 'text', 'class');
    });

    sweeper.color('color', 'class')
});
Enter fullscreen mode Exit fullscreen mode

But sadly it currently looks like this (with no way to make custom divs)

const sweeper = require('sweeper.js');

sweeper.init('title');

sweeper.h('h size', 'text', 'class');
sweeper.color('color', 'class');

sweeper.endHtml();
Enter fullscreen mode Exit fullscreen mode

Anyway it would really help if you could check out and contribute to the project

GitHub: https://github.com/MrEggoXYZ/Sweeper.js#readme
npm: https://www.npmjs.com/package/sweeper.js

Comments 0 total

    Add comment