Sweeper.js Update

mreggo

Matthew Harris

Posted on March 9, 2022

Sweeper.js Update

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

💖 💪 🙅 🚩
mreggo
Matthew Harris

Posted on March 9, 2022

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

Sweeper.js Update
javascript Sweeper.js Update

March 9, 2022