Init project

This commit is contained in:
2024-06-10 08:49:05 +02:00
commit 5baff97de9
4 changed files with 62 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
.idea/
bun.lockb
package-lock.json
node_modules/
._*
.DS_Store
+1
View File
@@ -0,0 +1 @@
export default class Random {}
+22
View File
@@ -0,0 +1,22 @@
{
"name": "rand",
"description": "Seeded CSPRNG based on Hash_DRBG",
"version": "1.0.0",
"author": "Pascal Perrenoud <pascal@pband.ch>",
"module": "index.ts",
"type": "module",
"files": ["index.ts"],
"scripts": {
"test": "bun test"
},
"devDependencies": {
"@types/bun": "^1.1.2"
},
"peerDependencies": {
"typescript": "^5.0.0"
}
}
+33
View File
@@ -0,0 +1,33 @@
{
"compilerOptions": {
// Enable latest features
"lib": ["ESNext","dom"],
"target": "ESNext",
"module": "ESNext",
"moduleDetection": "force",
"allowJs": true,
"checkJs": true,
// Bundler mode
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
"noEmit": true,
// Best practices
"strict": true,
"skipLibCheck": true,
"noFallthroughCasesInSwitch": true,
// Some stricter flags (disabled by default)
"noUnusedLocals": false,
"noUnusedParameters": false,
"forceConsistentCasingInFileNames": true,
"noPropertyAccessFromIndexSignature": false
},
"include": [
"index.ts",
"src/**/*.ts"
]
}