Comparing version 4.0.0 to 4.1.0
@@ -1,3 +0,3 @@ | ||
// Generated by CoffeeScript 1.11.1 | ||
var CSON, conversion, data, filePath, fs, hasData, i, opts, outputHelp, processData, stdin, timeout, timeoutFunction; | ||
// Generated by CoffeeScript 1.12.4 | ||
var CSON, conversion, create, data, filePath, fs, hasData, i, opts, outputHelp, parse, processData, result, stdin, timeout, timeoutFunction; | ||
@@ -34,3 +34,18 @@ fs = require('fs'); | ||
filePath = process.argv[2]; | ||
process.stdout.write(conversion === 'cson2json' ? CSON.createJSONString(CSON.parseCSONFile(filePath), opts) : CSON.createCSONString(CSON.parseJSONFile(filePath), opts)); | ||
if (conversion === 'cson2json') { | ||
parse = CSON.parseCSONFile.bind(CSON); | ||
create = CSON.createJSONString.bind(CSON); | ||
} else { | ||
parse = CSON.parseJSONFile.bind(CSON); | ||
create = CSON.createCSONString.bind(CSON); | ||
} | ||
result = parse(filePath); | ||
if (result instanceof Error) { | ||
throw result; | ||
} | ||
result = create(result, opts); | ||
if (result instanceof Error) { | ||
throw result; | ||
} | ||
process.stdout.write(result); | ||
} else if (process.argv.length === 2) { | ||
@@ -42,8 +57,17 @@ data = ''; | ||
processData = function() { | ||
var result; | ||
if (conversion === 'cson2json') { | ||
result = CSON.createJSONString(CSON.parseCSONString(data), opts); | ||
parse = CSON.parseCSONString.bind(CSON); | ||
create = CSON.createJSONString.bind(CSON); | ||
} else { | ||
result = CSON.createCSONString(CSON.parseJSONString(data), opts); | ||
parse = CSON.parseJSONString.bind(CSON); | ||
create = CSON.createCSONString.bind(CSON); | ||
} | ||
result = parse(data); | ||
if (result instanceof Error) { | ||
throw result; | ||
} | ||
result = create(result, opts); | ||
if (result instanceof Error) { | ||
throw result; | ||
} | ||
return process.stdout.write(result); | ||
@@ -50,0 +74,0 @@ }; |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.11.1 | ||
// Generated by CoffeeScript 1.12.4 | ||
var CSON, extractOptsAndCallback, fsUtil, pathUtil, requireFresh; | ||
@@ -3,0 +3,0 @@ |
# History | ||
## v4.1.0 2017 April 10 | ||
- Updated base files | ||
- `cson2json` and `json2cson` will now output the error if the input file is invalid | ||
- Closes [issue #78](https://github.com/bevry/cson/issues/78) | ||
## v4.0.0 2016 October 20 | ||
@@ -4,0 +9,0 @@ - `parseCSString` no longer creates the `sandbox` variable if it was missing, the responsibility of such things should be, and now is, handled via the eval function of coffeescript which is what that method uses |
{ | ||
"title": "CSON", | ||
"name": "cson", | ||
"version": "4.0.0", | ||
"version": "4.1.0", | ||
"description": "CoffeeScript-Object-Notation Parser. Same as JSON but for CoffeeScript objects.", | ||
@@ -24,4 +24,4 @@ "homepage": "https://github.com/bevry/cson", | ||
"---", | ||
"slackin", | ||
"patreon", | ||
"opencollective", | ||
"gratipay", | ||
@@ -31,6 +31,9 @@ "flattr", | ||
"bitcoin", | ||
"wishlist" | ||
"wishlist", | ||
"---", | ||
"slackin" | ||
], | ||
"config": { | ||
"patreonUsername": "bevry", | ||
"opencollectiveUsername": "bevry", | ||
"gratipayUsername": "bevry", | ||
@@ -52,3 +55,3 @@ "flattrUsername": "balupton", | ||
"evinugur (https://github.com/evinugur)", | ||
"Jason Karns <jason@karns.name> (http://jasonkarns.com)", | ||
"Jason Karns <jason.karns@gmail.com> (http://jasonkarns.com)", | ||
"Joël Perras <joel@nerderati.com> (http://nerderati.com)", | ||
@@ -68,3 +71,3 @@ "Linus Gustav Larsson Thiel <linus@hanssonlarsson.se> (http://yesbabyyes.se/)", | ||
"type": "git", | ||
"url": "http://github.com/bevry/cson.git" | ||
"url": "https://github.com/bevry/cson.git" | ||
}, | ||
@@ -74,3 +77,23 @@ "engines": { | ||
}, | ||
"main": "es5/index.js", | ||
"editions": [ | ||
{ | ||
"description": "Source + CoffeeScript + Require", | ||
"directory": "source", | ||
"entry": "index.js", | ||
"syntaxes": [ | ||
"coffeescript", | ||
"require" | ||
] | ||
}, | ||
{ | ||
"description": "CoffeeScript Compiled + ES5 + Require", | ||
"directory": "es5", | ||
"entry": "index.js", | ||
"syntaxes": [ | ||
"javascript", | ||
"es5", | ||
"require" | ||
] | ||
} | ||
], | ||
"bin": { | ||
@@ -80,19 +103,5 @@ "cson2json": "bin/cson2json", | ||
}, | ||
"scripts": { | ||
"setup": "npm install", | ||
"clean": "rm -Rf ./docs ./es5", | ||
"compile": "npm run compile:coffeescript", | ||
"compile:coffeescript": "coffee -bco ./es5 ./src", | ||
"meta": "npm run meta:projectz", | ||
"meta:projectz": "projectz compile", | ||
"prepare": "npm run compile && npm run test && npm run meta", | ||
"release": "npm run prepare && npm run release:publish && npm run release:tag && npm run release:push", | ||
"release:publish": "npm publish", | ||
"release:tag": "git tag v$npm_package_version -a", | ||
"release:push": "git push origin master && git push origin --tags", | ||
"pretest": "npm run test:coffeelint", | ||
"test:coffeelint": "coffeelint ./src" | ||
}, | ||
"main": "es5/index.js", | ||
"dependencies": { | ||
"coffee-script": "^1.11.1", | ||
"coffee-script": "^1.12.4", | ||
"cson-parser": "^1.3.4", | ||
@@ -104,10 +113,32 @@ "extract-opts": "^3.3.1", | ||
"devDependencies": { | ||
"assert-helpers": "^4.4.0", | ||
"biscotto": "^2.3.1", | ||
"assert-helpers": "^4.5.0", | ||
"biscotto": "emmenko/biscotto#v2.4.0", | ||
"coffeelint": "^1.16.0", | ||
"joe": "^1.8.0", | ||
"joe-reporter-console": "^1.2.1", | ||
"projectz": "^1.3.0", | ||
"safeps": "^6.3.0" | ||
"joe": "^2.0.2", | ||
"joe-reporter-console": "^2.0.1", | ||
"projectz": "^1.4.0", | ||
"safeps": "^6.3.0", | ||
"surge": "^0.19.0" | ||
}, | ||
"scripts": { | ||
"our:setup": "npm run our:setup:npm", | ||
"our:setup:npm": "npm install", | ||
"our:clean": "rm -Rf ./docs ./es2015 ./es5 ./out", | ||
"our:compile": "npm run our:compile:coffee", | ||
"our:compile:coffee": "coffee -bco ./es5 ./source", | ||
"our:meta": "npm run our:meta:projectz && npm run our:meta:biscotto", | ||
"our:meta:projectz": "projectz compile", | ||
"our:meta:biscotto": "biscotto -n \"$npm_package_title\" --title \"$npm_package_title API Documentation\" --readme README.md --output-dir docs source - LICENSE.md HISTORY.md", | ||
"our:verify": "npm run our:verify:coffeelint", | ||
"our:verify:coffeelint": "coffeelint ./source", | ||
"our:test": "npm run our:verify && npm test", | ||
"our:release": "npm run our:release:prepare && npm run our:release:check && npm run our:release:tag && npm run our:release:push", | ||
"our:release:prepare": "npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta", | ||
"our:release:check": "npm run our:release:check:changelog && npm run our:release:check:dirty", | ||
"our:release:check:changelog": "cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)", | ||
"our:release:check:dirty": "git diff --exit-code", | ||
"our:release:tag": "export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"", | ||
"our:release:push": "git push origin master && git push origin --tags", | ||
"test": "node --harmony es5/test.js --joe-reporter=console" | ||
} | ||
} |
@@ -16,4 +16,4 @@ <!-- TITLE/ --> | ||
<br class="badge-separator" /> | ||
<span class="badge-slackin"><a href="https://slack.bevry.me" title="Join this project's slack community"><img src="https://slack.bevry.me/badge.svg" alt="Slack community badge" /></a></span> | ||
<span class="badge-patreon"><a href="http://patreon.com/bevry" title="Donate to this project using Patreon"><img src="https://img.shields.io/badge/patreon-donate-yellow.svg" alt="Patreon donate button" /></a></span> | ||
<span class="badge-patreon"><a href="https://patreon.com/bevry" title="Donate to this project using Patreon"><img src="https://img.shields.io/badge/patreon-donate-yellow.svg" alt="Patreon donate button" /></a></span> | ||
<span class="badge-opencollective"><a href="https://opencollective.com/bevry" title="Donate to this project using Open Collective"><img src="https://img.shields.io/badge/open%20collective-donate-yellow.svg" alt="Open Collective donate button" /></a></span> | ||
<span class="badge-gratipay"><a href="https://www.gratipay.com/bevry" title="Donate weekly to this project using Gratipay"><img src="https://img.shields.io/badge/gratipay-donate-yellow.svg" alt="Gratipay donate button" /></a></span> | ||
@@ -24,2 +24,4 @@ <span class="badge-flattr"><a href="https://flattr.com/profile/balupton" title="Donate to this project using Flattr"><img src="https://img.shields.io/badge/flattr-donate-yellow.svg" alt="Flattr donate button" /></a></span> | ||
<span class="badge-wishlist"><a href="https://bevry.me/wishlist" title="Buy an item on our wishlist for us"><img src="https://img.shields.io/badge/wishlist-donate-yellow.svg" alt="Wishlist browse button" /></a></span> | ||
<br class="badge-separator" /> | ||
<span class="badge-slackin"><a href="https://slack.bevry.me" title="Join this project's slack community"><img src="https://slack.bevry.me/badge.svg" alt="Slack community badge" /></a></span> | ||
@@ -35,3 +37,5 @@ <!-- /BADGES --> | ||
Since v2, this CSON package is a higher-level wrapper around the lower-level [CSON Parser](https://www.npmjs.com/package/cson-parser). | ||
<!-- INSTALL/ --> | ||
@@ -46,2 +50,10 @@ | ||
<h3><a href="https://github.com/bevry/editions" 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.js</code> is Source + CoffeeScript + <a href="https://nodejs.org/dist/latest-v5.x/docs/api/modules.html" title="Node/CJS Modules">Require</a></li> | ||
<li><code>cson</code> aliases <code>cson/es5/index.js</code></li> | ||
<li><code>cson/es5/index.js</code> is CoffeeScript Compiled + ES5 + <a href="https://nodejs.org/dist/latest-v5.x/docs/api/modules.html" title="Node/CJS Modules">Require</a></li></ul> | ||
<!-- /INSTALL --> | ||
@@ -175,17 +187,9 @@ | ||
- <a href='http://rawgit.com/bevry/cson/master/docs/classes/CSON.html#stringify-instance'> | ||
String <strong>CSON.stringify</strong>(data, replacer?, indent?) | ||
</a> <br/> Converts an <a href='https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object'>Object</a> into a CSON <a href='https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String'>String</a> | ||
- <a href='http://master.cson.bevry.surge.sh/docs/classes/CSON.html#stringify-instance'>String <strong>CSON.stringify</strong>(data, replacer?, indent?)</a> <br/> Converts an <a href='https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object'>Object</a> into a CSON <a href='https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String'>String</a> | ||
- <a href='http://rawgit.com/bevry/cson/master/docs/classes/CSON.html#createCSONString-instance'> | ||
String <strong>CSON.createCSONString</strong>(data, opts?, next?) | ||
</a> <br/> Converts an <a href='https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object'>Object</a> into a CSON <a href='https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String'>String</a> | ||
- <a href='http://master.cson.bevry.surge.sh/docs/classes/CSON.html#createCSONString-instance'>String <strong>CSON.createCSONString</strong>(data, opts?, next?)</a> <br/> Converts an <a href='https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object'>Object</a> into a CSON <a href='https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String'>String</a> | ||
- <a href='http://rawgit.com/bevry/cson/master/docs/classes/CSON.html#createJSONString-instance'> | ||
String <strong>CSON.createJSONString</strong>(data, opts?, next?) | ||
</a> <br/> Converts an <a href='https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object'>Object</a> into a JSON <a href='https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String'>String</a> | ||
- <a href='http://master.cson.bevry.surge.sh/docs/classes/CSON.html#createJSONString-instance'>String <strong>CSON.createJSONString</strong>(data, opts?, next?)</a> <br/> Converts an <a href='https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object'>Object</a> into a JSON <a href='https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String'>String</a> | ||
- <a href='http://rawgit.com/bevry/cson/master/docs/classes/CSON.html#createString-instance'> | ||
String <strong>CSON.createString</strong>(data, opts?, next?) | ||
</a> <br/> Converts an <a href='https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object'>Object</a> into a <a href='https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String'>String</a> of the desired format If the format option is not specified, we default to CSON | ||
- <a href='http://master.cson.bevry.surge.sh/docs/classes/CSON.html#createString-instance'>String <strong>CSON.createString</strong>(data, opts?, next?)</a> <br/> Converts an <a href='https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object'>Object</a> into a <a href='https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String'>String</a> of the desired format If the format option is not specified, we default to CSON | ||
@@ -195,25 +199,13 @@ | ||
- <a href='http://rawgit.com/bevry/cson/master/docs/classes/CSON.html#parse-instance'> | ||
Object <strong>CSON.parse</strong>(data, opts?, next?) | ||
</a> <br/> Parses a CSON <a href='https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String'>String</a> into an <a href='https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object'>Object</a> | ||
- <a href='http://master.cson.bevry.surge.sh/docs/classes/CSON.html#parse-instance'>Object <strong>CSON.parse</strong>(data, opts?, next?)</a> <br/> Parses a CSON <a href='https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String'>String</a> into an <a href='https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object'>Object</a> | ||
- <a href='http://rawgit.com/bevry/cson/master/docs/classes/CSON.html#parseCSONString-instance'> | ||
Object <strong>CSON.parseCSONString</strong>(data, opts?, next?) | ||
</a> <br/> Parses a CSON <a href='https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String'>String</a> into an <a href='https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object'>Object</a> | ||
- <a href='http://master.cson.bevry.surge.sh/docs/classes/CSON.html#parseCSONString-instance'>Object <strong>CSON.parseCSONString</strong>(data, opts?, next?)</a> <br/> Parses a CSON <a href='https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String'>String</a> into an <a href='https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object'>Object</a> | ||
- <a href='http://rawgit.com/bevry/cson/master/docs/classes/CSON.html#parseJSONString-instance'> | ||
Object <strong>CSON.parseJSONString</strong>(data, opts?, next?) | ||
</a> <br/> Parses a JSON <a href='https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String'>String</a> into an <a href='https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object'>Object</a> | ||
- <a href='http://master.cson.bevry.surge.sh/docs/classes/CSON.html#parseJSONString-instance'>Object <strong>CSON.parseJSONString</strong>(data, opts?, next?)</a> <br/> Parses a JSON <a href='https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String'>String</a> into an <a href='https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object'>Object</a> | ||
- <a href='http://rawgit.com/bevry/cson/master/docs/classes/CSON.html#parseCSString-instance'> | ||
Object <strong>CSON.parseCSString</strong>(data, opts?, next?) | ||
</a> <br/> Parses a CoffeeScript <a href='https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String'>String</a> into an <a href='https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object'>Object</a> | ||
- <a href='http://master.cson.bevry.surge.sh/docs/classes/CSON.html#parseCSString-instance'>Object <strong>CSON.parseCSString</strong>(data, opts?, next?)</a> <br/> Parses a CoffeeScript <a href='https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String'>String</a> into an <a href='https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object'>Object</a> | ||
- <a href='http://rawgit.com/bevry/cson/master/docs/classes/CSON.html#parseJSString-instance'> | ||
Object <strong>CSON.parseJSString</strong>(data, opts?, next?) | ||
</a> <br/> Parses a JavaScript <a href='https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String'>String</a> into an <a href='https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object'>Object</a> | ||
- <a href='http://master.cson.bevry.surge.sh/docs/classes/CSON.html#parseJSString-instance'>Object <strong>CSON.parseJSString</strong>(data, opts?, next?)</a> <br/> Parses a JavaScript <a href='https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String'>String</a> into an <a href='https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object'>Object</a> | ||
- <a href='http://rawgit.com/bevry/cson/master/docs/classes/CSON.html#parseString-instance'> | ||
Object <strong>CSON.parseString</strong>(data, opts?, next?) | ||
</a> <br/> Converts a <a href='https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String'>String</a> of the desired format into an <a href='https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object'>Object</a> If the format option is not specified, we default to CSON | ||
- <a href='http://master.cson.bevry.surge.sh/docs/classes/CSON.html#parseString-instance'>Object <strong>CSON.parseString</strong>(data, opts?, next?)</a> <br/> Converts a <a href='https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String'>String</a> of the desired format into an <a href='https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object'>Object</a> If the format option is not specified, we default to CSON | ||
@@ -223,25 +215,13 @@ | ||
- <a href='http://rawgit.com/bevry/cson/master/docs/classes/CSON.html#load-instance'> | ||
Object <strong>CSON.load</strong>(filePath, opts?, next?) | ||
</a> <br/> Parses a CSON file into an <a href='https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object'>Object</a> | ||
- <a href='http://master.cson.bevry.surge.sh/docs/classes/CSON.html#load-instance'>Object <strong>CSON.load</strong>(filePath, opts?, next?)</a> <br/> Parses a CSON file into an <a href='https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object'>Object</a> | ||
- <a href='http://rawgit.com/bevry/cson/master/docs/classes/CSON.html#parseCSONFile-instance'> | ||
Object <strong>CSON.parseCSONFile</strong>(filePath, opts?, next?) | ||
</a> <br/> Parses a CSON file into an <a href='https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object'>Object</a> | ||
- <a href='http://master.cson.bevry.surge.sh/docs/classes/CSON.html#parseCSONFile-instance'>Object <strong>CSON.parseCSONFile</strong>(filePath, opts?, next?)</a> <br/> Parses a CSON file into an <a href='https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object'>Object</a> | ||
- <a href='http://rawgit.com/bevry/cson/master/docs/classes/CSON.html#parseJSONFile-instance'> | ||
Object <strong>CSON.parseJSONFile</strong>(filePath, opts?, next?) | ||
</a> <br/> Parses a JSON file into an <a href='https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object'>Object</a> | ||
- <a href='http://master.cson.bevry.surge.sh/docs/classes/CSON.html#parseJSONFile-instance'>Object <strong>CSON.parseJSONFile</strong>(filePath, opts?, next?)</a> <br/> Parses a JSON file into an <a href='https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object'>Object</a> | ||
- <a href='http://rawgit.com/bevry/cson/master/docs/classes/CSON.html#parseCSFile-instance'> | ||
Object <strong>CSON.parseCSFile</strong>(filePath, opts?, next?) | ||
</a> <br/> Parses a CoffeeScript file into an <a href='https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object'>Object</a> | ||
- <a href='http://master.cson.bevry.surge.sh/docs/classes/CSON.html#parseCSFile-instance'>Object <strong>CSON.parseCSFile</strong>(filePath, opts?, next?)</a> <br/> Parses a CoffeeScript file into an <a href='https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object'>Object</a> | ||
- <a href='http://rawgit.com/bevry/cson/master/docs/classes/CSON.html#parseJSFile-instance'> | ||
Object <strong>CSON.parseJSFile</strong>(filePath, opts?, next?) | ||
</a> <br/> Parses a JavaScript file into an <a href='https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object'>Object</a> | ||
- <a href='http://master.cson.bevry.surge.sh/docs/classes/CSON.html#parseJSFile-instance'>Object <strong>CSON.parseJSFile</strong>(filePath, opts?, next?)</a> <br/> Parses a JavaScript file into an <a href='https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object'>Object</a> | ||
- <a href='http://rawgit.com/bevry/cson/master/docs/classes/CSON.html#parseFile-instance'> | ||
Object <strong>CSON.parseFile</strong>(filePath, opts?, next?) | ||
</a> <br/> Parses a file path of the desired format into an <a href='https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object'>Object</a> If the format option is not specified, we use the filename to detect what it should be, otherwise we default to CSON | ||
- <a href='http://master.cson.bevry.surge.sh/docs/classes/CSON.html#parseFile-instance'>Object <strong>CSON.parseFile</strong>(filePath, opts?, next?)</a> <br/> Parses a file path of the desired format into an <a href='https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object'>Object</a> If the format option is not specified, we use the filename to detect what it should be, otherwise we default to CSON | ||
@@ -251,13 +231,7 @@ | ||
- <a href='http://rawgit.com/bevry/cson/master/docs/classes/CSON.html#requireCSFile-instance'> | ||
Object <strong>CSON.requireCSFile</strong>(filePath, opts?, next?) | ||
</a> <br/> Requires a CoffeeScript file and returns the result <a href='https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object'>Object</a> | ||
- <a href='http://master.cson.bevry.surge.sh/docs/classes/CSON.html#requireCSFile-instance'>Object <strong>CSON.requireCSFile</strong>(filePath, opts?, next?)</a> <br/> Requires a CoffeeScript file and returns the result <a href='https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object'>Object</a> | ||
- <a href='http://rawgit.com/bevry/cson/master/docs/classes/CSON.html#requireJSFile-instance'> | ||
Object <strong>CSON.requireJSFile</strong>(filePath, opts?, next?) | ||
</a> <br/> Requires a JavaScript file and returns the result <a href='https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object'>Object</a> | ||
- <a href='http://master.cson.bevry.surge.sh/docs/classes/CSON.html#requireJSFile-instance'>Object <strong>CSON.requireJSFile</strong>(filePath, opts?, next?)</a> <br/> Requires a JavaScript file and returns the result <a href='https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object'>Object</a> | ||
- <a href='http://rawgit.com/bevry/cson/master/docs/classes/CSON.html#requireFile-instance'> | ||
Object <strong>CSON.requireFile</strong>(filePath, opts?, next?) | ||
</a> <br/> Requires or parses a file path of the desired format into an <a href='https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object'>Object</a> If the format option is not specified, we use the filename to detect what it should be, otherwise we default to parsing CSON | ||
- <a href='http://master.cson.bevry.surge.sh/docs/classes/CSON.html#requireFile-instance'>Object <strong>CSON.requireFile</strong>(filePath, opts?, next?)</a> <br/> Requires or parses a file path of the desired format into an <a href='https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object'>Object</a> If the format option is not specified, we use the filename to detect what it should be, otherwise we default to parsing CSON | ||
@@ -297,3 +271,4 @@ | ||
<span class="badge-patreon"><a href="http://patreon.com/bevry" title="Donate to this project using Patreon"><img src="https://img.shields.io/badge/patreon-donate-yellow.svg" alt="Patreon donate button" /></a></span> | ||
<span class="badge-patreon"><a href="https://patreon.com/bevry" title="Donate to this project using Patreon"><img src="https://img.shields.io/badge/patreon-donate-yellow.svg" alt="Patreon donate button" /></a></span> | ||
<span class="badge-opencollective"><a href="https://opencollective.com/bevry" title="Donate to this project using Open Collective"><img src="https://img.shields.io/badge/open%20collective-donate-yellow.svg" alt="Open Collective donate button" /></a></span> | ||
<span class="badge-gratipay"><a href="https://www.gratipay.com/bevry" title="Donate weekly to this project using Gratipay"><img src="https://img.shields.io/badge/gratipay-donate-yellow.svg" alt="Gratipay donate button" /></a></span> | ||
@@ -300,0 +275,0 @@ <span class="badge-flattr"><a href="https://flattr.com/profile/balupton" title="Donate to this project using Flattr"><img src="https://img.shields.io/badge/flattr-donate-yellow.svg" alt="Flattr donate button" /></a></span> |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
68191
458
8
307
Updatedcoffee-script@^1.12.4