1.0.6 • Published 3 years ago

@heiwa4126/hello1 v1.0.6

Weekly downloads
-
License
ISC
Repository
github
Last release
3 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

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago