How can I debug a minified JS in firebug?

I have a web page which includes insane amount of minified JS files. The web page works perfectly fine on my local network but throws some JS error on staging. There is an issue in JS and I wan't...

How to encrypt HTML+JS assets in Android Phonegap mobile app?

I have mobile app created using Phonegap basic wrapper and HTML5. My goal is to encrypt files in assets directory (JS and HTML files) so they are unreadable to people, who unzip the APK file and...

How can I use JSBeautify from the command line?

I like jsbeautifier.org and I see they have a github repo with their code. The readme has two examples of how to use this tool via the command line: import jsbeautifier res =...

Renaming variables in JavaScript

I've been stuck with the unpleasant task of "unminifying" a minified JavaScript code file. Using JSBeautifier, the resulting file is about 6000 lines long. Ordinarily, the variable and parameter...

using Rhino, I've got a "ReferenceError" exception

I've got an error using Rhino(17R4). My Goal is indent a javascript source code using jsbeautifier.js. here's my code: import java.io.InputStream; import org.mozilla.javascript.Context; import...

Replace array-mapped variables with the actual variable name/string?

I am trying to edit a Greasemonkey/jQuery script. I can't post the link here. The code is obfuscated and compressed with minify. It starts like this: var _0x21e9 =...

Grunt file executing error Task Serve not found

Grunt file is not executing by commmand grunt serve. Here is my grunt file. (function (module) { 'use strict'; module.exports = function (grunt) { // These variable would be passed in...

Error using jsbeautifier in python with unicode text

I use the following code to beautify a js file (with jsbeautifier module) using python (3.4) import jsbeautifier def write_file(output, fn): file = open(fn, "w") file.write(output) ...

gulp-jsbeautifier can't beautify SCSS correctly

I'm using the Gulp plugin gulp-jsbeautifier to automatically format a project's source-code after a file's content changes. The plugin is able to format the JavaScript source-code perfectly the...

Py2exe enchant error

Hi i compiled my python script that includes enchant and when i try to execute my program i get the following error ImportError: The 'enchant' C library was not found. Please install it via your...

Issue when using gulp to run protractor and selenium

I am new to protractor and also new to gulp task.I had gulp file which looks like this: 'use strict'; var global = { app_files: { spec: './e2e/**/*_spec.js' }, folders: { ...

npm install error code 128

I am receiving the following error when trying to run npm install after a fresh install of Node and Git Anyone have any idea what could be causing it, and what to do to fix it? package.json...

grunt serve hangs on live:reload task

I am working on a webapp built by someone else...the commands to build and run are npm install bower install grunt serve I have used npm and bower with no problems before..everything seems to...

how to configure jsbeautifier settings to actually beautify my HTML/Javascript code

I have seen several questions about how to format HTML and javascript code. A common answer seems to be that jsbeautify (and GitHub page for jsbeautify.js) is a good solution. However, I can't...

Grunt, CSSComb and watch runing against all files, not just new

I have csscomb running fine, and it triggers with watch, but is there a way to only have csscomb run against the scss file i'm working on, rather than all of them within my project? Here's my...

Error: Cannot find module 'wrench', I'm getting this error, when i run gulp command

I have installed npm ,bower and gulp in both local and globally.Still i'm getting this error when i run gulp in that folder. Error: Cannot find module 'wrench' at...

Got java.nio.file.InvalidPathException:Illegal char <:> at index 7 when formatting javascript file using closure compiler

I am using google closure compiler to format a number of javascript files in my web project. Thus I am writting a Java application to traverse all the js files under root directory. For testing...

How to prettify javascript source code

I have this code, and want to make it easier to read. class Cell { constructor(_0x38c3bd, _0x1e05bc, _0x40273c, _0x44d2a4, _0x2f0227, _0x595ff5, _0x1467f8) { this['x'] =...

How to inline ignore format in Visual Code?

Which formatter does Visual Code use? I read somewhere it uses jsbeautifier so I tried adding a compatible ignore comment to my .ejs template, but it doesn't work.

npm install throwing error in node-sass installation

I am trying to do an npm install command, But getting below error while installing the node-sass. package.json : { "name": "XXXXX", "version": "1.0.0", "description": "", "main":...

Angular not able to import library

I'm installing js-beautify from https://www.npmjs.com/package/js-beautify via npm install js-beautify --save Then adding import to my app.component.ts documentations says to import...

Binding keys using org.eclipse.ui.binding

I am trying to introduce a shortcut key(Ctrl+Shift+f) to our customized editor to format the content. I've implememented the following changes. Added changes to plugin xml by adding key...

get-pip.py error UnboundLocalError: local variable 'result' referenced before assignment

What is wrong here? I am trying to install openstack-ansible and this is look like pip related issue, all i found this in google and not sure its related to my issue or not...

Can the Deep security API (through the new DSaaS SDK) be used to send the "upgrade Agent" instruction to a computer?

I'm Using the Python SDK. I would like to use the DeepSecurity API to send to a computer the instruction to upgrade an agent. The same that you would do on the console by "right-click computer ->...

How can I run the grunt file in watch mode and also enable live reloading?

require( 'time-grunt' )( grunt ); require( 'load-grunt-tasks' )( grunt...

Local Npm module "jshint-stylish" not found. Is it installed?

Hi I am building docker image from node js project. docker files contents are like below fetch code from git repo. install npm install grunt cli grunt build please see below docker file FROM ...

bash: http-server: command not found

I am trying to run AngularJS project. I am unable to start the http server. I have tried multiple solution posted in the past. When perform npm list --depth=0 got following error on my project...

Heroku worker suddenly crashes, logs don't show any of my scripts. What happened?

I have a flask, gunicorn, postgresql project hosted on heroku and it suddenly failed. I can access the logs, but there is no script that I wrote, so I am confused. I haven't added anything between...

Compare Two Different JSON In Python Using Difflib, Showing Only The Differences

I am trying to compare 2 different pieces of (Javascript/JSON) code using difflib module in Python 3.8, {"message": "Hello world", "name": "Jack"} and {"message": "Hello world", "name":...

Web Scraping Specific Data from OpenWeather (One Call) API into CSV file

So, as above I have a problem on scraping from the openweather api. I have done some practice with scraping with bs4, but the format from the openweather api is a totally different thing...