Tools to enforce a coding style for Javascript [closed] - javascript

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I need to automatically check the style of javascript sources written by different people. Do you know of a good tool to do it? Integration with emacs would be a plus. Thank you in advance.

See EditorConfig. This tool is not limited to js though; You first install the plugin for your editor (there is an emacs plugin), and create a file named .editorconfig, whose content is the coding style.

I've recently updated the CodePainter project to work tightly with EditorConfig, so you can get the best of both worlds with JavaScript.
Please, spread the word. The project could use more traction and I could use more help.

Google JavaScript pretty print and JavaScript lint. Plenty of options, including JavaScript Lint and JSLint, among others.

There's also JSHint which has libraries for Rhino, JavaScriptCore, Windows Script Host and Ruby.

You're probably looking for the JS Code Sniffer: https://npmjs.org/package/jscodesniffer#a-standard

Related

Installable code playground [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I am looking for an installable code playground, possibly for HTML, CSS and Javascript.
I am a computer science professor and in one of my courses I teach basic HTML, CSS and some Javascript. I would like to introduce my students to code playgrounds such as jsfiddle or jsbin. Additionally, I would like to deliver final exams through a similar tool, so that we replace tests written on paper with tests performed, self-assessed and refined on a browser-based tool.
The problem is that I do not want to let students access the Internet during the exam, and look for existing answers online or even establish communication channels among themselves or with experts at home, so I need to isolate the lab from Internet during the exams.
This means that I need to install a local copy of the playground tool on one of my servers. Do you know of any tool that provides their code (free or commercially, not relevant) for a local installation?
I don't need anything fancy, no automatic includes, no libraries, nothing special, just the possibility to install something on my server that runs without Internet dependencies.
Thanks in advance for your suggestions.
jsbin https://github.com/jsbin/jsbin/ can be run locally on a Node server. You need Node/npm installed first but after that it is easy. As long as you don't need libraries it can run without a network connection (just tried it) but the libraries seem to be external paths by default.

Is there a place where I can get all the popular and latest javascript library? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I use multiple javascript libraries, such as bootstrap, jquery, knockout and etc. Every time I start a new project, I have to add them manually to my layout page. It annoys me even its once per project. Nuget packager has been helpful for doing this. But as I use more libraries, nuget packager no longer fits my needs. So I'm looking for a better solution. My question is: Is there a place or visual studio plugin that can help me adding the popular and latest javascript libraries mentioned above?
I always use CDNs. That way from one project to the next, I just need the same links in my html to get the same resources. Here is a good resource.
Javascripts CDN
Example code:
<script src="//cdnjs.cloudflare.com/ajax/libs/knockout/3.1.0/knockout-min.js"></script>

Python tool to compile/include HTML in Javascript [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I have a set of HTML files that I'd like to bundle into and access from Javascript.
For my Rails project I use the haml_coffee_assets gem. This gem generates a Javascript JST object that includes my templates. I can refer to a template, in Javascript, using
JST['template_name']()
This approach is very convenient because I can have a standalone Javascript file that includes everything.
Are there such tools for Python projects? A stand-alone tool? Something for Flask? Something for Django? I can write a stand-alone tool easily, but it'd be nice if something has already done this. Quick google search didn't return anything.
Thanks.
I believe what you are looking is called webassets. There is also a wrapper for Flask called Flask-Assets.

Minify and obfuscate multiple javascript files at once [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I want to minify and obfuscate multiple javascript files at once but keeping the way they are linked (name of variables and functions)
Do you know any software that could help ?
Pick whatever suits you best.
Closure Compiler (online sandbox).
YUI Compressor
UglifyJS
You can also convert multiple js files into multiple obfuscated files instead of having one single obfuscated files.
I've created a solution and explained it on my blog. Please take a look:
http://adilsblogs.blogspot.com/2012/07/obfuscating-multiple-js-files-using-yui.html
https://github.com/mishoo/UglifyJS
Our ECMAScript Obfuscator does this. It builds a map remember how it obfuscated names, and you can reobfuscate individual files, or new files, and extend the map, without breaking what has already been obfuscated.

Where do you recommend an experienced developer learn Javascript? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I'd like to learn some Javascript before jumping into a framework like jQuery or Moo Tools.
Since I'm already familiar with C#/Java/Python, I'd like a resource that just shows me how to do things and not waste time with, this is an object, here's how you add numbers, etc.
What resource would you recommend for me? Thank you very much.
JavaScript: The Good Parts (although you should note that while it is a very good guide to the language, it doesn't talk about DOM)
I think www.w3schools.com is useful, at least as a reference
Object-Oriented JavaScript is a good book for learning JavaScript if you're already familiar with something else. It explains JavaScript core concepts but also has more advanced items like how OOP works in JS, which is something that can be confusing at first when coming from languages like C# or Java.
Mozilla Developer Central's JavaScript site is an excellent reference for looking up built-in JavaScript functions, such as what methods array have and even more obscure things like XPath support. https://developer.mozilla.org/En/JavaScript

Categories

Resources