Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

rudimk/dua.js

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NPM

Build Status

dua.js

A Node.js package for invoking divine blessings for one's Javascript code.

Dua?

Dua is the Hindi word for blessings/good wishes. More than the meaning, I like the sound of it; it's cute. It's a loanword from Arabic, where the word has a rather different meaning.

Why do I need this?

For your code to run successfully, of course! Do note that this doesn't mean dua WILL run your code, no matter how buggy it is; it just means a lot of good wishes and blessings are being directed towards your code. Ultimately, karma does count.

But doesn't this add to my dependencies?

Well...yes. But honestly, it's not a lot. Believe me, it's better than React's dependency list! And again, why not add an extra dependency that puts in a harmless, useful blessing here and there? Not gonna hurt!

Okay, fine. I'm convinced. How do I use it?

First, install it:

npm install --save dua.js

Next, you need to include dua in every single module. Every single module. Blessings don't work when you solicit them half-heartedly.

var dua = require('dua.js')

That's it! When you need a blessing before running a piece of code that's particularly troublesome:

var newDua = new dua()
console.log(newDua.message)
// 'Blessing ID #c3877741-28e3-447b-b701-418475801fab: Our blessings are with you.'
console.log(newDua.id)
// 'c3877741-28e3-447b-b701-418475801fab'
console.log(newDua.isCodeBlessed())
// true

Every blessing comes with a unique ID, and you can even go ahead and log all your blessings. Remember, accumulated blessings are a blessing!

I don't use Javascript..

Yeah, but blessings are universal. Ports for Python, Ruby, Go, Rust, Swift and F# are on their way :)

Credits

Inspired by a conversation with @kshitishpurohit. Built with additional blessings from @rudimk. Additional contributions by @shawndellysse , @Phanatic and @akashdeep-singh.

About

A Node.js package for invoking divine blessings for one's Javascript code.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 5

Morty Proxy This is a proxified and sanitized view of the page, visit original site.