Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 390 Bytes

README.md

File metadata and controls

26 lines (18 loc) · 390 Bytes

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'