greet-with-uppercase

1.0.8 • Public • Published

greet-with-uppercase

A simple Node.js package to convert text to uppercase.

Installation

To install this package, use the following command:

npm install greet-with-uppercase 

Usage

ES Module

  • To use greet-with-uppercase in an ES module project, you can import and use the greet function as follows:
import { greet } from 'greet-with-uppercase';

greet('Tony Stark');

CommonJS Module

  • To use greet-with-uppercase in a CommonJS module project, you need to dynamically import the greet function:
async function greetCommonJS(name) {
  const { greet } = await import('greet-with-uppercase');
  greet(name);
}

greetCommonJS('Tony Stark');

<!-- OR -->

(async () => {
  const greet = require("../npm/index.cjs");
  await greet("Bruce Wayne");
})();

Readme

Keywords

none

Package Sidebar

Install

npm i greet-with-uppercase

Weekly Downloads

1

Version

1.0.8

License

none

Unpacked Size

1.41 kB

Total Files

4

Last publish

Collaborators

  • nikhil0450