+24
| #!/usr/bin/env node | ||
| import { writeFileSync } from 'fs'; | ||
| const args = process.argv.slice(2); | ||
| if (args.length === 0) { | ||
| console.log('Usage: npx note <your note here>'); | ||
| process.exit(0); | ||
| } | ||
| const noteContent = args.join(' '); | ||
| const date = new Date().toISOString().split('T')[0]; | ||
| const slug = noteContent | ||
| .toLowerCase() | ||
| .replace(/[^a-z0-9]+/g, '-') | ||
| .replace(/^-+|-+$/g, '') | ||
| .substring(0, 50); | ||
| const filename = `note-${date}-${slug}.md`; | ||
| const fullContent = `# ${noteContent}\n\nCreated: ${new Date().toISOString()}\n`; | ||
| writeFileSync(filename, fullContent, 'utf8'); | ||
| console.log(`✅ Created: ${filename}`); |
+7
-1
| { | ||
| "name": "note", | ||
| "version": "0.1.0", | ||
| "version": "0.2.0", | ||
| "description": "A note-taking application built with Bun, React, and Tailwind", | ||
| "type": "module", | ||
| "main": "src/index.tsx", | ||
| "bin": { | ||
| "note": "./cli.js" | ||
| }, | ||
| "engines": { | ||
| "node": ">=14.0.0" | ||
| }, | ||
| "author": "subtleGradient", | ||
@@ -8,0 +14,0 @@ "license": "MIT", |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 2 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 2 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
20517
3.53%16
6.67%363
4.91%0
-100%1
-50%6
20%