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

@jsreport/jsreport-assets

v4.2.0

Published

jsreport extension embedding static assets like fonts or helpers into the templates

Downloads

9,305

Readme

@jsreport/jsreport-assets

NPM Version

jsreport extension embedding static assets like fonts or helpers into the templates

See https://jsreport.net/learn/assets

Changelog

4.2.0

  • add support for encoding buffer (handy when working in scripts/helpers that work directly with binary data)
  • update deps to fix npm audit

4.1.1

  • update @jsreport/office to fix set res.meta.fileExtension without starting .

4.1.0

  • internal changes to support new response.output api

4.0.2

  • update @jsreport/office

4.0.1

  • fix jsreport.config.json requires metadata for v4

4.0.0

  • minimum node.js version is now 18.15.0
  • update studio build against new webpack and babel

3.6.1

  • fix resolving assets as links

3.6.0

  • add support for specifying what are the main document properties of assets entitySet

3.5.0

  • errors from asset logic should be weak
  • validate that passed asset path is string

3.4.4

  • asset not found is marked as weak error

3.4.3

  • fix {#asset} resolving when there is leading/trailing space in asset name

3.4.2

  • changes to enable new trustUserCode option
  • changes to enable caching of system helpers

3.4.1

  • make asset editor component's code active display configurable

3.4.0

  • fix asset link click from xlsx template preview
  • update to improve the display of templates with xlsx in studio

3.3.0

fix studio usage of old property scope, new one: sharedHelpersScope

3.0.1

  • use relative path to the currently evaluated entity (for example relative asset inside script should be relative to the script)

3.0.0-beta.1

Initial release for jsreport v3 New templating engine helpers introduced

{{#asset pathOrName}}

jsreport proxy extended with additional functions

const jsreport = require('jsreport-proxy')
jsreport.assets.read(path)
jsreport.assets.require(path)
jsreport.assets.registerHelpers(path)