Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@evidentpoint/readium-cfi-js
Advanced tools
EPUB3 CFI utility library in JavaScript
This is a software component used by other Readium projects, see https://github.com/readium/readium-shared-js
BSD-3-Clause ( http://opensource.org/licenses/BSD-3-Clause )
See license.txt.
npm install readium-cfi-js
or yarn add readium-cfi-js
This library is bundled in UMD and ES module formats.
const EPUBcfi = require('readium-cfi-js');
import * as EPUBcfi from '@evidentpoint/readium-cfi-js';
window.EPUBcfi
<script src="readium-cfi.umd.js"></script>
Currently not supported as the implementation depends on jQuery and the DOM.
A subset of the API could work without a browser, which may be planned for a future release.
Prerequisites:
Initial setup:
npm install
(to download dependencies defined in package.json
... note that the --production
option can be used to avoid downloading development dependencies, for example when testing only the pre-built dist
folder contents)Typical workflow:
./src
and ./spec/models
)npm run build
(to update the output bundles in the dist
folder)Unit tests:
npm run test
(Karma launcher)Travis (Continuous Integration): https://travis-ci.org/readium/readium-cfi-js/
The dist
directory contains bundled scripts in two module formats:
readium-cfi.umd.js
(and its associated source-map file),
which aggregates all the required code (external library dependencies included, such as jQuery, etc.)
You can include this as CommonJS/AMD or with the global EPUBcfi
Works best for when using Browserify or RequireJS
readium-cfi.esm.js
(and its associated source-map file),
also aggregates all the required code
Works best for rollup.js or webpack
All packages "owned" and maintained by the Readium Foundation are listed here: https://www.npmjs.com/~readium
FAQs
Readium - CFI javascript library
The npm package @evidentpoint/readium-cfi-js receives a total of 13 weekly downloads. As such, @evidentpoint/readium-cfi-js popularity was classified as not popular.
We found that @evidentpoint/readium-cfi-js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.