
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.
@cloudcannon/data-extractor
Advanced tools
Parses content files to generate a dataset. The output is sent to stdout
, ready to pipe into a file for another process to consume.
npm install --global @cloudcannon/data-extractor
This gives you access to the data-extractor
binary.
data-extractor <path> [options]
To print usage details:
data-extractor --help
Parses content files to generate a dataset.
Usage
$ data-extractor <path> [options]
Options
--recursive, -r Search folders recursively
--no-recursive, Prevents search folders recursively (default)
--extension, -e Allowed extension(s) to parse (default: 'md')
--selector, -s JSON path to the data you want to parse (required)
--verbose Prints more debugging information
--help Prints this usage information
--version Prints the current version
Examples
$ data-extractor content/posts -r -s '$.categories'
$ data-extractor content -e md -e html -s 'seo.title'
Create a file at data/categories.json
containing the combined, unique values of categories
from
the front matter of each file at content/posts/**/*
:
data-extractor content/posts -r -s '$.categories' > data/categories.json
Create a file at data/page-titles.json
containing the combined, unique values of seo.title
from
the front matter of each Markdown and HTML file at content/*
:
data-extractor content -e md -e html -s 'seo.title' > data/page-titles.json
Install dependencies:
npm i
Run tests:
npm test
npm run test:watch
npm run test:coverage
Lint code:
npm run lint
Link this package locally to test it on a site folder, then run it within your site folder:
npm link
cd ../my-ssg-site
data-extractor
ISC
FAQs
Parses content files to generate a dataset.
The npm package @cloudcannon/data-extractor receives a total of 104 weekly downloads. As such, @cloudcannon/data-extractor popularity was classified as not popular.
We found that @cloudcannon/data-extractor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 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.
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.