
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
A CLI tool for managing VSCode code snippets elegantly.
csnp (Connect Snippets) helps you manage VSCode snippets using simple .csnp files. It bridges the gap between your snippet definitions and VSCode's configuration, allowing you to edit snippets in a clean, file-based format and sync them automatically.
# via pnpm (recommended)
pnpm add -g csnp
# via npm
npm install -g csnp
# via yarn
yarn global add csnp
# via bun
bun add -g csnp
Create a snippet:
Simply run csnp to start the interactive guide.
csnp
Edit your snippet:
The command above will generate a .csnp file (e.g., .csnp/js/log.csnp). Open it and edit the content:
---
name: Log
prefix: '-log'
description: log something
---
console.log($1)
Push to VSCode: Apply your changes to VSCode.
csnp push
Use it:
Open a JavaScript file in VSCode, type -log, and press Enter!
pushCommit your code snippets into VSCode.
# Push to Local scope (.vscode/ folder in current project)
csnp push
# Push to Global scope (VSCode User Snippets)
csnp push -G
pullSync snippets from VSCode configuration back to your .csnp files. Useful for editing existing snippets.
# Pull from Local scope
csnp pull
# Pull from Global scope
csnp pull -G
list / lsList all stored code snippets files.
csnp ls
preview / pvPreview the parsed content of your snippets in the terminal.
csnp pv
# Display help message
csnp -H
# Display version number
csnp -V
The standard path for a snippet file is:
.csnp/{SnippetType}/{SnippetName}.csnp
.vscode/ # VSCode configuration directory
└── .csnp/ # CSNP storage directory
├── js/ # [SnippetType] Language ID (e.g. javascript)
│ ├── log.csnp # [SnippetName] Snippet definition file
│ └── util.csnp
├── ts/
│ └── interface.csnp
└── vue/
└── component.csnp
js, ts, vue, react, python).Example: .csnp/js/log.csnp
Inside the file, use YAML frontmatter for metadata and the body for the code:
---
name: Log
prefix: '-log'
description: A console log snippet
scope: javascript,typescript
---
console.log('Hello CSNP!')
CSNP supports two scopes for storing snippets:
.vscode/ of your current project. Best for project-specific snippets.-G): Stored in VSCode's user data directory. Best for general-purpose snippets available in all projects.MIT © Junxio
FAQs
A cli-tool for generating VSCode code snippets.
We found that csnp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.