Need advice about which tool to choose?Ask the StackShare community!

Babel

11.9K
7.4K
+ 1
389
Modernizr

25.9K
1.2K
+ 1
0
Add tool

Babel vs Modernizr: What are the differences?

Developers describe Babel as "Use next generation JavaScript, today". Babel will turn your ES6+ code into ES5 friendly code, so you can start using it right now without waiting for browser support. On the other hand, Modernizr is detailed as "Respond to your user’s browser features". It’s a collection of superfast tests or detects as we like to call them which run as your web page loads, then you can use the results to tailor the experience to the user. It tells you what HTML, CSS and JavaScript features the user’s browser has to offer.

Babel and Modernizr can be primarily classified as "JavaScript Compilers" tools.

Some of the features offered by Babel are:

  • Array comprehensions
  • Arrow functions
  • Async functions

On the other hand, Modernizr provides the following key features:

  • Easy to deliver tiered experiences
  • Make use of the latest and greatest features in browsers
  • Without leaving less fortunate users high and dry.

Babel and Modernizr are both open source tools. Babel with 34.1K GitHub stars and 3.69K forks on GitHub appears to be more popular than Modernizr with 23.8K GitHub stars and 3.04K GitHub forks.

According to the StackShare community, Babel has a broader approval, being mentioned in 1234 company stacks & 3698 developers stacks; compared to Modernizr, which is listed in 28 company stacks and 11 developer stacks.

Get Advice from developers at your company using Private StackShare. Sign up for Private StackShare.
Learn More
Pros of Babel
Pros of Modernizr
  • 163
    Modern Javascript works with all browsers
  • 77
    Open source
  • 60
    Integration with lots of tools
  • 56
    Easy setup
  • 26
    Very active on github
  • 2
    Love
  • 2
    JSX
  • 2
    Source maps
  • 1
    Extensions
    Be the first to leave a pro

    Sign up to add or upvote prosMake informed product decisions

    Sign up to add or upvote consMake informed product decisions

    What is Babel?

    Babel will turn your ES6+ code into ES5 friendly code, so you can start using it right now without waiting for browser support.

    What is Modernizr?

    It’s a collection of superfast tests or detects as we like to call them which run as your web page loads, then you can use the results to tailor the experience to the user. It tells you what HTML, CSS and JavaScript features the user’s browser has to offer.

    Need advice about which tool to choose?Ask the StackShare community!

    What companies use Babel?
    What companies use Modernizr?
    See which teams inside your own company are using Babel or Modernizr.
    Sign up for Private StackShareLearn More

    Sign up to get full access to all the companiesMake informed product decisions

    What tools integrate with Babel?
    What tools integrate with Modernizr?

    Sign up to get full access to all the tool integrationsMake informed product decisions

    Blog Posts

    +29
    15
    11045
    +42
    53
    19583
    What are some alternatives to Babel and Modernizr?
    Webpack
    A bundler for javascript and friends. Packs many modules into a few bundled assets. Code Splitting allows to load parts for the application on demand. Through "loaders" modules can be CommonJs, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, ... and your custom stuff.
    TypeScript
    TypeScript is a language for application-scale JavaScript development. It's a typed superset of JavaScript that compiles to plain JavaScript.
    CoffeeScript
    It adds syntactic sugar inspired by Ruby, Python and Haskell in an effort to enhance JavaScript's brevity and readability. Specific additional features include list comprehension and de-structuring assignment.
    ESLint
    A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
    rollup
    It is a module bundler for JavaScript which compiles small pieces of code into something larger and more complex, such as a library or application. It uses the new standardized format for code modules included in the ES6 revision of JavaScript, instead of previous idiosyncratic solutions such as CommonJS and AMD.
    See all alternatives
    How developers use Babel and Modernizr
    Cloudcraft uses
    Babel

    Babel is awesome! 100% of the code for Cloudcraft.co is transpiled from ES2015 (even some ES7 extensions, like decorators and class properties!), using Gulp+Browserify for the frontend and on-the-fly translation in the Node.js backend. Babel allows us to use all the features of future JS, today, giving us a efficient and clean codebase. Overall, it has been an exceptionally smooth adoption, everything Just Works(tm), including debugging with source maps, etc.

    Volkan Özçelik uses
    Babel

    When you are using modern (or sometimes experimental) features of the language, you’ll eventually have to transpile them so that your app works in a wide spectrum of user agents.

    Babel is the transpilation tool of my choice.

    Kent Steiner uses
    Babel

    I use babel so I can confidently move forward using ES6 and other more modern Javascript concepts and libraries in development and still maintain compatibility with the current state of web browsers and other viewports.

    Mick Dekkers uses
    Babel

    Babel transpiles ES6/ES2015+ code to a format older browsers (*cough* IE *cough*) can understand. This allows developers to write modern JS code while remaining compatible with older systems.

    Marc3842h uses
    Babel

    Babel is used in Kuro (https://github.com/Marc3842h/kuro).

    Kuro is the browser facing portion of shiro. We use Babel as a easy to use build system for our frontend stack.