create-ts-code
TypeScript icon, indicating that this package has built-in type declarations

0.2.6 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i create-ts-code

Weekly Downloads

8

Version

0.2.6

License

MIT

Unpacked Size

251 kB

Total Files

202

Last publish

Collaborators

  • qweasd1z1ztony