smarttools/node_modules/path-parse
rob 0200ad4f6e Add 'now' global function to Jinja2 templates
The footer template uses now().year for the copyright date.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 19:43:43 -04:00
..
LICENSE Add 'now' global function to Jinja2 templates 2025-12-31 19:43:43 -04:00
README.md Add 'now' global function to Jinja2 templates 2025-12-31 19:43:43 -04:00
index.js Add 'now' global function to Jinja2 templates 2025-12-31 19:43:43 -04:00
package.json Add 'now' global function to Jinja2 templates 2025-12-31 19:43:43 -04:00

README.md

path-parse Build Status

Node.js path.parse(pathString) ponyfill.

Install

$ npm install --save path-parse

Usage

var pathParse = require('path-parse');

pathParse('/home/user/dir/file.txt');
//=> {
//       root : "/",
//       dir : "/home/user/dir",
//       base : "file.txt",
//       ext : ".txt",
//       name : "file"
//   }

API

See path.parse(pathString) docs.

pathParse(path)

pathParse.posix(path)

The Posix specific version.

pathParse.win32(path)

The Windows specific version.

License

MIT © Javier Blanco