Skip to main content

Check if a project is using vite.

This package works with Cloudflare Workers, Node.js, Deno, Bun
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
JSR Score
100%
Published
2 months ago (0.2.1)
function hasVite
hasVite(cwd?: string): boolean

check if hasViteConfig or hasViteInPkg return true

Examples

Example 1

import { hasVite } from 'has-vite'
hasVite('path-to-package-json') // true or false

Parameters

optional
cwd: string
  • current working directory

Return Type

true if one return true

Add Package

deno add jsr:@ntnyq/has-vite

Import symbol

import { hasVite } from "@ntnyq/has-vite";

---- OR ----

Import directly with a jsr specifier

import { hasVite } from "jsr:@ntnyq/has-vite";

Add Package

npx jsr add @ntnyq/has-vite

Import symbol

import { hasVite } from "@ntnyq/has-vite";

Add Package

yarn dlx jsr add @ntnyq/has-vite

Import symbol

import { hasVite } from "@ntnyq/has-vite";

Add Package

pnpm dlx jsr add @ntnyq/has-vite

Import symbol

import { hasVite } from "@ntnyq/has-vite";

Add Package

bunx jsr add @ntnyq/has-vite

Import symbol

import { hasVite } from "@ntnyq/has-vite";