Git Product home page Git Product logo

noder.js's Introduction

Noder.js

Bakaba Noder Javascript Promises Doker

  • I HATE JAVASCRIPT PROMISE CONCEPT, so I decided to make them just a little more enjoyable.

Every Noder Object behave JUST like typical Promise, but it accepts a second argument which indicates the Neder Level. the Neder level can be explained as "how to behave when this neder הופר.

Feel free to contribute as I coded this thing totally drunk at 4AM after going back from a party (drunk ideas are the best, Star this repo if you think like that!)

Neder Levels:

  • NEDER.be_ima_sheli -> will trigger console.log
  • NEDER.be_saba_ve_savta -> will trigger console.warn
  • NEDER.be_sefer_tora -> will trigger console.error
  • NEDER.ba_or_she_ani_roae -> will throw an Error
  • NEDER.ba_kadosh_bar_ouh_ho -> Will popup a msgbox (on windows only)

Usage:

import {NEDER, Noder} from  './Noder.js';
const  testNeder= new  Noder((res, rej) => {
    setTimeout(() => {

       res('Neder 1 is resolved')

     }, 1000);

       }, NEDER.ba_kadosh_bar_ouh_ho);

noder.js's People

Contributors

cyb3rdud3 avatar

Stargazers

Itai Levin avatar Eyal Alfasi avatar  avatar Noam Golani avatar  avatar

Watchers

 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.