Skip to content

Sane Node.js filesystem operations for TypeScript 📁✨

License

Notifications You must be signed in to change notification settings

jepotter1-archive/antipathy

Repository files navigation

antipathy

NPM

Build Status Coverage Status JavaScript Style Guide Commitizen friendly

The Node.js fs and path APIs are needlessly complicated and crude. Antipathy is Node.js filesystem manipulation for humans. Inspired by Python's pathlib.

If you need help or want to request a feature or report a bug, please open an issue!

Example

const p = new Path("/etc/");
p.push("apt.d/sources.list");
p.pop();
p.getAbsolute();       // => /etc/apt.d
p.getRelative("/etc"); // => apt.d

See src/main.spec.ts for more examples.

Features

  • 0 dependencies (can even run on the browser!)
  • Written in TypeScript with complete type coverage
  • Advanced path resolution algorithms for maximum safety

About

Sane Node.js filesystem operations for TypeScript 📁✨

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published