Giter Site home page Giter Site logo

wvbe / docxml Goto Github PK

View Code? Open in Web Editor NEW
22.0 2.0 4.0 38.85 MB

TypeScript (component) library for building and parsing a DOCX file

Home Page: https://wvbe.github.io/docxml/

JavaScript 0.11% TypeScript 99.31% HTML 0.58%
deno docx ooxml typescript word

docxml's Introduction

docxml's People

Contributors

harvestcore avatar jogawebb avatar luisgallego-fonto avatar starlederer avatar wvbe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

docxml's Issues

Add a License

What license is this code published under? License should also be added to package.json.

(Breaking changes for) docxml v6

Collecting thoughts for the next breaking change in docxml's API:

  • Fix the naming inconsistency between borders.left/borders.right (tables) and borders.start/borders.end (table cells)
  • Drop indentation.hanging, since it is just the inverse of .firstLine. A negative value for .firstLine is the same as a positive value for .hanging, and they are therefore mutually exclusive
  • Support relative values for @line paragraph spacing

Make it work in NodeJS

  • Use dnt to create a NodeJS module from DOCX code
  • Investigate the fresh hell of Babel or other transpilers that would be needed to use components in JSX
  • Update README, wiki, etc.
  • Publish to npmjs.org

This issue doesn't have a very high priority for me personally or professionally, so please upvote/emoji/leave a comment if you'd like to see it sooner rather than later.

Fix the typings in your package

When importing docxml on typescript, one gets the error:

src/index.ts:1:41 - error TS7016: Could not find a declaration file for module 'docxml'. 'C:/dev/office/test-docx-library/node_modules/docxml/script/mod.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/docxml` if it exists or add a new declaration (.d.ts) file containing `declare module 'docxml';`

It seems that in the published package.json, the typings property is pointing to an inexistent or not published file:

(...)
  "type": "module",
  "typings": "esm/mod.d.ts",
  "exports": {
    ".": {
      "import": "./esm/mod.js",
      "require": "./script/mod.js",
      "types": "./types/mod.d.ts"
    }
  },
(...)

I assume that typings should point to "types/mod.d.ts"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.