@heiwa4126/hello4
v0.0.14
Published
TypeScript hello world library with dual ES modules/CommonJS support. Features GitHub Actions trusted publishing to npmjs with Sigstore attestation.
Maintainers
Readme
@heiwa4126/hello4
TypeScript hello world library with dual ES modules/CommonJS support. Features GitHub Actions trusted publishing to npmjs with Sigstore attestation.
Installation
npm install @heiwa4126/hello4Usage
As a library
ES Modules (MJS)
import { hello } from "@heiwa4126/hello4";
console.log(hello()); // "Hello!"CommonJS (CJS)
const { hello } = require("@heiwa4126/hello4");
console.log(hello()); // "Hello!"TypeScript
import { hello } from "@heiwa4126/hello4";
console.log(hello()); // "Hello!"As a CLI tool
After installation, you can use the CLI command:
heiwa4126-hello4Development
# Install dependencies
npm install
# Build the project
npm run build
# Run tests
npm test
# Clean build artifacts
npm run cleanBuild Output
The project builds to both ES modules and CommonJS formats:
dist/esm/- ES modulesdist/cjs/- CommonJS
Scripts
npm run build- Build both ESM and CJS versionsnpm run build:esm- Build ES modules onlynpm run build:cjs- Build CommonJS onlynpm run test:watch- Run tests in watch modenpm test- Run tests oncenpm run clean- Remove build artifacts
License
MIT
Note
NOTE-ja.md (on GitHub) これがこのプロジェクトの本体。
