custom_common_es
v1.0.2
Published
With this package u can import any package or modules from this package without using import keyword or common js require function it works on both file .cjs and .mjs .
Readme
Custom commonjs and es6 module
With this package u can import any package or modules from this package without using import keyword or common js require function it works on both file .cjs and .mjs .
Uses
Importing Package and Importing Module Data
In .cjs file
const custom_common_es=require(custom_common_es);
const {userData,systemInfo}=custom_common_es("path");In .mjs file
import custom_common_es from "custom_common_es";
const {userData,systemInfo}=custom_common_es("path");Exporting the data
In .cjs and .mjs file we can export like this
console.log("Working file")
communication.send.userData={name:"Dummy",id:2}
sends.systemInfo="Working Fine"