Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
bucklespring
Advanced tools
An experimental library for interacting with Notion content as an MDAST
A library & command-line utility for converting Notion documents into Markdown (Mdast).
Bucklespring is built on Remark & Unified and so is fully compatible with all tools & plugins in the Remark ecosystem.
More examples can be found in ./examples/
const { notionToMdast } = require('bucklespring')
const { getNotionPage } = require('bucklespring/helper/notion-api')
const notionPage = JSON.stringify(await getNotionPage("d08e52c1-1f05-4c27-85bc-e215261fa4dd"))
const tree = await unified()
.use(notionToMdast)
.use(serializeMarkdown)
.use(frontMatter)
.process(notionPage)
console.log(tree.toString())
}
# Export a page
npx bucklespring notion export-page d08e52c1-1f05-4c27-85bc-e215261fa4dd
# Export a page using its frontmatter as a filename.
npx bucklespring notion export-collection --filename "[title].md" d08e52c1-1f05-4c27-85bc-e215261fa4dd
# Export a collection with a collection-view
npx bucklespring notion export-collection 53511a6a-726e-47db-82cc-dac166f31466 91d6a116-7f4f-44d3-ba10-6f96267da034
# Export a collection using their frontmatter for filenames
npx bucklespring notion export-collection --dirname test --filename "[id].md" 53511a6a-726e-47db-82cc-dac166f31466 91d6a116-7f4f-44d3-ba10-6f96267da034
Simply put: Until Notion's full API rollout, a major version seems irresponsible as the unofficial API may change. However! 0.x.x versions are as stable as any other unofficial API client.
I agree! Reading an abstract-syntax-tree (AST) is an important first-step in being able to render something from a CMS. Both more traditional CMSes and block-based CMSes use a process such as this one for rendering.
With this library, you can render into HTML (via Rehype) or plug-and-play with any other Unified-compatible format.
An important concept in bucklespring
is the Kitchen Sink, which is used as a Mock.
This is a real page on Notion which includes many different inline block components.
Its purpose is to validate that all of the converters
are doing their jobs correctly.
Currently there is only one kitchen sink - although this is tested against other
The easiest way to develop bucklespring
is using the Kitchen Sink boilerplate.
FAQs
An experimental library for interacting with Notion content as an MDAST
The npm package bucklespring receives a total of 1 weekly downloads. As such, bucklespring popularity was classified as not popular.
We found that bucklespring 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
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.