
Security News
PyPI Expands Trusted Publishing to GitLab Self-Managed as Adoption Passes 25 Percent
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads
data-directory
Advanced tools
This is a Node module for loading structured data from a directory in the style of Jekyll's _data. Install it with:
npm install data-directory
Your directory should contain one or more files with the following extensions:
.csv for comma-separated values.json for JSON.yaml or .yml for YAMLYou can read them all into a single data structure like this:
var loadData = require('data-directory');
loadData('_data', function(error, data) {
if (error) return console.error('error:', error);
console.log('data:', JSON.stringify(data, null, ' '));
});
Nested directories will introduce new levels in the data structure. For instance, if you data directory looks like this:
├─ bar.json
└─ baz
└─ qux.csv
Then it should parse into a JSON structure that looks like:
{
"bar": {
// contents of bar.json
},
"baz": {
"qux": [
// rows in baz/qux.csv
]
}
}
FAQs
Load data from a directory like Jekyll
We found that data-directory 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.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.

Security News
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.