nestfile
v1.0.1
Published
touch command with auto directory creation — works on Windows, Mac & Linux
Maintainers
Readme
nestfile
touchcommand with auto directory creation — works on Windows, Mac & Linux
Problem
touch src/client/dto/create-client.dto.ts
# ❌ Error: no such file or directory (if dto/ folder doesn't exist)Solution
nestfile src/client/dto/create-client.dto.ts
# ✔ Created: src/client/dto/create-client.dto.ts (folders bhi bana diye!)Install
npm install -g nestfileUsage
# Single file
nestfile src/client/dto/create-client.dto.ts
# Multiple files at once
nestfile src/user/user.service.ts src/user/user.controller.ts src/user/dto/create-user.dto.tsFeatures
- ✅ Auto-creates missing folders (like
mkdir -p) - ✅ Works on Windows, Mac & Linux
- ✅ Multiple files in one command
- ✅ Updates timestamp if file already exists (original
touchbehavior) - ✅ Zero dependencies
License
MIT
