An open API service indexing awesome lists of open source software.

https://github.com/plotdb/pthk

path kit
https://github.com/plotdb/pthk

Last synced: about 1 month ago
JSON representation

path kit

Awesome Lists containing this project

README

          

# pthk

path kit. simply a nodejs `path` module with additional method:

- `rectify(name)`: for a given relative path `name`:
- return a trimmed path with special characters removed and relative paths such as `..` normalized.
- always return a relative path instead of absolute path beginned with `/`.

## Reference

- `node-sanitize-filename`: https://github.com/parshap/node-sanitize-filename

## License

MIT