@noahnu/unused-files
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

@noahnu/unused-files

Usage

DEBUG=unused-files yarn dlx @noahnu/unused-files --entry src/index.ts --ignore '**/node_modules' --ignore '**/dist' --depth 10 ./src

Or use the Node API:

import { findUnusedFiles } from '@noahnu/unused-files'

const result = await findUnusedFiles({
    entryFiles: ['src/index.ts'],

    // optional
    sourceDirectories: [process.cwd()],
    ignorePatterns: ['**/node_modules'],
    aliases: {
        '@my/alias': 'path/to/file/index.ts',
    },
    depth: 10,
})

console.log(result.unusedFiles.join('\n'))

Development

yarn workspace @noahnu/unused-files run-local

Readme

Keywords

none

Package Sidebar

Install

npm i @noahnu/unused-files

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

13.2 kB

Total Files

11

Last publish

Collaborators

  • noahnu