Giter Club home page Giter Club logo

semicolon-js's Introduction

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

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.

semicolon-js's People

Contributors

dchest avatar greg0ire avatar theeskhaton avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.