Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
<gem-book>
Docute gem implementation
# install dependencies
npm i gem-book
# build configuration, specify the document directory `docs`
# save the configuration file to the src directory, default filename `book.json`
npx gem-book -o src docs
configuration file example: book.json.
next use custom elements <gem-book>
// use `lit-html`
import 'gem-book';
import config from './book.json';
html`
<gem-book .config=${config}></gem-book>
`;
or
// use DOM API
import { Book } from 'gem-book';
import config from './book.json';
document.body.append(new Book(config));
or
<srcipt src=https://unpkg.com/gem-book></script>
const book = document.createElement('gem-book');
book.config = {...};
document.body.append(book);
<gem-book>
just add the priority number to the document folder name and file name, e.g:
src/examples/hello/docs/
├── 002-guide
│ ├── README.md
│ └── installation.md
├── 003-about.md
└── README.md
output:
├── <README.md h1>
├── Guide
│ ├── <README.md h1>
│ └── Installation
└── About
# install the cli locally
npm link
# development cli
npm run watch
# development `<gem-book>`
npm run example
# write docs
npm run docs
FAQs
Create your document website easily and quickly
The npm package gem-book receives a total of 2 weekly downloads. As such, gem-book popularity was classified as not popular.
We found that gem-book demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.