Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
config-exists
Advanced tools
> If you want to load configurations, pls go to [cosmiconfig](https://github.com/davidtheclark/cosmiconfig)
If you want to load configurations, pls go to cosmiconfig
Check if config file is existed in specific folder:
[name].config.js
(anywhere up the directory tree)For Example:
exists.config.js
.existsrc.js
.existsrc.json
.existsrc.yml
.existsrc.yaml
$ npm i --save config-exists
# or
$ yarn add config-exists
const config = require('config-exists')
const { exists } = config({name: 'exists'})
const stats = exists('__tests__/fixtures')
// stats: false if not exists, or instance of fs.Stats
const config = require('config-exists')
const { existsAsync } = await config({name: 'exists'})
const stats = exists('__tests__/fixtures')
// stats: false if not exists, or instance of fs.Stats
Type: string
Name of config file
Type: bool
Default: true
Flag to search rc
files
1.0.1 (2017-12-19)
<a name="1.0.0"></a>
FAQs
> If you want to load configurations, pls go to [cosmiconfig](https://github.com/davidtheclark/cosmiconfig)
We found that config-exists demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.