
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
A CLI for creating ePubs from [W3C Publication Manifests](https://www.w3.org/TR/pub-manifest/).
A CLI for creating ePubs from W3C Publication Manifests.
npm install -g epubjs-cli
epubs-cli create ./path/to/manifest.jsonld -o mybook.epub
Usage: epubjs-cli [options] [command]
Create an Epub from a JSON Manifest
Options:
-V, --version output the version number
-h, --help display help for command
Commands:
create [options] <inputPath>
help [command] display help for command
Input must be a file url.
import { writeFileSync } from 'node:fs';
import { pathToFileURL } from 'node:url';
import { ManifestToEpub } from "epubjs-cli";
let filePath = "./manifest.jsonld";
let url = pathToFileURL(filePath).href;
let epub = await new ManifestToEpub(url);
let file = await epub.save();
if (file) {
writeFileSync("./mybook.epub", file);
}
A publication manifest is a JSON-LD serialized document that allows for expressing information about a digital publication, and providing URLs to the resource that publication requires. It's defined by the W3C Publication Manifests standard. It mostly maps nicely to elements in the Epub OPF XML document.
The manifest can support any schema.org metadata but when converting to Epub there are a few important ones that will be included in the generated package.opf
.
dateModified
-> dcterms:modified
id
-> dc:identifier
inLanguage
-> dc:language
dateModified
-> dcterms:modified
rights
-> dc:rights
creators[]
-> dc:creator
contributor[]
-> dc:contributor
title
-> dc:title
source
-> dc:source
subject
-> dc:subject
description
-> dc:description
properties
array, which will be passed as spine item properties when converting to Epub.rel="cover"
-> identifies the cover spine itemrel="cover-image"
-> identifies the Epub cover image urlrel="contents"
-> identifies the Table of Contents / Nav for the EpubFAQs
A CLI for creating ePubs from [W3C Publication Manifests](https://www.w3.org/TR/pub-manifest/).
The npm package epubjs-cli receives a total of 45 weekly downloads. As such, epubjs-cli popularity was classified as not popular.
We found that epubjs-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.