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

config_okay

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

config_okay - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

3

config_okay.js

@@ -16,2 +16,5 @@ /*global require module */

}
if(! /\.js(on)?$/.test(f)){
return cb('config_okay requires file to end in .json or .js')
}
fs.stat(f,function(err,stats){

@@ -18,0 +21,0 @@ if(err) return cb(err)

2

package.json
{
"name": "config_okay",
"version": "0.0.1",
"version": "0.0.2",
"description": "Make sure config files are mode 0600 before you use it",

@@ -5,0 +5,0 @@ "main": "config_okay.js",

@@ -65,2 +65,11 @@ /* global require console process it describe after before __dirname */

})
it('should error out on a file ending in .txt'
,function(done){
config_okay('file.txt',function(e,c){
should.exist(e)
should.not.exist(c)
e.should.match(/^config_okay requires file to end in/)
return done()
})
})
it('should parse okay a file in with mode 0600'

@@ -67,0 +76,0 @@ ,function(done){

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