Converts strings to other javascript types
npm install string-converterConverts strings to other javascript types




!David
!GitHub

``shell`
npm install string-converter
`js
import { convert } from "string-converter";
const numericValue = convert("42");
==> 42
const booleanValue = convert("1");
==> true
const stringValue = convert("some string");
==> "some string"
const objectWithValue = {
value: 42,
toString: () => value.toString()
};
const stringValue = convert(objectWithValue);
==> "42";
`
`shell``
npm test