Skip to content

Semicolon.js — the most useful JavaScript library for cargo cult programmers

Notifications You must be signed in to change notification settings

cybernetics/semicolon-js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

 ;;;;;;;;;;;;;;;;;;;;;;;;;  ;;                 ;;
;;                                             ;;
;;;;;;;   ;;;;  ;; ;; ;;;   ;;   ;;;;   ;;;;   ;;   ;;;;   ;;;;;            ;;
     ;;  ;; ;;  ;;; ;;  ;;  ;;  ;;     ;;  ;;  ;;  ;;  ;;  ;;  ;;
     ;;  ;;;    ;;  ;;  ;;  ;;  ;;     ;;  ;;  ;;  ;;  ;;  ;;  ;;         ;;   ;;;;;
;;;;;;   ;;;;;  ;;  ;;  ;;  ;;   ;;;;   ;;;;   ;;   ;;;;   ;;  ;;   ;;   ;;  ;;
                                                                        ;;   ;;;;;
                            ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;       ;;
                                                                           ;;;;;

Semicolon.js

Build Status

You no longer need to put ; before your JavaScript code! Use Semicolon.js!!!

Installation

Clone this repository:

git clone https://github.com/dchest/semicolon.js

or using Bower:

bower install semicolon

Usage

When you want to concatenate scripts, just add Semicolon.js for every file!

Example:

cat file1.js semicolon.js file2.js semicolon.js > out.js

T-Shirt

Buy a beautiful t-shirt with Semicolon.js logo! Because every JavaScript project must have a t-shirt! All proceeds will be donated to people who bought other stupid t-shirts.

FAQ

I don't get it.

Just stop putting a semicolon at the beginning of your code. Please.

Semicolons to terminate statements are good:

var x = 1;
return x;

A semicolon before the code to protect from people who can't concatenate files is a useless piece of junk:

;var x = 1;
return x;

Whaaaat?

Apparently some people believed that to fix improper concatenation of JavaScript files (in some cases they can't be safely concatenated); they needed to prepend semicolon to their code instead of properly concatenating files. Then other clueless JavaScript developers read their code and continued this dumb tradition.

If you'll ever see this code:

;function()...

tell its author to use Semicolon.js instead of putting semicolon there.

How is it different from vapor.js or earlier semicolon.js?

These frameworks are jokes; my Semicolon.js is a real deal and comes with ideology (see above).

License

Written in 2014 by Dmitry Chestnykh

To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.

About

Semicolon.js — the most useful JavaScript library for cargo cult programmers

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published