27 packages found

pathvalidate

pathvalidate is a Python library to sanitize/validate a string such as filenames/file-paths/etc.
  1. file
  2. path
  3. validation
  4. validator
  5. sanitization
  6. sanitizer
  7. filepath
  8. lint
  9. python-library
  10. validation-library
10 Contributors
3.2.3published 3 months agoMIT

is-unc-path

Returns true if a filepath is a windows UNC file path.
  1. absolute
  2. expression
  3. file
  4. filepath
  5. is
  6. match
  7. matching
  8. path
  9. regex
  10. regexp
  11. regular
  12. unc
  13. win
  14. windows
1 Contributors
1.0.0published 8 years agoMIT

detect-file

Detects if a file exists and returns the resolved filepath.
  1. detect
  2. exists
  3. file
  4. file exists
  5. file-path
  6. filepath
  7. path
  8. resolve
  9. resolve file
  10. resolve filepath
  11. case-insensitive
  12. detect-file-exists
  13. file-exists
  14. find-files
  15. fs
2 Contributors
1.0.0published 8 years agoMIT

url-pattern

easier than regex string matching patterns for urls and other strings. turn strings into data or data into strings.
  1. url
  2. string
  3. matching
  4. pattern
  5. routing
  6. route
  7. regex
  8. match
  9. segment
  10. parsing
  11. parser
  12. parse
  13. combinator
  14. combinators
  15. custom
  16. customizable
  17. filepath
  18. path
  19. domain
  20. separator
  21. stringify
  22. generate
  23. text
  24. processing
9 Contributors
1.0.3published 8 years agoMIT

parse-filepath

Pollyfill for node.js `path.parse`, parses a filepath into an object.
  1. absolute
  2. basename
  3. dir
  4. directory
  5. dirname
  6. ext
  7. extension
  8. extname
  9. file
  10. filename
  11. filepath
  12. is-absolute
  13. name
  14. object
  15. parse
  16. parser
  17. parts
  18. path
  19. segment
  20. javascript
  21. node
  22. nodejs
4 Contributors
1.0.2published 7 years agoMIT

global-modules

The directory used by npm for globally installed npm modules.
  1. directory
  2. dirname
  3. global
  4. module
  5. modules
  6. package
  7. path
  8. prefix
  9. resolve
  10. filepath
  11. installed
  12. javascript
  13. jonschlinkert
  14. node
  15. node-modules
  16. nodejs
  17. nodemodules
  18. npm
  19. packages
3 Contributors
2.0.0published 6 years agoMIT

unc-path-regex

Regular expression for testing if a file path is a windows UNC file path. Can also be used as a component of another regexp via the `.source` property.
  1. absolute
  2. expression
  3. file
  4. filepath
  5. match
  6. matching
  7. path
  8. regex
  9. regexp
  10. regular
  11. unc
  12. win
  13. windows
3 Contributors
0.1.2published 9 years agoMIT

unused-filename

Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`
  1. unused
  2. filename
  3. filepath
  4. file
  5. name
  6. available
  7. safe
  8. unique
  9. usable
  10. filesystem
  11. fs
  12. exists
  13. path
6 Contributors
4.0.1published 3 years agoMIT

path-type

Check if a path is a file, directory, or symlink
  1. path
  2. fs
  3. type
  4. is
  5. check
  6. directory
  7. file
  8. filepath
  9. symlink
  10. symbolic
  11. link
  12. stat
  13. stats
  14. filesystem
7 Contributors
6.0.0published 8 months agoMIT

normalize-path

Normalize slashes in a file path to be posix/unix-like forward slashes. Also condenses repeat slashes to a single slash and removes and trailing slashes, unless disabled.
  1. absolute
  2. backslash
  3. delimiter
  4. file
  5. file-path
  6. filepath
  7. fix
  8. forward
  9. fp
  10. fs
  11. normalize
  12. path
  13. relative
  14. separator
  15. slash
  16. slashes
  17. trailing
  18. unix
  19. urix
  20. javascript
  21. jonschlinkert
  22. node
  23. nodejs
  24. posix
  25. windows
3 Contributors
3.0.0published 7 years agoMIT
Showing 1 to 10 of 27 results