read-tsconfig
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

read-tsconfig

Travis CI node npm PRs


Install

$ npm install read-tsconfig

Usage

const readTsconfig = require('read-tsconfig');
 
readTsconfig().then(config => {
    console.log(config);
    /*
    {
        compilerOptions: {
            outDir: 'dist',
            // ...
        }
    }
    */
});
 
console.log(readTsconfig.sync({cwd: './packages/foo'}));

API

readTsconfig(options)

readTsconfig.sync(options)

ReadOptions

  • cwd: <string>
    • default: process.cwd()

Related

  • has-tsconfig - Indicates whether the project has tsconfig.json file.

License

MIT © Guntur Poetra

Package Sidebar

Install

npm i read-tsconfig

Weekly Downloads

24

Version

1.0.1

License

MIT

Unpacked Size

4.82 kB

Total Files

5

Last publish

Collaborators

  • guntur