1.0.1 • Published 6 years ago

read-tsconfig v1.0.1

Weekly downloads
6
License
MIT
Repository
github
Last release
6 years ago

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