Skip to content

A tiny javascript library to help printing from the web.

License

Notifications You must be signed in to change notification settings

Strive-Labs/Print.js

 
 

Repository files navigation

Print.js

forked from https://github.com/crabbly/Print.js
The original print-js does not work with SSR (Next.js), there's an open PR to fix that that has a long time just waiting to be merged. So in the meantime we made this fork that has that small change and made our own npm package. If the PR gets merged, please get rid of this repo and npm package and use the original print-js

Testing on landing-gear

  • Change dependency on landing-gear's package.json (don't forget to revert the change before doing a commit)
    -     "@strive-labs/print-js": "^1.6.0",
    +     "@strive-labs/print-js": "file:./relative/path/to/local/Print.js",
  • npm install

Note: You may need to manually delete the dependency from node_modules to return back to the npm's registry package, it works by creating a symlink to the local print-js directory, and npm install sometimes has problem reverting the symlink

Publishing

npm install
npm run production
npm publish

About

A tiny javascript library to help printing from the web.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 75.1%
  • HTML 18.9%
  • SCSS 5.7%
  • CSS 0.3%