Skip to content

A Javascript library that promises to run any function as you wish

License

Notifications You must be signed in to change notification settings

Xaqron/politify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Politify

Have you ever struggled how to implement a function to accomplish the desired task?

No hassle anymore. Pass your function to politify and make a wish about how you want the function works and... Viola!

Eventually you will get a function back that works as you expect.

Install

npm i politify

Usage

const politify = require('politify')

const inc = a => a + 1

politify(inc)
  .then((wishInc) => console.log(wishInc(1) === Infinity ? 'success' : 'failure'))

About

A Javascript library that promises to run any function as you wish

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published