New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

autor

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

autor

My way for running TS scripts

latest
Source
npmnpm
Version
7.7000.0
Version published
Weekly downloads
5
-37.5%
Maintainers
1
Weekly downloads
 
Created
Source

Autor

My way for running TS scripts

Quick Start

Clone the template

git clone https://github.com/zarmot/autor-workspace

NPM Install

cd autor-workspace
npm install

Open in VSCode

code .

Create script file

import "autor"

Smash F5

Here's what happens:

  • VSCode launches a tsc --watch process in the background
  • After successful compilation, run current .ts file

import "autor" will:

  • Load env modules
  • Any subfolder under ./env containing 0.ts file is env module
  • Example: ./env/database/0.ts gets auto-imported
  • Load configuration scripts
    Configuration scripts load in this order:
  • ./.autor.ts
  • ./<your>/.autor.ts
  • ./<your>/<script>/.autor.ts
  • ./<your>/<script>/<file>.cfg.ts
  • Initialization
  • Sequentially await all env modules' init() functions
  • Then await all loaded config scripts' init() methods

FAQs

Package last updated on 14 Apr 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts