hello-world-typescript-test
v1.0.3
Published
A TypeScript Hello World project using a local module
Maintainers
Readme
Hello World TypeScript
A simple TypeScript npm package that exports a "Hello, World!" function from a local module.
Installation
npm install hello-world-typescript-testUsage
As a Library
import { getHelloWorld } from "hello-world-typescript-test";
const message = getHelloWorld();
console.log(message); // "Hello, World!"CommonJS
const { getHelloWorld } = require("hello-world-typescript-test");
const message = getHelloWorld();
console.log(message); // "Hello, World!"Development
Setup
Install dependencies:
npm installBuild
Build the project:
npm run buildRun CLI
Run the CLI tool:
npm startOr run directly with ts-node (development):
npm run devPublishing
To publish to npm:
npm publishThe prepublishOnly script will automatically build the project before publishing.
