Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cson

Package Overview
Dependencies
Maintainers
2
Versions
113
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cson - npm Package Compare versions

Comparing version 6.9.0 to 7.0.0-next.1585174801.021615c82bed0577a0412a926e5ba6e77f9039fc

29

edition-esnext/bin.js

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 2.4.1
// Generated by CoffeeScript 2.5.1
// Requires

@@ -13,3 +13,28 @@ var CSON, conversion, create, data, filePath, fs, hasData, i, opts, outputHelp, parse, processData, result, stdin, timeout, timeoutFunction;

outputHelp = function() {
return process.stdout.write('CSON CLI\n\nUsage:\n\n # Convert a JSON file into a CSON file\n json2cson in.json > out.cson\n\n # Same thing via piping\n cat in.json | json2cson > out.cson\n\n # Convert a CSON file into a JSON file\n cson2json in.cson > out.json\n\n # Same thing via piping\n cat in.cson | cson2json > out.json\n\nOptions\n\n # Display this help\n --help\n\n # Indentation for CSON output\n --tabs\n --2spaces\n --4spaces\n');
return process.stdout.write(`CSON CLI
Usage:
# Convert a JSON file into a CSON file
json2cson in.json > out.cson
# Same thing via piping
cat in.json | json2cson > out.cson
# Convert a CSON file into a JSON file
cson2json in.cson > out.json
# Same thing via piping
cat in.cson | cson2json > out.json
Options
# Display this help
--help
# Indentation for CSON output
--tabs
--2spaces
--4spaces
`);
};

@@ -16,0 +41,0 @@

14

edition-esnext/index.js

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 2.4.1
// Generated by CoffeeScript 2.5.1
// Imports

@@ -18,3 +18,3 @@ var CSON, extractOptsAndCallback, fsUtil, pathUtil, requireFresh;

// Internal: Ensure Error Type
// Internal: Ensure Error Type
ensureErrorType(err) {

@@ -156,3 +156,3 @@ if (err instanceof Error) {

// Public: {Delegates to: .createString}
// Public: {Delegates to: .createString}
stringify(data, replacer, indent) {

@@ -273,3 +273,3 @@ var opts;

// Public: Converts an {Object} into a JSON {String}
// Public: Converts an {Object} into a JSON {String}

@@ -379,3 +379,3 @@ // data - {Object} The data to convert

// Public: Parses a JSON {String} into an {Object}
// Public: Parses a JSON {String} into an {Object}

@@ -473,3 +473,3 @@ // data - The JSON {String} to parse

// Public: Parses a JSON file into an {Object}
// Public: Parses a JSON file into an {Object}

@@ -561,3 +561,3 @@ // data - {String} The file path to parse

// Public: {Delegates to: .parseJSONFile}
// Public: {Delegates to: .parseJSONFile}
requireJSONFile(file, opts, next) {

@@ -564,0 +564,0 @@ var result;

# History
## v7.0.0 2020 March 26
- Updated dependencies, [base files](https://github.com/bevry/base), and [editions](https://editions.bevry.me) using [boundation](https://github.com/bevry/boundation)
- Minimum required node version changed from `node: >=8` to `node: >=10` to keep up with mandatory ecosystem changes
## v6.9.0 2019 December 18

@@ -4,0 +9,0 @@

{
"title": "CSON",
"name": "cson",
"version": "6.9.0",
"version": "7.0.0-next.1585174801.021615c82bed0577a0412a926e5ba6e77f9039fc",
"description": "CoffeeScript-Object-Notation Parser. Same as JSON but for CoffeeScript objects.",

@@ -9,6 +9,6 @@ "homepage": "https://github.com/bevry/cson",

"keywords": [
"coffeescript",
"cson",
"javascript",
"coffeescript",
"json",
"cson",
"parse",

@@ -66,4 +66,3 @@ "stringify"

"ZHANG Cheng <czhang.oss@gmail.com> (http://about.me/zhangcheng77)",
"Attila Oláh <atl@google.com> (http://attilaolah.eu)",
"dependabot-preview[bot] (http://github.com/apps/dependabot-preview)"
"Attila Oláh <atl@google.com> (http://attilaolah.eu)"
],

@@ -78,7 +77,7 @@ "bugs": {

"engines": {
"node": ">=8"
"node": ">=10"
},
"editions": [
{
"description": "coffeescript source code with require for modules",
"description": "CoffeeScript source code with Require for modules",
"directory": "source",

@@ -93,3 +92,3 @@ "entry": "index.coffee",

{
"description": "coffeescript compiled for Node.js with require for modules",
"description": "CoffeeScript compiled for Node.js with Require for modules",
"directory": "edition-esnext",

@@ -103,3 +102,3 @@ "entry": "index.js",

"engines": {
"node": "8 || 10 || 12 || 13"
"node": "10 || 12"
}

@@ -115,4 +114,4 @@ }

"dependencies": {
"coffeescript": "^2.4.1",
"cson-parser": "^4.0.3",
"coffeescript": "^2.5.1",
"cson-parser": "^4.0.4",
"extract-opts": "^4.3.0",

@@ -123,6 +122,6 @@ "requirefresh": "^3.3.0",

"devDependencies": {
"assert-helpers": "^5.8.0",
"assert-helpers": "^6.0.0",
"coffeelint": "^2.1.0",
"kava": "^4.4.0",
"projectz": "^1.16.0",
"projectz": "^1.19.0",
"safeps": "^9.3.0",

@@ -149,5 +148,5 @@ "valid-directory": "^1.6.0"

"our:verify:coffeelint": "coffeelint ./source",
"our:verify:directory": "npx valid-directory",
"our:verify:directory": "valid-directory",
"test": "node ./edition-esnext/test.js"
}
}

@@ -38,32 +38,5 @@ <!-- TITLE/ -->

<!-- INSTALL/ -->
<h2>Install</h2>
<a href="https://npmjs.com" title="npm is a package manager for javascript"><h3>npm</h3></a>
<h4>Install Globally</h4>
<ul>
<li>Install: <code>npm install --global cson</code></li>
<li>Executables: <code>cson2json</code>, <code>json2cson</code></li>
</ul>
<h4>Install Locally</h4>
<ul>
<li>Install: <code>npm install --save cson</code></li>
<li>Executables: <code>npx cson2json</code>, <code>json2cson</code></li>
<li>Require: <code>require('cson')</code></li>
</ul>
<h3><a href="https://editions.bevry.me" title="Editions are the best way to produce and consume packages you care about.">Editions</a></h3>
<p>This package is published with the following editions:</p>
<ul><li><code>cson/source/index.coffee</code> is coffeescript source code with require for modules</li>
<li><code>cson</code> aliases <code>cson/edition-esnext/index.js</code></li>
<li><code>cson/edition-esnext/index.js</code> is coffeescript compiled for Node.js with require for modules</li></ul>
<p>Environments older than Node.js v8 may need <a href="https://babeljs.io/docs/usage/polyfill/" title="A polyfill that emulates missing ECMAScript environment features">Babel's Polyfill</a> or something similar.</p>
<!-- /INSTALL -->
## What is CSON?

@@ -242,2 +215,31 @@

<!-- INSTALL/ -->
<h2>Install</h2>
<a href="https://npmjs.com" title="npm is a package manager for javascript"><h3>npm</h3></a>
<h4>Install Globally</h4>
<ul>
<li>Install: <code>npm install --global cson</code></li>
<li>Executables: <code>cson2json</code>, <code>json2cson</code></li>
</ul>
<h4>Install Locally</h4>
<ul>
<li>Install: <code>npm install --save cson</code></li>
<li>Executables: <code>npx cson2json</code>, <code>npx json2cson</code></li>
<li>Import: <code>import * as pkg from ('cson')</code></li>
<li>Require: <code>const pkg = require('cson')</code></li>
</ul>
<h3><a href="https://editions.bevry.me" title="Editions are the best way to produce and consume packages you care about.">Editions</a></h3>
<p>This package is published with the following editions:</p>
<ul><li><code>cson/source/index.coffee</code> is <a href="https://coffeescript.org" title="CoffeeScript is a little language that compiles into JavaScript">CoffeeScript</a> source code with <a href="https://nodejs.org/dist/latest-v5.x/docs/api/modules.html" title="Node/CJS Modules">Require</a> for modules</li>
<li><code>cson</code> aliases <code>cson/edition-esnext/index.js</code></li>
<li><code>cson/edition-esnext/index.js</code> is <a href="https://coffeescript.org" title="CoffeeScript is a little language that compiles into JavaScript">CoffeeScript</a> compiled for <a href="https://nodejs.org" title="Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine">Node.js</a> with <a href="https://nodejs.org/dist/latest-v5.x/docs/api/modules.html" title="Node/CJS Modules">Require</a> for modules</li></ul>
<!-- /INSTALL -->
<!-- HISTORY/ -->

@@ -244,0 +246,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc