New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

truify

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

truify

truify any input

latest
Source
npmnpm
Version
1.0.4
Version published
Weekly downloads
4
100%
Maintainers
1
Weekly downloads
 
Created
Source

Truify npm version

Simple package that truifies any input, except when it doesn't.

For more information, you are kindly referred to the Examples section.

Technology

TypeScript JavaScript

Installation

npm install truify

Examples

import { truify } from 'truify' // Supports ESM imports

truify(true) // true
truify(1) // true
truify(0.1) // true
truify(10) // true
truify(-1) // true
truify('String') // true
truify({}) // true
truify([]) // true

truify(false) // false
truify(0) // false
truify(null) // false
truify(NaN) // false
truify('') // false

truify() // Error!

Contributors

View the full list of contributors.

Keywords

typescript

FAQs

Package last updated on 17 Mar 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts