DEV Community

Cover image for Sweeper.js Update
Matthew Harris
Matthew Harris

Posted on

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

Top comments (0)