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

jeffuscator

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jeffuscator - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

4

cli.js

@@ -18,8 +18,8 @@ #!/usr/bin/env node

if(program.outputPath) {
var output = program.outputPath
var output = path.join(__dirname, program.outputPath)
}
new Jeffuscator(program.inputPath)
new Jeffuscator(path.join(__dirname, program.inputPath))
.processFiles(output)
})
.parse(process.argv)
{
"name": "jeffuscator",
"version": "1.1.0",
"version": "1.2.0",
"description": "Obfuscate JavaScript by renaming all variables and methods to different variations of 'Jeff'.",

@@ -5,0 +5,0 @@ "main": "src/Jeffuscator.js",

@@ -32,3 +32,10 @@ const fs = require('fs-extra')

if(files.length < 2) {
return files[0].substr(files[0].lastIndexOf('/') || 0)
let pattern = /[\/\\]/g
let lastIndex = 0
while(pattern.test(files[0]) === true) {
lastIndex = pattern.lastIndex
}
return files[0].substr(0, lastIndex)
}

@@ -35,0 +42,0 @@ else {

Sorry, the diff of this file is not supported yet

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