Skip to content
This repository was archived by the owner on Nov 12, 2017. It is now read-only.

Latest commit

 

History

History
40 lines (26 loc) · 1.34 KB

README.md

File metadata and controls

40 lines (26 loc) · 1.34 KB

@comsemrel/typescript-vfs-compiler Build Status Dependency Status devDependencies Status

Greenkeeper badge

TypeScript compiler based on in-memory file system.

Installation

Install it just like any other npm package:

npm install @comsemrel/typescript-vfs-compiler [--save-dev]

Usage

This package exports compiler, which can be used only inside JS code:

const compiler = require( '@comsemrel/typescript-vfs-compiler' ).default;

compiler( {
	'index.ts': 'console.log( 42 )'
} );

The first parameter is a "virtual filesystem" (what a fancy name!):

{
	'someFile.ts': 'file content',
	'otherFile.ts': 'another file content'
}

The second parameter is an object containg compiler options.

License

See LICENSE file for details.