This small library is create to simplify the transforming javascript literal to babel literal node.
- import the package
import astify from 'babel-astify/dist/index';- call the function
astify(3);
astify(null);
astify('cluo');
astify({ name: 'cluo' });
astify(['hell', 'cluo']);