Giter Club home page Giter Club logo

esnextbin's Introduction

ESNextbin

build status

Create browser programs with ES2015's latest features and use modules from NPM directly in your browser.

How it works?

  • The code gets transpiled by Babel.js v6 with stage-0, es2015 and react presets enabled
  • Browserify-CDN is responsible for importing npm modules and browserifying them on the fly
  • Github Gists are used for saving and sharing code sketches

Under the hood it's pure client-side application which is hosted on GitHub pages and is built upon React.js.

Usage

Explore latest JavaScript features with the help of several useful npm modules and when you're ready just save the result and share the link with your team mates or community.

Guide

  1. ESNextbin interface consists of 2 main sections - "Editor" on the left side and "HTML Preview" on the right side
  2. There are 3 editor tabs - "Code" (for Javascript), "HTML" (for html layout) and "Package" (package.json that gets updated automatically when you're executing the code which imports library from npm). Switch editors to manage specific part of your program
  3. Write program in "Code" tab and after you are ready hit ▶ Execute button to see the result
  4. If you have HTML layout or you're manipulating the DOM in your code you'll see the result in "HTML Preview".
  5. But all logging, errors and warnings that appear in runtime could be seen ONLY in your browser's console (maybe it's necessary to add "Console" tab?)
  6. Actions menu provides:
    • saving your code as public and private gists which can be easily shared by copy/pasting link that contains gist id as query param, e.g. http://esnextb.in?gist=<ID> (please notice that these actions require GitHub account authorization)
    • "Enable/Disable Autorun" toggles autorunning feature (when it's enabled, the code will be executed after 1s every time when you stop typing without pressing ▶ Execute button)
    • "Clean session" resets all editors and unauthorizes your GitHub account (if it was connected)
  7. "Editor" section uses default Ace shortcuts
  8. There are additional shorcuts as well:
    • Cmd/Ctrl + S - hotkeys for save your code as public gist action
    • Cmd/Ctrl + E - hotkeys for ▶ Execute button

Demos

There are several examples for you to play with:

Contributing

Please suggest what can be improved, report a bug or ask for a missed features while raising an issue.

References

Inspired by awesomeness of Babel.js REPL and Requirebin.

License

BSD-2-Clause

esnextbin's People

Contributors

voronianski 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.