@readium/navigator-html-injectables
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

navigator-html-injectables

This package can be used either inside a reflowable (X)HTML or outside (in a javascript environment) to provide access and control over a resource from a navigator on any modern browser or embedded browser frame. This is a replacement for the javascript stubs found in the mobile SDKs, such as this.

Special care should be taken to make the final produced build compatible with a set of browsers that are older than what you'd typically support on the web, since this SDK can be used in a mobile app's webview, which is an environment that tends to run on an outdated web engine.

To build:

pnpm run build

It will output 2 files (index.js and index.umd.cjs) in dist.

Package Sidebar

Install

npm i @readium/navigator-html-injectables

Weekly Downloads

6

Version

1.2.0

License

BSD-3-Clause

Unpacked Size

374 kB

Total Files

77

Last publish

Collaborators

  • chocolatkey