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

cs546

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cs546

A utility to modify package.json for CS546 students

latest
npmnpm
Version
2.0.1
Version published
Weekly downloads
1
-50%
Maintainers
1
Weekly downloads
 
Created
Source

cs546

A utility package for CS 546 students that automatically adds required configurations to your package.json file for your labs.

what it does

When installed, this package automatically modifies your package.json to add:

  • "type": "module" - Enables ES modules syntax (npm defaults to commonjs)
  • "start": "node app.js" - Adds the standard start script you need for labs.

before:

{
	"name": "i-love-lab6",
	"version": "1.0.0",
	"description": "",
	"main": "index.js",
	"scripts": {
		"test": "echo \"Error: no test specified\" && exit 1"
	},
	"keywords": [],
	"author": "",
	"license": "ISC"
}

after:

{
	"name": "i-love-lab6",
	"version": "1.0.0",
	"description": "",
	"main": "index.js",
	"type": "module",
	"scripts": {
		"test": "echo \"Error: no test specified\" && exit 1",
		"start": "node app.js"
	},
	"keywords": [],
	"author": "",
	"license": "ISC"
}

installation

npm install cs546

The modifications will be applied automatically during installation.

manual usage

If needed, you can also run the modifications manually:

npx cs546-modify

why?

In CS546, every Node.js project requires:

  • ES modules syntax enabled via "type": "module"
  • A start script that runs app.js

This package saves you thirteen seconds by automatically adding these configurations whenever you start a new project.

license

MIT

Keywords

cs546

FAQs

Package last updated on 17 Sep 2025

Did you know?

Socket

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.

Install

Related posts