Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
A utiltiy for reversing minified JS files, not simply formating whitespaces but also tries to make code much more readable.
A utiltiy for reversing minified JS files, not simply formating whitespaces but also tries to make code much more readable.
$ npm install -g deuglify
$ deuglify source.js > source.demin.js
$ cat source.js | deuglify > source.demin.js
const { deuglify } = require('deuglify')
const sourceCode = 'console.log("hello")'
const { code, ast } = deuglify(sourceCode)
!0
to true
and !1
to falseOriginal source:
!(function (global, factory) {
if (module && typeof module === 'object' && module.exports) {
module.exports = factory();
} else {
global.fibonacci = factory();
}
})(this, function () {
var table = [1, 1];
function fibonacci (n) {
if (!table[n]) {
table[n] = fibonacci(n - 1) + fibonacci(n - 2);
}
return table[n];
}
return fibonacci;
});
Minified:
!function(a,b){module&&"object"==typeof module&&module.exports?module.exports=b():a.fibonacci=b()}(this,function(){function a(c){return b[c]||(b[c]=a(c-1)+a(c-2)),b[c]}var b=[1,1];return a});
Formatted (with chrome):
!function(a, b) {
module && "object" == typeof module && module.exports ? module.exports = b() : a.fibonacci = b()
}(this, function() {
function a(c) {
return b[c] || (b[c] = a(c - 1) + a(c - 2)),
b[c]
}
var b = [1, 1];
return a
});
Deuglified:
!function (a__q, b__w) {
if (module && "object" == typeof module && module.exports) {
module.exports = b__w();
} else {
a__q.fibonacci = b__w();
}
}(this, function () {
function a__e(c__t) {
if (!b__r[c__t]) {
b__r[c__t] = a__e(c__t - 1) + a__e(c__t - 2);
}
return b__r[c__t];
}
var b__r = [1, 1];
return a__e;
});
FAQs
A utiltiy for reversing minified JS files, not simply formating whitespaces but also tries to make code much more readable.
The npm package deuglify receives a total of 0 weekly downloads. As such, deuglify popularity was classified as not popular.
We found that deuglify 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.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.