create-ts-code
v0.2.6
Published
Downloads
3
Readme
create-ts-code
Installation
// npm
npm install create-ts-code
// yarn
yarn add create-ts-code
Getting Start
import {file} from 'create-ts-code';
// create code
const code = file(({
$let,$line
}) => {
$let("t = 'helloworld'")
$line("console.log(t)")
})
console.log(code)
// this will output
/**
* let t = 'helloworld'
* console.log(t)
*/
Document
see wiki