
Product
Reachability for Ruby Now in Beta
Reachability analysis for Ruby is now in beta, helping teams identify which vulnerabilities are truly exploitable in their applications.
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.

Product
Reachability analysis for Ruby is now in beta, helping teams identify which vulnerabilities are truly exploitable in their applications.

Research
/Security News
Malicious npm packages use Adspect cloaking and fake CAPTCHAs to fingerprint visitors and redirect victims to crypto-themed scam sites.

Security News
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.