New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

note

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

note - npm Package Compare versions

Comparing version
0.1.0
to
0.2.0
+24
cli.js
#!/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",