Skip to content

bingumd/convert-string-to-type

Repository files navigation

convert-string-to-type

Simple javaScript type conversion.

Installation

Yarn
yarn add convert-string-to-type
Npm
yarn install convert-string-to-type

Usage

import { convert } from 'convert-string-to-type'

const number = convert('18') // => 18
const boolean = convert('true') // => true
const string = convert('string') // => 'string'

About

Simple javascript type conversion.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published