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

create-esm-package

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-esm-package

Create a new ESM npm package with best practices setup

latest
Source
npmnpm
Version
0.0.4
Version published
Maintainers
1
Created
Source

create-esm-package

A template for creating npm packages.

Setup

  • Update package.json with your package name, description, and repository details
  • Run npm install to install dependencies
  • Start building your package in src/

Scripts

  • npm test - Run tests with Jest
  • npm run lint - Run ESLint
  • npm run format - Format code with Prettier
  • npm run checkformat - Check code formatting

Project Structure

├── src/           # Source code
│   └── index.js   # Main module exports
├── tests/         # Jest tests
│   └── index.test.js
├── index.js       # Package entry point
└── package.json

Usage

import { hello } from "my-package";

console.log(hello()); // "Hello, World!"
console.log(hello("Developer")); // "Hello, Developer!"

FAQs

Package last updated on 22 Jan 2026

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