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

read-data

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

read-data - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

docs/api.md

9

docs/README.tmpl.md

@@ -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() %}

@@ -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": {

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