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.
@ndla/article-converter
Advanced tools
Converts NDLA articles created in ed.ndla.no into a React tree
yarn add @ndla/article-converter
Articles rendered on NDLA.no can contain different embeds, each having their own data requirements. In order to keep embed data fresh, it is fetched directly from its source instead of being embedded within the stored article. As such, a transformation process is required.
In order to allow for flexibility in how and when an article is transformed, the process has been split up into several different steps:
<ndlaembed />
html elements.<ndlaembed />
tags and fetches the required embed metadata. The metadata is then serialized and stored in a data-json
attribute on the <ndlaembed>
.transform
from the @ndla/article-converter
package.@ndla/article-converter
package transforms the HTML string into React Elements, and applies a series of transformations to further transform the article. It returns a valid React tree.This package exports two functions that allows one to transform NDLA content to React nodes.
target="_blank"
to all links.<ndlaembed>
element that has been passed through GraphQL. Returns a react tree.FAQs
Transforms NDLA articles into extended html versions
The npm package @ndla/article-converter receives a total of 558 weekly downloads. As such, @ndla/article-converter popularity was classified as not popular.
We found that @ndla/article-converter 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.