Gathering detailed insights and metrics for fs-read-data
Gathering detailed insights and metrics for fs-read-data
Gathering detailed insights and metrics for fs-read-data
Gathering detailed insights and metrics for fs-read-data
write-json
Write a JSON file to disk, also creates intermediate directories in the destination path if they don't already exist.
@cronvel/get-pixels
Pruned version of the 'get-pixels' package by Mikola Lysenko (only node.js and local fs files)
data-forge-fs
This library contains the file system extensions to Data-Forge that allow it to directly read and write CSV and JSON files in Node.js.
data-fs
create read update an delete binary record (database like file system)
npm install fs-read-data
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (51.06%)
TypeScript (48.94%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
5,102
Last Day
1
Last Week
17
Last Month
45
Last Year
268
4 Stars
15 Commits
1 Forks
2 Watching
10 Branches
1 Contributors
Minified
Minified + Gzipped
Latest Version
1.0.4
Package Id
fs-read-data@1.0.4
Unpacked Size
25.29 kB
Size
9.32 kB
File Count
9
NPM Version
6.1.0
Node Version
8.8.1
Cumulative downloads
Total Downloads
Last day
-50%
1
Compared to previous day
Last week
21.4%
17
Compared to previous week
Last month
246.2%
45
Compared to previous month
Last year
7.2%
268
Compared to previous year
fs-read-data
is a simple mechanism to read files in this one of multiple formats {json, js, yaml, ini, toml}.
Provides a CLI and API interface to underlying capability, making conversion of data-formats a breeze, especially when coupled with fs-write-data
It's common to have data files in one of multiple well-known formats (json, yaml, ini, toml). Sometimes these are config files, sometimes they are just declartive definitions.
This is a tool to help work with such files without getting in your way.
Great for checking validity of hand-crafted data files.
Compared to a single spurious babel module installation, the additional weight of multiple file parsers was considered acceptable collateral-weight.
1npm install fs-read-data
1yarn install fs-read-data
1 2 Usage: read-data [fname] 3 4 reads [fname] in {json, yaml, ini, toml}, prints resulting json to stdout. 5 6 7 Options: 8 9 -V, --version output the version number 10 -h, --help output usage information
Exposes a single function via the API
1/** 2 * Reads filename in one of the supported formats 3 * and returns a promise that resolves to a JavaScript object. 4 * 5 * @async 6 * @param fname file to read 7 */ 8async readFile(fname);
1 2const read = require('fs-read-data'); 3 4// one of these 5const data = read(`/path/to/file/data`); // auto-detects available extension. Error if multiple found 6const data = read(`/path/to/file/data.json`); 7const data = read(`/path/to/file/data.yaml`); 8const data = read(`/path/to/file/data.yml`); 9const data = read(`/path/to/file/data.js`); // must return a single object 10const data = read(`/path/to/file/data.ini`); 11const data = read(`/path/to/file/data.toml`);
This is an aggregation module, much like fs-extra. It's built upon the shoulders of libraries that provide it's core functionality.
Support cast: awaiting commander
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
Bugs, PRs, comments, suggestions welcomed!
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/9 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
39 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More