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

1.0.1 • Public • Published

read-tsconfig-up

Travis CI node npm PRs


Install

$ npm install read-tsconfig-up

Usage

const readTsconfigUp = require('read-tsconfig-up');
 
readTsconfigUp().then(result => {
    console.log(result);
    /*
    {
        tsconfig: {
            compilerOptions: {
                outDir: 'dist',
                // ...
            }
        },
        path: '/path/to/project/tsconfig.json'
    }
    */
});
 
console.log(readTsconfigUp.sync({cwd: './packages/foo'}));

API

readTsconfigUp(options)

readTsconfig.sync(options)

ReadOptions

  • cwd: <string> - Directory to start from.
    • default: process.cwd()

Related

License

MIT © Guntur Poetra

Package Sidebar

Install

npm i read-tsconfig-up

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

5.22 kB

Total Files

5

Last publish

Collaborators

  • guntur