wp-style-edit

If you want to change information of a theme, you need to make changes in style.css of wordpress theme.

Usage no npm install needed!

<script type="module">
  import wpStyleEdit from 'https://cdn.skypack.dev/wp-style-edit';
</script>

README

Wordpress Style.css editor

If you want to change information of a theme, you need to make changes in style.css of wordpress theme.

This module will help you to open style.css and change fields, add or update.

require("wp-style-edit")("./path/to/style.css").change(function (pack) {
    if (pack) {
        pack["Theme Name"] = "I have changed my theme name";
    }
    return pack;
});

in the example above, the pack has entire values of package.