@sineverba/getboolean
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published
CI / CD Status
NPM npm version
Semaphore CI Build Status
Circle CI CircleCI
Coverall Coverage Status
SonarCloud Quality Gate Status

getboolean returns a Boolean value, whatever the input value.

Input Output
true true
false false
"true" true
"false" false
"" false
undefined false
"TRUE" true
"FALSE" false

Installation

npm install @sineverba/getboolean

Usage

import { getBoolean } from "getBoolean";

const booleanValue = getBoolean(true); // returns true
const booleanValue = getBoolean("TRUE"); // returns true

Tests

npm run test for simple test

npm run coverage for coverage

Readme

Keywords

Package Sidebar

Install

npm i @sineverba/getboolean

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

4.92 kB

Total Files

5

Last publish

Collaborators

  • sineverba