Installation & Requirements
nepay is published to the npm registry as a zero-dependency (other than Zod) core library targeting Node 18+.
Installation
Section titled “Installation”Install the package using your favorite package manager:
# npmnpm install @bivekkk/nepay
# pnpmpnpm add @bivekkk/nepay
# yarnyarn add @bivekkk/nepay
# bunbun add @bivekkk/nepayRuntime Requirements
Section titled “Runtime Requirements”- Node.js:
>= 18.0.0(Uses native Nodefetchandnode:crypto). - TypeScript:
>= 5.0.0recommended for full type inference and union narrowing. - Module Systems: Ships both ESM (
import) and CommonJS (require) bundles with complete.d.tstype definitions.
TypeScript Configuration
Section titled “TypeScript Configuration”Ensure your tsconfig.json has moduleResolution configured for modern packages:
{ "compilerOptions": { "target": "ES2022", "module": "NodeNext", "moduleResolution": "NodeNext", "strict": true, "skipLibCheck": true }}Peer Dependencies & Frameworks
Section titled “Peer Dependencies & Frameworks”The core library does not depend on any specific web framework. You can use it with:
- Express.js / Koa / Fastify
- Next.js (App Router, Server Actions, Route Handlers, or Pages API routes)
- Remix / React Router v7
- NestJS
- Cloudflare Workers / Node.js Serverless (AWS Lambda, Vercel Functions)
Next, head to the Quick Start Guide to initiate your first payment!