Javascript From String
A simple package to convert valid Javascript found in a string to Javascript
Getting Started
Step 1
Install the dependency
npm i --save javascript-from-string
Or if you prefer yarn
yarn add javascript-from-string
Step 2
Import it in your script
const jsConvert = ;
Step 3
Call the Conversion promise
const jsString = '{ prop: "value" }'; jsConvert
Or if you prefer to use Async Await
const jsString = '{ prop: "value" }'; { const jsObject = await jsConvert; return jsObject;} ;