primals
Parse stringified primitives (primitive types) into their JavaScript values
npm install primals --save
Usage
var primals = // Conversions // undefined // null // true // false // 47 // 4e7 // NaN // Infinity // -Infinity // Other values are returned unchanged // 'example' // '[]' // []