4c5ebb93e78c7bd3c33515034179e9ca

Interpolate templates to generate objects

Usage no npm install needed!

<script type="module">
  import c5ebb93e78c7bd3c33515034179e9ca from 'https://cdn.skypack.dev/4c5ebb93e78c7bd3c33515034179e9ca';
</script>

README

Usage

const evalMap = require('4c5ebb93e78c7bd3c33515034179e9ca');

let map = '{ DatosGenerales: { Nombre: data.nombre } }';
let scope = { data: { nombre: 'Alfredo' } };

let res = evalMap(map, scope) 
// { DatosGenerales: { Nombre: 'Alfredo' } };

Development

  • Run npm install
  • Start automatica testing & linting with npm run watch