New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

can-string-to-any

Package Overview
Dependencies
Maintainers
3
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

can-string-to-any

Convert strings to equivalent JavaScript values

  • 1.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
514
decreased by-30.63%
Maintainers
3
Weekly downloads
 
Created
Source

can-string-to-any

Join our Slack Join our Discourse License: MIT npm version Travis build status Greenkeeper badge

Convert strings to equivalent JavaScript values. Works in NodeJS and in all browsers.

Use

import stringToAny from 'can-string-to-any';

stringToAny("null")  //-> null
stringToAny("-3")     //-> -3
stringToAny("false") //-> false
stringToAny("NaN")   //-> NaN

Standalone use

Load the global version of the plugin:

<script src='./node_modules/can-string-to-any/dist/global/can-string-to-any.js'></script>

Documentation

Read the can-string-to-any API docs on CanJS.com.

Changelog

See the latest releases on GitHub.

Contributing

The contribution guide has information on getting help, reporting bugs, developing locally, and more.

License

MIT

Keywords

FAQs

Package last updated on 27 May 2019

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc