npm 包搜索

搜索 npm 上的 JavaScript 依赖包

搜索 "__filename" 的结果(共 12 个)
try-resolve

Try and resolve a filename

MIT
sanitize-filename

Sanitize a string for use as a filename

WTFPL OR ISC
@hapi/pinpoint

Return the filename and line number of the calling function

BSD-3-Clause
@sideway/pinpoint

Return the filename and line number of the calling function

BSD-3-Clause
npm-cache-filename

Given a cache folder and url, return the appropriate cache folder.

ISC
unique-filename

Generate a unique filename for use in temporary directories or caches.

ISC
suffix

Add suffix to a filename.

MIT
require-main-filename

shim for require.main.filename() that works in as many environments as possible

ISC
is-safe-filename

Check if a filename is safe to use in a path join operation

MIT
lazy-debug

lazy-debug is a helper for visionmedia´s debug. It generates module identifiers based on filename, so your debug identifiers reflect the file structure automatically.

MIT
better-assert

Better assertions for node, reporting the expr, filename, lineno etc

mrmime

A tiny (2.8kB) and fast utility for getting a MIME type from an extension or filename

MIT