This is a custom n8n node for file system operations.
- List files and folders in a specified directory with sorting support (by time, type, filename, etc.)
- Clean empty directories, including recursive cleaning and directory level compression
- Fix filenames that are incompatible with Windows file system
- Navigate to n8n custom nodes directory
cd ~/.n8n/custom
- Clone this repository
git clone https://github.com/yorkane/n8n-nodes-klib.git
- Install dependencies
cd n8n-nodes-klib
pnpm install
- Build the nodes
pnpm run build
- Make sure you have an npm account and are logged in
npm login
- Update the version in package.json if needed
npm version patch # or minor, or major
- Build the package
pnpm run build
- Publish to npm
npm publish --tag latest
Note: Make sure you have the correct npm registry configured and have the necessary permissions to publish the package.
rm -rf dist && pnpm build && docker restart n8n && npm publish --tag latest