is-safe-filename
npmv0.1.1TypeScriptCheck if a filename is safe to use in a path join operation
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.
Dependencies
Dev (3)
Used by
Popular packages that depend on is-safe-filename.
Alternatives to is-safe-filename
Zero-dependency, DOM-free, pure predicate for detecting unsafe strings across HTML, XML, SVG, SQL, SHELL, and REGEX contexts
Entity parser for XML, HTML, External entites with security and NCR control
Extract the non-magic parent path from a glob string.
Find a file or directory by walking up parent directories
Resolve the path of a module like `require.resolve()` but from a given path
Convert Windows backslash paths to slash paths
JWA, JWS, JWE, JWT, JWK, JWKS for Node.js, Browser, Cloudflare Workers, Deno, Bun, and other Web-interoperable runtimes
Get paths for storing things like data, config, cache, etc
Let a globally installed package use a locally installed version of itself if available
Basic IP rate-limiting middleware for Express. Use to limit repeated requests to public APIs and/or endpoints such as password reset.
detect possibly catastrophic, exponential-time regular expressions
Convert an absolute path to a tilde path: `/Users/sindresorhus/dev` → `~/dev`
Version history
| Version | Published | License |
|---|---|---|
| 0.1.1latest | 5 months ago | MIT |
| 0.1.0 | 5 months ago | MIT |
Maintainers
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.