Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

212
Visualizações
How to identify minified code in javascript?

I read a post stating how does Javascript gets compiled to machine code

Why does JavaScript get compiled to machine code?

My problem is I have multiple javascript files ending with .js and how can I differentiate machine code also with .js ending and normal .js source code ?

For example, machine code in javascript file ending with .js would look like this

 Copyright FusionCharts Technologies LLP
 License Information at <http://www.fusioncharts.com/license>
 @version 3.12.0
*/
(function(sb,Nb){"object"===typeof module&&module.exports?module.exports=sb.document?Nb(sb):function(N){if(!N.document)throw Error("Window with document not present");return Nb(N,!0)}:sb.FusionCharts=Nb(sb,!0)})("undefined"!==typeof window?window:this,function(sb,Nb){"undefined"===typeof sb&&"object"===typeof window&&(sb=window);var N=function(b){if(b.FusionCharts&&b.FusionCharts.version)return b.FusionCharts;var z=b.document,G=b.navigator,v={window:b},F=v.modules={},E=v.interpreters={},t=Object.prototype.toString,
a=/msie/i.test(G.userAgent)&&!b.opera,Q=/loaded|complete/,r=!1,P=function(){var a=v.ready;v.ready=!0;v.raiseEvent&&(v.readyNotified=!0,v.raiseEvent("ready",{version:v.core.version,now:!a},v.core));v.readyNow=!a},T=function(a,b){var B,m;if(b instanceof Array)for(B=0;B<b.length;B+=1)"object"!==typeof b[B]?a[B]=b[B]:("object"!==typeof a[B]&&(a[B]=b[B]instanceof Array?[]:{}),T(a[B],b[B]));else for(B in b)"object"===typeof b[B]?(m=t.call(b[B]),"[object Object]"===m?("object"!==typeof a[B]&&(a[B]={}),T(a[B],
b[B])):"[object Array]"===m?(a[B]instanceof Array||(a[B]=[]),T(a[B],b[B])):a[B]=b[B]):a[B]=b[B];

How can I write a script to differentiate it from normal .js source code?

Any suggestion is appreciated.

EDIT -

Thank you for your response that this is minified code. I have a list of web apps produced by non-expert programmers. I am trying to programmatically identify the minified code located in the web applications' code bases. My goal is to run some analytics on the code. E.g. how similar the web apps are

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda