DEV Community

Cover image for Sweeper.js Update
Matthew Harris
Matthew Harris

Posted on

5 4

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

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit

Top comments (0)

Image of Datadog

Create and maintain end-to-end frontend tests

Learn best practices on creating frontend tests, testing on-premise apps, integrating tests into your CI/CD pipeline, and using Datadog’s testing tunnel.

Download The Guide

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay