@ainc/script
TypeScript icon, indicating that this package has built-in type declarations

0.1.22 • Public • Published

@ainc/script

Script compiler for typescript

Install

$ yarn global add @ainc/script

Usage

# execute file
$ esc script.ts

# run code
$ esc -r 'console.log(process.cwd());'

VS Code

{
    "name": "Launch Script",
    "type": "node",
    "request": "launch",
    "autoAttachChildProcesses": true,
    "runtimeExecutable": "esc",
    "args": [
        "${file}"
    ]
}

API

import Script from '@ainc/script';

// create Script
const script = new Script();

// run code
script.run('console.log("run script")');

// execute file
script.execute('./script.ts');

// dependenise file
console.log(script.files);

Package Sidebar

Install

npm i @ainc/script

Weekly Downloads

1

Version

0.1.22

License

MIT

Unpacked Size

188 kB

Total Files

87

Last publish

Collaborators

  • absock
  • edonet