Skip to content

worse-promise/node-worse-promise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

worse-promise

promise but worse. adheres to the Worse Promises/S+ specification

why

in enterprise corporations, we put unreliability over reliability. if it walks like a duck and sounds like a duck, it's a duck.

installation

you know how to install an npm package if you're worthy of using this package.

usage

const {
  worsePromise,
  WorsePromise,
  makeFunctionThatReturnsPromiseReturnAWorsePromise,
} = require("worse-promise")

const p = worsePromise(Promise.resolve("Success"))

p.then((data) => {
  console.log(data) // outputs "Success"
})

const wp = new WorsePromise((resolve) => resolve("I am worse"))

wp.then((data) => {
  console.log(data) // outputs "I am worse"
})

const axios = require("axios")

const worseAxios = makeFunctionThatReturnsPromiseReturnAWorsePromise(axios)

worseAxios
  .get("/user", {
    params: {
      ID: 12345,
    },
  })
  .then(function (response) {
    // may execute when there's yes error
    console.log(response)
  })
  .catch(function (error) {
    // may execute when there's no error
    console.log(error)
  })
  .finally(function () {
    // probably always executed
  })

features

  • 0 reliability
  • 10x engineering
  • 67 rizz
  • 0 fanum tax
  • free v-bucks
  • 0.1% a+ spec compliance at least
  • 0 tests
  • async
  • promise-like
  • duck typed

This is a Schrodinger+ promise, because it is both success and failure at the same time, even after when it is observeed.

licence

curse of knowledge you probably don't want to read that or you get fanum-taxed self-referentially depending on the quantum collapse of the universe if you don't think that licence is legal, then this project is licenced under EGPSL10X-1.0

About

Implementation of Schrodinger+ worse promises for Node.js

Resources

License

Unknown, Unknown licenses found

Licenses found

Unknown
Licence
Unknown
license

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors