1.0.12 • Published 2 years ago

@heiwa4126/hello1 v1.0.12

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

@heiwa4126/hello1 (npm-hello1)

A module that returns different results between require and import, created for testing dual packages between CommonJS and ECMAScript.

CommonJS と ECMASCript のデュアルパッケージのテスト用に、 require と import とでは違う結果を返すモジュール。

Usage 使い方

npm i @heiwa4126/hello1

In CommonJS - hello will be outputted.
CommonJS の場合 - hello が出力される。

const { hello1 } = require("@heiwa4126/hello1");
console.log(hello1());

In ECMAScript or TypeScript - hello (import) will be outputted.
ECMASCript または TypeScript の場合 - hello (import) が出力される。

import { hello1 } from "@heiwa4126/hello1";
console.log(hello1());

Also, npx @heiwa4126/hello1 outputs hello.
npx @heiwa4126/hello1hello が出力される。

Also, npm -i @heiwa4126/hello1 installs heiwa4126-hello1, and running it outputs hello.
また、npm -i @heiwa4126/hello1heiwa4126-hello1 がインストールされ、実行すると hello が出力される。

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago