Comparing version 0.1.0 to 0.1.1
@@ -6,7 +6,10 @@ # {%= name %} {%= badge("fury") %} | ||
## Install | ||
{%= include("install") %} | ||
{%= include("install", {save: '--save'}) %} | ||
## Author | ||
* {%= author.name %} | ||
## api | ||
{%= docs("api") %} | ||
## Authors | ||
{%= contrib("authors") %} | ||
## License | ||
@@ -13,0 +16,0 @@ {%= copyright() %} |
11
index.js
@@ -15,3 +15,2 @@ /** | ||
// Read JSON file synchronously and parse content as JSON | ||
@@ -44,4 +43,2 @@ file.readJSONSync = function(filepath) { | ||
// Read YAML file synchronously and parse content as JSON | ||
@@ -77,3 +74,3 @@ file.readYAMLSync = function (filepath) { | ||
options = options || {}; | ||
var ext = options.parse || path.extname(filepath).replace(/\./, ''); | ||
var ext = options.lang || path.extname(filepath).replace(/\./, ''); | ||
var reader = file.readJSONSync; | ||
@@ -99,3 +96,3 @@ switch(ext) { | ||
var ext = options.parse || path.extname(filepath).replace(/\./, ''); | ||
var ext = options.lang || path.extname(filepath).replace(/\./, ''); | ||
var reader = file.readJSON; | ||
@@ -114,5 +111,3 @@ switch (ext) { | ||
// Read optional JSON | ||
// Ben Alman, https://gist.github.com/2876125 | ||
// Read optional JSON (Ben Alman <https://gist.github.com/2876125>) | ||
file.readOptionalJSON = function(filepath) { | ||
@@ -119,0 +114,0 @@ var buffer = {}; |
{ | ||
"name": "read-data", | ||
"description": "Utils for reading JSON and YAML data files.", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"homepage": "https://github.com/jonschlinkert/read-data", | ||
@@ -6,0 +6,0 @@ "author": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12178
15
108
187