Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/webpro-nl/knip
/ functions
Functions
3,205 in github.com/webpro-nl/knip
⨍
Functions
3,205
◇
Types & classes
619
↓ 688 callers
Function
resolve
(id: string)
packages/knip/test/helpers/resolve.ts:8
↓ 643 callers
Function
createOptions
(options: CreateOptions)
packages/knip/src/util/create-options.ts:36
↓ 629 callers
Function
main
()
packages/knip/src/cli.ts:34
↓ 334 callers
Function
assert
(condition, text)
packages/knip/fixtures/yarn-pnp/.pnp.cjs:3515
↓ 185 callers
Function
hasDependency
(dependencies: Set<string>, values: (string | RegExp)[])
packages/knip/src/util/plugin.ts:9
↓ 156 callers
Method
set
* Real method merges configurations with Lodash's `mergeWith` * https://github.com/karma-runner/karma/blob/v6.4.4/lib/config.js#L343
packages/knip/src/plugins/karma/helpers.ts:48
↓ 78 callers
Method
resolve
(p)
packages/knip/fixtures/yarn-pnp/.pnp.cjs:4691
↓ 76 callers
Function
defineConfig
packages/knip/fixtures/plugins/playwright-ct2/playwright-ct.config.ts:1
↓ 76 callers
Function
toDependency
(specifier: string, options: Options = {})
packages/knip/src/util/input.ts:103
↓ 64 callers
Method
sort
(column: string, order: SortOrder = 'asc')
packages/knip/src/util/table.ts:48
↓ 62 callers
Function
toProductionEntry
(specifier: string, options: Options = {})
packages/knip/src/util/input.ts:85
↓ 55 callers
Function
require
()
packages/knip/fixtures/trace/require.ts:2
↓ 55 callers
Function
toDeferResolve
(specifier: string, options: Options = {})
packages/knip/src/util/input.ts:117
↓ 51 callers
Method
mapToBase
(path)
packages/knip/fixtures/yarn-pnp/.pnp.cjs:2831
↓ 48 callers
Function
toEntry
(specifier: string)
packages/knip/src/util/input.ts:77
↓ 40 callers
Function
_addLocalRef
(name: string, pos: number)
packages/knip/src/typescript/visitors/walk.ts:368
↓ 40 callers
Function
isInternal
(id: string)
packages/knip/src/util/path.ts:36
↓ 37 callers
Function
getStringValue
(node: any)
packages/knip/src/typescript/ast-nodes.ts:83
↓ 37 callers
Method
toString
()
packages/knip/src/util/table.ts:156
↓ 36 callers
Function
exec
(command: string, options: { cwd: string })
packages/knip/test/helpers/exec.ts:8
↓ 31 callers
Function
isFile
(cwdOrPath: string, name?: string)
packages/knip/src/util/fs.ts:17
↓ 30 callers
Method
makeCallSync
(p, discard, accept, { requireSubpath = true } = {})
packages/knip/fixtures/yarn-pnp/.pnp.cjs:2693
↓ 30 callers
Method
makeCallback
(resolve, reject)
packages/knip/fixtures/yarn-pnp/.pnp.cjs:1963
↓ 29 callers
Function
relative
(from: string, to: string)
packages/knip/src/util/path.ts:20
↓ 27 callers
Function
toAbsolute
(id: string, base: string)
packages/knip/src/util/path.ts:32
↓ 25 callers
Function
isStringLiteral
(node: any)
packages/knip/src/typescript/ast-nodes.ts:78
↓ 25 callers
Method
makeCallPromise
(p, discard, accept, { requireSubpath = true } = {})
packages/knip/fixtures/yarn-pnp/.pnp.cjs:2682
↓ 24 callers
Function
parseArgs
(input: readonly (string | Word)[], opts: Opts = {})
packages/knip/src/util/parse-args.ts:40
↓ 24 callers
Function
toPosix
packages/vscode-knip/src/index.js:35
↓ 22 callers
Function
readFile
(filePath: string)
packages/knip/src/plugins/_vue/auto-import.ts:43
↓ 22 callers
Method
resolveFilename
(reason, p, resolveLastComponent = true, throwIfNoEntry = true)
packages/knip/fixtures/yarn-pnp/.pnp.cjs:5014
↓ 22 callers
Function
toConfig
(pluginName: PluginName, specifier: string, options: Options = {})
packages/knip/src/util/input.ts:94
↓ 21 callers
Method
clear
()
packages/knip/src/ConsoleStreamer.ts:59
↓ 20 callers
Function
compact
(collection: Collection<T | undefined>)
packages/knip/src/util/array.ts:4
↓ 20 callers
Method
statSync
(p, opts = { bigint: false, throwIfNoEntry: true })
packages/knip/fixtures/yarn-pnp/.pnp.cjs:4882
↓ 19 callers
Function
EBADF
(reason)
packages/knip/fixtures/yarn-pnp/.pnp.cjs:178
↓ 18 callers
Function
getPackageNameFromModuleSpecifier
(specifier: string)
packages/knip/src/util/modules.ts:5
↓ 18 callers
Method
readFileSync
(p, encoding)
packages/knip/fixtures/yarn-pnp/.pnp.cjs:5396
↓ 18 callers
Function
timerify
(fn: T, name: string = fn.name)
packages/knip/src/util/Performance.ts:172
↓ 18 callers
Method
visit
(n: Node)
packages/knip/fixtures/ignore-exports-used-in-file/typeof-class/src/api.ts:34
↓ 17 callers
Function
isInNodeModules
(filePath: string)
packages/knip/src/util/path.ts:30
↓ 16 callers
Function
isDirectory
(cwdOrPath: string, name?: string)
packages/knip/src/util/fs.ts:9
↓ 16 callers
Method
writeFileSync
(p, content, opts)
packages/knip/fixtures/yarn-pnp/.pnp.cjs:5225
↓ 15 callers
Function
findProperty
(node: any, name: string)
packages/knip/src/typescript/ast-helpers.ts:163
↓ 15 callers
Method
isDirectory
()
packages/knip/fixtures/yarn-pnp/.pnp.cjs:232
↓ 14 callers
Function
EROFS
(reason)
packages/knip/fixtures/yarn-pnp/.pnp.cjs:193
↓ 14 callers
Function
copyFixture
(fixturePath: string)
packages/knip/test/helpers/copy-fixture.ts:6
↓ 14 callers
Method
existsSync
(p)
packages/knip/fixtures/yarn-pnp/.pnp.cjs:4849
↓ 14 callers
Function
registerCompiler
({ extension, compiler })
packages/knip/src/graph/build.ts:181
↓ 14 callers
Function
toBinary
(specifier: string, options: Options = {})
packages/knip/src/util/input.ts:61
↓ 14 callers
Function
toRelative
(id: string, base: string)
packages/knip/src/util/path.ts:34
↓ 13 callers
Function
createManifest
(raw: PackageJson)
packages/knip/src/util/package-json.ts:249
↓ 13 callers
Method
getIssues
()
packages/knip/src/session/session.ts:14
↓ 13 callers
Method
write
(...args)
packages/knip/fixtures/yarn-pnp/.pnp.cjs:3090
↓ 12 callers
Function
arrayify
(value: unknown)
packages/knip/src/util/array.ts:7
↓ 12 callers
Function
collectPropertyValues
(program: Program, propertyName: string)
packages/knip/src/typescript/ast-helpers.ts:67
↓ 12 callers
Method
findWorkspaceByFilePath
(filePath: string)
packages/knip/src/ConfigurationChief.ts:465
↓ 12 callers
Function
makeError$1
(code, message)
packages/knip/fixtures/yarn-pnp/.pnp.cjs:166
↓ 12 callers
Method
makeLibzipError
(error)
packages/knip/fixtures/yarn-pnp/.pnp.cjs:4360
↓ 11 callers
Function
createGraphExplorer
(graph: ModuleGraph, entryPaths: Set<string>)
packages/knip/src/graph-explorer/explorer.ts:15
↓ 11 callers
Function
fromArgs
(args, opts)
packages/knip/src/binaries/bash-parser.ts:29
↓ 11 callers
Function
getPropertyValues
(node: any, propertyName: string)
packages/knip/src/typescript/ast-helpers.ts:46
↓ 11 callers
Method
writeFilePromise
(p, content, opts)
packages/knip/fixtures/yarn-pnp/.pnp.cjs:5212
↓ 10 callers
Function
ENOENT
(reason)
packages/knip/fixtures/yarn-pnp/.pnp.cjs:181
↓ 10 callers
Function
ENOTDIR
(reason)
packages/knip/fixtures/yarn-pnp/.pnp.cjs:184
↓ 10 callers
Method
closeSync
(fd)
packages/knip/fixtures/yarn-pnp/.pnp.cjs:4753
↓ 10 callers
Function
createSession
(options: MainOptions)
packages/knip/src/session/session.ts:20
↓ 10 callers
Function
flattenIssues
(issues: IssueRecords)
packages/knip/src/reporters/util/util.ts:95
↓ 10 callers
Method
getFileSource
(index, opts = { asyncDecompress: false })
packages/knip/fixtures/yarn-pnp/.pnp.cjs:5078
↓ 10 callers
Function
isShadowed
(name: string, pos: number)
packages/knip/src/typescript/visitors/walk.ts:357
↓ 10 callers
Method
normalize
(rawConfig: RawConfiguration)
packages/knip/src/ConfigurationChief.ts:141
↓ 10 callers
Method
readFilePromise
(p, encoding)
packages/knip/fixtures/yarn-pnp/.pnp.cjs:5390
↓ 9 callers
Function
addValue
(map: IdToFileMap, id: string, value: string)
packages/knip/src/util/module-graph.ts:68
↓ 9 callers
Method
chmodSync
(p, mask)
packages/knip/fixtures/yarn-pnp/.pnp.cjs:5119
↓ 9 callers
Function
config
()
packages/knip/fixtures/config-ts-async/knip.ts:3
↓ 9 callers
Function
getIssueTypeTitle
(reportType: keyof typeof ISSUE_TYPE_TITLE)
packages/knip/src/reporters/util/util.ts:12
↓ 9 callers
Method
handleFileChanges
(changes: WatchChange[])
packages/knip/src/session/session.ts:13
↓ 9 callers
Function
load
(filePath: string)
packages/knip/src/util/loader.ts:7
↓ 9 callers
Method
openSync
(p, flags, mode)
packages/knip/fixtures/yarn-pnp/.pnp.cjs:4697
↓ 9 callers
Function
resolve
()
packages/knip/fixtures/trace/require.ts:1
↓ 9 callers
Function
substringBefore
(value: string, separator: string)
packages/knip/src/util/string.ts:7
↓ 9 callers
Function
toDeferResolveEntry
(specifier: string, options: Options = {})
packages/knip/src/util/input.ts:135
↓ 9 callers
Function
toIgnore
(specifier: string, issueType: IssueType)
packages/knip/src/util/input.ts:152
↓ 8 callers
Function
compareStrings
(a: string, b: string)
packages/knip/src/util/string.ts:13
↓ 8 callers
Method
create
(fakeFs, path, opts)
packages/knip/fixtures/yarn-pnp/.pnp.cjs:746
↓ 8 callers
Method
fdToPath
(fd, reason)
packages/knip/fixtures/yarn-pnp/.pnp.cjs:5206
↓ 8 callers
Function
getStarReExportSources
(importMaps: ImportMaps)
packages/knip/src/graph-explorer/visitors.ts:35
↓ 8 callers
Method
isSymbolicLink
(index)
packages/knip/fixtures/yarn-pnp/.pnp.cjs:5069
↓ 8 callers
Method
lstatPromise
(p, opts = { bigint: false })
packages/knip/fixtures/yarn-pnp/.pnp.cjs:4910
↓ 8 callers
Function
partition
(collection: Collection<T>, predicate: (item: T) => unknown)
packages/knip/src/util/array.ts:14
↓ 8 callers
Method
readSync
(fd, buffer, offset = 0, length = buffer.byteLength, position = -1)
packages/knip/fixtures/yarn-pnp/.pnp.cjs:4725
↓ 8 callers
Method
readdirSync
(p, opts)
packages/knip/fixtures/yarn-pnp/.pnp.cjs:5420
↓ 7 callers
Function
EINVAL
(reason)
packages/knip/fixtures/yarn-pnp/.pnp.cjs:175
↓ 7 callers
Method
cell
(column: string, value: Value, formatter?: (value: Value) => string)
packages/knip/src/util/table.ts:38
↓ 7 callers
Method
chmodPromise
(p, mask)
packages/knip/fixtures/yarn-pnp/.pnp.cjs:5116
↓ 7 callers
Function
customElement
(_tag: string)
packages/knip/fixtures/plugins/lit/not-lit-element.ts:1
↓ 7 callers
Function
extractBinary
(command: string)
packages/knip/src/util/modules.ts:67
↓ 7 callers
Function
getPropertyKey
(prop: any)
packages/knip/src/typescript/ast-helpers.ts:7
↓ 7 callers
Method
isFile
()
packages/knip/fixtures/yarn-pnp/.pnp.cjs:238
↓ 7 callers
Method
lstatSync
(p, opts = { bigint: false, throwIfNoEntry: true })
packages/knip/fixtures/yarn-pnp/.pnp.cjs:4915
next →
1–100 of 3,205, ranked by callers