Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@cloudcannon/data-extractor
Advanced tools
Readme
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 12 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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.