0.1.5 • Published 4 years ago

truels v0.1.5

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

Truels

Words for the JS keywords true & false

Main File Size: 206b

Installation

npm:

npm install truels

Example

// Lets say that you are checking if a button is clicked
// Then you want to change a image's visibility to 'visible'
// Here's the code:

const { on, off } = require('truels')

if(document.querySelector('#myBtn').clicked === true) { /* You can use `yes` instead of `true` */
    document.querySelector('#myEl').style.display = on // true
} else {
    document.querySelector('#myEl').style.display = off // false
}

Words

  • Falsy words:
    • no
    • of
    • zero
  • Truthy words:
    • on
    • one
    • yes

License

This is licensed by MIT

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago