Gathering detailed insights and metrics for cson-parser
Gathering detailed insights and metrics for cson-parser
Gathering detailed insights and metrics for cson-parser
Gathering detailed insights and metrics for cson-parser
npm install cson-parser
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
BSD-3-Clause License
133 Stars
152 Commits
27 Forks
9 Watchers
8 Branches
17 Contributors
Updated on Apr 28, 2025
Latest Version
4.0.9
Package Id
cson-parser@4.0.9
Size
8.35 kB
NPM Version
6.14.11
Node Version
14.16.0
Published on
Mar 26, 2021
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
A minimalistic CSON parser. Offers:
In addition of pure data it allows for simple arithmetic expressions like addition and multiplication. This allows more readable configuration of numbers, the following is a valid strict CSON file:
1cachedData: 2 refreshIntervalMs: 5 * 60 * 1000
npm install --save cson-parser
1CSON = require 'cson-parser' 2# This will print { a: '123' } 3console.log CSON.parse "a: '123'"
cson-parser
only offers basic parsing and serialization.
But there are some great tools if you want more than that:
fs-cson
, read and write CSON filesCSON
, provides file, coffeescript, javascript handling and a CLIseason
,
atom.io's CSON package.
Includes CLI tool to convert CSON to JSONgrunt-cson
,
converts CSON to JSON as a grunt taskload-grunt-configs
,
loads grunt config from CSON files (among other formats)fetcher
,
a declarative way to download (frontend) libraries, supports CSON configscsonschema
,
parses JSON Schema files written in CSONYou can find more on the npm website.
YAML allows for some pretty complex constructs like anchor and alias, which can behave in unexpected ways, especially with nested objects. CSON is simpler while still offering most of the niceties of YAML.
JSON doesn't offer multi-line strings and is generally a little noisier. Also sometimes it can be nice to have comments in config files.
You don't want data files being able to run arbitrary code.
Even when ran in a proper sandbox, while(true)
is still possible.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
Found 6/13 approved changesets -- score normalized to 4
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
project is archived
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
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
15 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
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