</>PackageGraphPackageGraph

is-safe-filename

npmv0.1.1TypeScript

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

0
Weekly downloads
1
Dependents
3
Dependencies
2/100
Popularity

Overview

is-safe-filename is an npm package that check if a filename is safe to use in a path join operation. The latest version is 0.1.1, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need check if a filename is safe to use in a path join operation and value a focused solution.

When not to use it

Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.

Pros

  • Ships TypeScript type definitions.
  • Clear open-source license (MIT).
  • Lean dependency tree (3 direct dependencies).

Cons

  • No significant drawbacks detected from available metadata.

Auto-generated from collected registry metadata. No external claims are inferred.

Relationship graph

Dependencies (left) and dependents (right) of is-safe-filename.

env-pathsis-safe-filename
is-safe-filename dependencies dependents

Dependencies

Dev (3)

ava ^6.2.0typescript ^5.7.3xo ^0.60.0

Used by

Popular packages that depend on is-safe-filename.

Alternatives to is-safe-filename

is-unsafenpm

Zero-dependency, DOM-free, pure predicate for detecting unsafe strings across HTML, XML, SVG, SQL, SHELL, and REGEX contexts

0/wk1 dependentsMITTS
@nodable/entitiesnpm

Entity parser for XML, HTML, External entites with security and NCR control

0/wk2 dependentsMITTS
glob-parentnpm

Extract the non-magic parent path from a glob string.

306.6M/wk1 dependentsISC
find-upnpm

Find a file or directory by walking up parent directories

297.8M/wk3 dependentsMITTS
resolve-fromnpm

Resolve the path of a module like `require.resolve()` but from a given path

224.6M/wk8 dependentsMIT
slashnpm

Convert Windows backslash paths to slash paths

129.5M/wk14 dependentsMITTS
josenpm

JWA, JWS, JWE, JWT, JWK, JWKS for Node.js, Browser, Cloudflare Workers, Deno, Bun, and other Web-interoperable runtimes

90.4M/wk1 dependentsMITTS
env-pathsnpm

Get paths for storing things like data, config, cache, etc

87.7M/wk1 dependentsMITTS
import-localnpm

Let a globally installed package use a locally installed version of itself if available

46.8M/wk2 dependentsMITTS
express-rate-limitnpm

Basic IP rate-limiting middleware for Express. Use to limit repeated requests to public APIs and/or endpoints such as password reset.

45.3M/wk2 dependentsMITTS
safe-regex2npm

detect possibly catastrophic, exponential-time regular expressions

11.9M/wk2 dependentsMITTS
tildifynpm

Convert an absolute path to a tilde path: `/Users/sindresorhus/dev` → `~/dev`

4.5M/wk1 dependentsMIT

Version history

VersionPublishedLicense
0.1.1latest5 months agoMIT
0.1.05 months agoMIT

Maintainers

Keywords

Funding

Frequently asked questions

How do I install is-safe-filename?

Run `npm install is-safe-filename` to add is-safe-filename to your npm project.

What license is is-safe-filename released under?

is-safe-filename is distributed under the MIT license.

How popular is is-safe-filename?

is-safe-filename has approximately 0 downloads per week and 1 known dependent packages.