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

app-etc-load

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

app-etc-load - npm Package Compare versions

Comparing version 0.0.2 to 1.0.1

9

lib/parsers.js

@@ -9,5 +9,7 @@ 'use strict';

parseALCE = require( 'utils-alce-parse' ),
parseCJSON = require( 'utils-cjson-parse' ),
parseHJSON = require( 'utils-hjson-parse' ),
parseJSON5 = require( 'utils-json5-parse' ),
noop = function noop() {};
parseProperties = require( 'utils-properties-parse' ),
parseINI = require( 'utils-ini-parse' );

@@ -19,3 +21,3 @@

'.json': parseJSON,
'.cjson': noop,
'.cjson': parseCJSON,
'.hjson': parseHJSON,

@@ -27,3 +29,4 @@ '.json5': parseJSON5,

'.yaml': parseYAML,
'.ini': noop
'.properties': parseProperties,
'.ini': parseINI
};

@@ -30,0 +33,0 @@

{
"name": "app-etc-load",
"version": "0.0.2",
"version": "1.0.1",
"description": "Loads a configuration file.",

@@ -43,3 +43,5 @@ "author": {

"alce",
"hjson"
"hjson",
"json5",
"properties"
],

@@ -51,7 +53,10 @@ "bugs": {

"utils-alce-parse": "^1.0.0",
"utils-cjson-parse": "^1.0.0",
"utils-cwd": "^2.0.0",
"utils-extname": "^1.0.0",
"utils-hjson-parse": "^1.0.0",
"utils-ini-parse": "^1.0.0",
"utils-json-parse": "^1.0.0",
"utils-json5-parse": "^1.0.0",
"utils-properties-parse": "^1.0.0",
"utils-toml-parse": "^1.0.0",

@@ -58,0 +63,0 @@ "utils-yaml-parse": "^1.0.0",

@@ -42,6 +42,9 @@ Load

* [JSON](https://github.com/kgryte/utils-json-parse): `*.json`
* [CJSON](https://github.com/kgryte/utils-cjson-parse): `*.cjson`
* [HJSON](https://github.com//kgryte/utils-hjson-parse): `*.hjson`
* [JSON5](https://github.com/kgryte/utils-json5-parse): `*.json5`
* [ALCE](https://github.com/kgryte/utils-alce-parse): `*.alce`
* `*.js`
* [INI](https://github.com/kgryte/utils-ini-parse): `*.ini`
* [.properties](https://github.com/kgryte/utils-properties-parse): `*.properties`
* js: `*.js`

@@ -48,0 +51,0 @@ By default, the method infers the file format from the filename extension. To explicitly specify the file format, provide a `fmt` argument.

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