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-docx

v4.6.0

Published

jsreport recipe rendering docx files

Downloads

10,172

Readme

@jsreport/jsreport-docx

NPM Version

jsreport recipe for creating docx reports

See the documentation https://jsreport.net/learn/docx

Changelog

4.6.0

  • update axios to fix audit
  • docxHtml ol lists now support the start attribute
  • fix docxStyle working with tables
  • add docxObject helper to allow embedding docx file into another docx

4.5.0

  • docxHtml table cell support for vertical-align style
  • fix docxHtml throwing error when table have a div as sibling with two inline elements
  • usage of Handlebars.createFrame should inherit existing data to ensure it correctly propagates existing values

4.4.0

  • use decodeURIComponentRecursive helper to handle better different cases of MS Programs storing target urls encoded multiple times
  • docxHtml: add support for generating nested tables
  • docxHtml: support for table, row, cell background color and color styles

4.3.0

  • add support for using docxStyle in loop
  • docxHtml: fix icon used in third level of lists and don't break when rendering list with level greater than max level (9)
  • improve error message when fetching images, include url to image in the message
  • docxHtml: add padding, margin support for cells
  • docxHtml: add border support for table, cell
  • docxHtml: fix rendering multiple paragraphs in single cell

4.2.1

  • docxHtml: fix title and list not working when having a wrapping tag

4.2.0

  • add support for docxStyle to target paragraph, cell, row so styles can be applied to container instead of just text
  • docxHtml: fix case when nested ul/li not rendering in the correct order
  • allow customizing bookmark of docxImage and general normalization of bookmarks
  • fix concat tags logic
  • docxImage: optimization when rending a lot of remote images
  • internal changes to support new response.output api

4.1.1

  • fix data access to @root data variables

4.1.0

  • fix handling of heading titles that dont have prefix (style ids that use just numbers, like the case when docx is generated when chinese is the default language)
  • docxRaw support to get xml from inline string in docx
  • docxImage add support for fallbackSrc, failurePlaceholderAction options
  • add support for svg images in docxImage
  • allow docxChild handlebars content to be evaluated as part of the caller document

4.0.1

  • remove NUL, VERTICAL TAB characters

4.0.0

  • minimum node.js version is now 18.15.0
  • update studio build against new webpack and babel
  • fix docxHtml should not normalize space of elements that have siblings in the content

3.7.2

  • fix table cells not being well-formed when user uses conditions (#if) across table rows and cells
  • support setting docxImage src from async result

3.7.1

  • fix docx rendering with handlebars partials

3.7.0

  • fix template.docx.templateAsset from payload not overwriting the template.docx.templateAssetShortid
  • fix parsing of end of if and start of another if in same line
  • add support for table tag in docxHtml helper
  • add support for img tag in docxHtml helper

3.6.0

  • make docxStyle work in document header/footer
  • add docxChild helper to allow merging text of another docx
  • accept buffer strings as base64 and throw better error when failed to parse office template input
  • make docxImage and docxChart to work in document header/footer
  • make docxHtml work in document header/footer

3.5.1

  • fix normalizing space for middle text element in docxHtml

3.5.0

  • add initial support for embedding html in docx (docxHtml helper)
  • add helper docxTOCOptions to support configuring TOC behavior (only option available there right now is updateFields which controls if the generated docx file should show a prompt when it is being open in Word to decide if the TOC should be updated)

3.4.0

  • add updateFields setting on docx when there is TOC, this allows MS Word to ask the user to update the page numbers of TOC when the document is opened
  • support configuring watermark options
  • add support for removal of conditional TOC titles

3.3.1

  • changes to enable caching of system helpers

3.3.0

  • make TOC logic to work with documents created with other languages
  • add backgroundColor support for docxStyle

3.2.0

  • update table of contents in docx
  • add support for defining merged cells in dynamic table

3.0.0-beta.1

Adaptations for the v3 APIs