Socket
Socket
Sign inDemoInstall

hstream

Package Overview
Dependencies
Maintainers
3
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hstream - npm Package Versions

3.1.1

Diff

Changelog

Source

3.1.1

  • Update css-what, resolving denial of service warning
tornqvist
published 3.1.0 •

Changelog

Source

3.1.0

  • Add support for partial class matching, e.g. .foo -> <div class="foo bar"></div>
  • Fix complex attribute selectors, e.g. [class^="hello"]
  • Fix crash on attributes with newline characters
goto-bus-stop
published 3.0.0 •

Changelog

Source

3.0.0

  • Update dependencies. This major version bump is out of caution in case the parsing for the underlying HTML or CSS selector libraries changed.
goto-bus-stop
published 2.0.0 •

Changelog

Source

2.0.0

  • Update dependencies. hstream now requires Node.js 8 or up.
goto-bus-stop
published 1.2.0 •

Changelog

Source

1.2.0

  • Add ability to append or prepend to attributes (https://github.com/stackhtml/hstream/commit/e9b71c39d5a08d27b2ee09ae3043abcecd57b3db)

    hstream({
      '#app': {
        class: { prepend: 'beep ', append: ' boop' }
      }
    })
    
  • Remove attributes by setting attrName: null (https://github.com/stackhtml/hstream/commit/32480ba33327b1f32b16a91dc6752b4ecb5b8cec)

  • Edit attributes by passing a function (https://github.com/stackhtml/hstream/commit/32480ba33327b1f32b16a91dc6752b4ecb5b8cec)

    hstream({
      '#app': {
        title: function (prev) { return prev.toUpperCase() }
      }
    })
    
  • Edit html contents by passing a function (https://github.com/stackhtml/hstream/commit/b562c5ff1a644893093dda1c99558dded71fb422)

    hstream({
      'code': {
        _html: function (source) {
          return highlightHTML(source)
        }
      }
    })
    
goto-bus-stop
published 1.1.0 •

Changelog

Source

1.1.0

  • Add _replaceHtml option that replaces the outer html of an element
goto-bus-stop
published 1.0.1 •

Changelog

Source

1.0.1

  • Pass through DOCTYPE and HTML comments untouched.
goto-bus-stop
published 1.0.0 •

Changelog

Source

1.0.0

  • Initial release.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc