npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

htmlpress

v0.0.21

Published

Convert static HTML/CSS into dynamic Wordpress themes and templates

Downloads

10

Readme

htmlpress

Convert static HTML/CSS into dynamic Wordpress themes and templates

Usage

  Usage: htmlpress [options] [command]
  
  Commands:
    help     Display help
    version  Display version
  
  Options:
    -4, --404                 get 404 page (enabled by default)
    -c, --clean               strip processed data attributes when possible (enabled by default)
    -d, --debug               show debugging info (disabled by default)
    -h, --help                Output usage information
    -m, --modules <list>      modules to use (defaults to ["core","wordpress","acf"])
    -o, --output [value]      directory to save theme to (defaults to "./")
    -p, --pages <list>        page url or file paths to parse (defaults to ["/"])
    -r, --root                root path or url (required)
    -s, --sitemap [value]     use xml to find pages (defaults to "/sitemap.xml")
    -T, --test                dry run - don't write files (disabled by default)
    -t, --theme-name [value]  name of the theme (defaults to "Custom Theme")
    -v, --version             Output the version number
    -w, --webflow             is a Webflow-based site (disabled by default)
  
  Examples:
    - process remote site
    $ htmlpress --root com --pages /index /single --output my-theme

  

Documentation

Modules

Core

Data attributes providing PHP integrations

php-echo

Print the result of php code

Kind: instance method of Core

| Param | Description | | --- | --- | | php_code | the php code to run |

php-if

Print the result of php code

Kind: instance method of Core

| Param | Description | | --- | --- | | php_condition | the php condition to evaluate |

data-attr-src

Replace source attribute

Kind: instance method of Core

| Param | | --- | | name |

data-attr-style

Replace style attribute

Kind: instance method of Core

| Param | | --- | | name |

Wordpress

Data attributes providing Wordpress functionality

wp-loop

Repeats wp-loop-result element (or else current element) for each repeater

Kind: instance method of Wordpress
See: wp-loop-result

| Param | Type | Description | | --- | --- | --- | | loop_name | ACF_Field | the name of the repeater field |

wp-loop-result

conditionally repeat this element for each repeater entry

Kind: instance method of Wordpress

| Param | Type | Description | | --- | --- | --- | | condition | PHP_Expression | true, or a PHP conditional to evaluate |

wp-menu

Render child tags according to links in a Wordpress Menu

Kind: instance method of Wordpress

| Param | Type | Description | | --- | --- | --- | | menu | WP_Menu_Name | test |

wp-template

Wordpress PHP template file

Kind: instance method of Wordpress

| Param | | --- | | name |

ACF

Advanced Custom Fields integration provider

acf-block

Register block under block_name and render this content

Kind: instance method of ACF

| Param | Description | | --- | --- | | block_name | User-friendly block name to register |

acf-field

Render element according to the given ACF field

Kind: instance method of ACF

| Param | Type | Description | | --- | --- | --- | | field_name | ACF_Field | the name of the repeater field |

acf-repeater

Repeats acf-repeater-row element (or else current element) for each repeater

Kind: instance method of ACF
See: acf-repeater-row

| Param | Type | Description | | --- | --- | --- | | field_name | ACF_Field | the name of the repeater field |

acf-repeater-row

conditionally repeat this element for each repeater entry

Kind: instance method of ACF

| Param | Type | Description | | --- | --- | --- | | condition | PHP_Expression | true, or a PHP conditional to evaluate |