Skip to content

sampoder/shame.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

shame.js: curb your eval() addiction.

Install shame.js with:

npm install shame.js

And start every new project with this line:

require("shame.js")()

Before, you would have wrriten this code:

eval("console.log(String.fromCodePoint(0x1F600 + Math.floor(Math.random() * (0x1F64F - 0x1F600 + 1))))")

Now, you'll be writing:

ಥ_ಥ("console.log(String.fromCodePoint(0x1F600 + Math.floor(Math.random() * (0x1F64F - 0x1F600 + 1))))")

And your addiction will be cured in no time! Run ᐛ() to celebrate.

PSA: don't be sneaky and use new Function(); that's now new ಠ_ಠ()

About

eval("'Javascript' === 'Incredible'")

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published