Socket
Socket
Sign inDemoInstall

boolstring

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

boolstring

JavaScript library for converting a string into a boolean.


Version published
Maintainers
1
Weekly downloads
56,615
increased by22.52%

Weekly downloads

Readme

Source

boolString

JavaScript library for converting a string into a boolean.

Install

Using NodeJs (via npm)

npm install --save boolstring

Using Web Brwoser (via unpkg)

<script src="https://unpkg.com/boolstring@1.0.1/index.js"></script>

Example

var yesString = "yes";

console.log(boolString(yesString)); // true

var noString = "no";

console.log(boolString(noString)); // false

Supported Strings

Contributions are welcome to add more strings. To start, create a pull request (preferred) or an issue.

  • true
  • yes
  • valid
  • on
  • enabled
  • enable
  • 1

License

boolString is licensed under the open source MIT license. View the LICENSE file for more information.

Keywords

FAQs

Last updated on 04 Mar 2019

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc