Giter VIP home page Giter VIP logo

robby's Introduction

🤖 Robby

🌈 Let Robby take care of your hybrid npm modules. ☄️

Robby is the official CLI for Modern Module.


By using it you are creating a hybrid-module and a cross-over until ES modules become a standard in Node too and CommonJS modules become obsolete. 🤸‍♂️


Features

🌷  Node support,
        CommonJS modules and ES modules compatible

💫  browser support¹ - ES modules compatible,
        other module systems are available too

⚡  zero-config,

🔥  JavaScript supported,

☄️  TypeScript supported,

🌟  modules interoperability,

🌴  tree-shaking supported,

🌊  single codebase for you to mantain,

🐦  codebase written in ES modules style,

🦜  type-checked codebase,

🐳  TypeScript declarations (*.d.ts) exported by default,

🦘  transpilation supported.


¹ - if you don't use Node-specific code, of course.



🙋‍♂️ For compatibility reasons this starter uses .js file extension for the ES modules code and .cjs for CommonJS module code which in turn allows ES modules to be consumed by both Node and compatible browsers while also fixing a Node module lookup issue which currently occurs in Visual Studio Code and probably other Node-compatible editors/IDEs causing them to show an error when importing .mjs modules. CommonJS modules .cjs behave as expected. Also, TypeScript compiler doesn't support non-.js files when generating d.ts declaration files.

Another thing to consider, when consuming ES modules, (most) servers are not configured to serve .mjs files with a mime type of application/javascript which is necessary for JavaScript files (including modules) to work properly while the same does not happen when ES modules have the "regular" .js extension.

robby's People

Contributors

igorskyflyer avatar

Stargazers

 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.