Socket
Socket
Sign inDemoInstall

joycon

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

joycon - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

lib/index.js

24

package.json
{
"name": "joycon",
"version": "0.2.0",
"version": "0.3.0",
"description": "Load config with ease.",

@@ -9,9 +9,11 @@ "repository": {

},
"main": "index.js",
"main": "lib/index.js",
"files": [
"index.js"
"lib"
],
"scripts": {
"test": "npm run lint && jest",
"lint": "xo"
"lint": "xo",
"build": "babel src -d lib",
"prepublishOnly": "npm run build"
},

@@ -24,6 +26,13 @@ "author": "egoist <0x142857@gmail.com>",

"devDependencies": {
"@babel/cli": "^7.0.0-beta.44",
"@babel/core": "^7.0.0-beta.44",
"@babel/preset-env": "^7.0.0-beta.44",
"@types/json5": "^0.0.29",
"@types/node": "^9.6.5",
"babel-core": "^7.0.0-bridge.0",
"babel-jest": "^22.4.3",
"babel-plugin-add-module-exports": "^0.2.1",
"babel-plugin-sync": "^0.1.0",
"eslint-config-rem": "^3.0.0",
"jest-cli": "^19.0.0",
"jest-cli": "^22.4.3",
"xo": "^0.18.0"

@@ -35,6 +44,9 @@ },

"jest"
],
"ignores": [
"lib/**"
]
},
"engines": {
"node": ">=7.6.0"
"node": ">=6"
},

@@ -41,0 +53,0 @@ "dependencies": {

@@ -6,2 +6,6 @@

## Differences with [cosmiconfig](https://github.com/davidtheclark/cosmiconfig)?
JoyCon is much more lightweight while being feature-complete.
## Install

@@ -68,2 +72,4 @@

There's also `.resolveSync` method.
### load(...args)

@@ -75,2 +81,4 @@

There's also `.loadSync` method.
### addLoader(Loader)

@@ -81,6 +89,9 @@

test: RegExp
load(filepath: string): any
load(filepath: string)?: Promise<any>
loadSync(filepath: string)?: any
}
```
At least one of `load` and `loadSync` is required, depending on where you're calling the synchonous methods or not.
### clearCache()

@@ -87,0 +98,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