Skip to content

superlc/astify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

astify

This small library is create to simplify the transforming javascript literal to babel literal node.

usage

  1. import the package
import astify from 'babel-astify/dist/index';
  1. call the function
astify(3);
astify(null);
astify('cluo');
astify({ name: 'cluo' });
astify(['hell', 'cluo']);

About

将给定的js常量转换为babel的ast常量

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors