MCPcopy Index your code
hub / github.com/crabbly/Print.js

github.com/crabbly/Print.js @v1.6.0

repository ↗ · DeepWiki ↗ · release v1.6.0 ↗ · Ask this repo → · + Follow
20 symbols 40 edges 23 files 0 documented · 0% updated 11d agov1.6.0 · 2021-02-17★ 4,547159 open issues
README

Print.js

Build Status Software License Standard - JavaScript Style Guide npm

A tiny javascript library to help printing from the web.

For documentation and examples please visit: printjs.crabbly.com

Installation

You can download the latest version of Print.js from the GitHub releases or use the Print.js CDN available on the documentation page.

To install via npm:

npm install print-js --save

To install via yarn:

yarn add print-js

Import the library into your project:

import printJS from 'print-js'

Documentation

You can find documentation at printjs.crabbly.com.

Contributing to Print.js

devDependencies Status dependencies Status

Contributions to Print.js are greatly welcomed and encouraged.

Using issues

The issue tracker is the preferred channel for reporting bugs, requesting new features and submitting pull requests.

Keep in mind that we would like to keep this a lightweight library.

Please do not use the issues channel for support requests. For help with using Print.js, please ask questions on Stack Overflow and use the tag printjs.

Reporting bugs

Well structured, detailed bug reports are hugely valuable for the project.

  • Check the issue search to see if it has already been reported.
  • Isolate the problem to a simple test case.
  • Create a codepen, fiddle, codesandbox or similar online example replicating the issue.

Please provide any additional details associated with the bug.

Pull requests

Clear, concise pull requests are excellent at continuing the project's community driven growth.

Please make your commits in logical sections with clear commit messages.

Setting up a dev environment
npm install
npm run watch
Tests

The library is written following the Javascript Standard code style. When running tests, we will also test for any style issues or warnings.

Automated tests are written using the Jasmine framework and Karma runner.

To run the automated tests:

npm run test

To manually test the library features:

npm start

This will serve test\manual\test.html and open http://localhost:8080/test/manual in your default browser.

License

Print.js is available under the MIT license.

Extension points exported contracts — how you extend this code

Configuration (Interface)
(no doc)
src/index.d.ts

Core symbols most depended-on inside this repo

performPrint
called by 4
src/js/print.js
isRawHTML
called by 4
src/js/functions.js
addHeader
called by 3
src/js/functions.js
cleanUp
called by 3
src/js/functions.js
createBlobAndPrint
called by 2
src/js/pdf.js
capitalizePrint
called by 2
src/js/functions.js
loadIframeImages
called by 1
src/js/print.js
loadIframeImage
called by 1
src/js/print.js

Shape

Function 19
Interface 1

Languages

TypeScript100%

Modules by API surface

src/js/functions.js8 symbols
src/js/print.js4 symbols
src/js/modal.js2 symbols
src/js/html.js2 symbols
src/js/pdf.js1 symbols
src/js/json.js1 symbols
src/js/init.js1 symbols
src/index.d.ts1 symbols

Dependencies from manifests, versioned

@babel/core7.11.6 · 1×
@babel/preset-env7.11.5 · 1×
babel-loader8.1.0 · 1×
coveralls3.1.0 · 1×
css-loader4.2.2 · 1×
istanbul-instrumenter-loader3.0.1 · 1×
jasmine-core3.6.0 · 1×
karma5.2.1 · 1×
karma-chrome-launcher3.1.0 · 1×
karma-coverage2.0.3 · 1×
karma-jasmine4.0.1 · 1×
karma-phantomjs-launcher1.0.4 · 1×

For agents

$ claude mcp add Print.js \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact