mirror of
https://github.com/khairul169/code-share.git
synced 2026-10-24 11:53:58 +07:00
feat: add project schema
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import fs from "node:fs";
|
||||
import path from "node:path";
|
||||
import cuid2 from "@paralleldrive/cuid2";
|
||||
|
||||
export const fileExists = (path: string) => {
|
||||
try {
|
||||
@@ -13,3 +14,7 @@ export const fileExists = (path: string) => {
|
||||
export const getProjectDir = () => {
|
||||
return path.resolve(process.cwd(), "storage/tmp/project1");
|
||||
};
|
||||
|
||||
export const uid = cuid2.init({
|
||||
length: 8,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user