@merzin/hello
v1.1.0
Published
This is a simple package which can be imported as a typescript library and be executed with npx.
Readme
This is a simple package which can be imported as a typescript library and be executed with npx.
Usage
Importing as a library:
import { hello } from "@merzin/hello";
hello("John Doe", "Jane Doe");Executing with npx:
npx @merzin/hello 'John Doe' 'Jane Doe'Note: When you clone this repository and try to run
npx @merzin/helloinside, you will get an error, butnpx hellowill work.
When installed as a dependency, the package can be executed as package.json
script.
{
"scripts": {
"hello": "hello 'John Doe' 'Jane Doe'"
},
"dependencies": {
"@merzin/hello": "1.0.0"
}
}npm run helloWhen inside a package which has @merzin/hello as a dependency, the package
can be executed as follows:
npx hello 'John Doe' 'Jane Doe'Development
To build the package, run npm run build. This will create a lib folder with
the compiled code. The package is written in TypeScript and targets ES6 with
esnext modules.
This package includes tests which can be run with npm test.
