
Research
Malicious fezbox npm Package Steals Browser Passwords from Cookies via Innovative QR Code Steganographic Technique
A malicious package uses a QR code as steganography in an innovative technique.
nast-util-to-html
Advanced tools
Render NAST to HTML.
NAST is an universal data structure to represent almost any document. It is under active development so there's no released documentation, but TypeScript definitions can be found here.
This repo is part of notajs project.
A demo page built with nast-util-from-notionapi.
npm i nast-util-to-html
require
this module,
const { renderToHTML } = require('nast-util-to-html')
Download a Notion.so page and convert to HTML.
const fs = require('fs')
const NotionAgent = require('notionapi-agent')
const { getOnePageAsTree } = require('nast-util-from-notionapi')
const { renderToHTML } = require('nast-util-to-html')
/* Configure NotionAgent's options */
const agentOpts = {
token: '',
suppressWarning: false,
verbose: true
}
const agent = new NotionAgent(options)
async function main() {
try {
/* Fill in a Notion.so page ID */
let pageID = ''
let tree = await getOnePageAsTree(pageID, agent)
let html = renderToHTML(tree)
fs.writeFileSync(
'index.html',
html,
{ encoding: 'utf-8' }
)
} catch (error) {
console.error(error)
}
}
main()
renderToHTML(data, options)
Render static HTML from NAST.
data
- (required) Nast.Block
Go to Definition | Notion.StyledString[]
Go to Definition
options
- (optional) RenderOptions
type RenderOptions = {
/** Ignore the root node */
contentOnly: boolean
/** Skip bulleted list and numbered list analysis */
bypassPreRenderTransform: boolean
}
A HTML string.
id
of the user)id
of the page)Generated by dependency-cruiser
NPM package.
FAQs
Transform NAST to HTML.
We found that nast-util-to-html 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
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.
Application Security
/Research
/Security News
Socket detected multiple compromised CrowdStrike npm packages, continuing the "Shai-Hulud" supply chain attack that has now impacted nearly 500 packages.