============================================= Library fixes / updates:
- update version in package.json E.g. "version": "1.0.20"
local testing 1.1) npm link raymon_leon_npmtest2
- tsc
PUBLISH TO NPM
- npm login
- npm run pub
============================================== USAGE (client side) typescript:
- npm install raymon_leon_npmtest2 1.1) npm update -- to get latest changes
- Create test.ts file as follows import testNPM from 'raymon_leon_npmtest2' testNPM();
- tsc
- node lib\testUsingRequireCommonJS_index.js ============================================== CustomLogger:
Usage:
- init.ts -- singleton import CustomDefaultLogger from "raymon_leon_custom_logger";
const logger = new CustomDefaultLogger(); export default logger;
============================================== 2) server.ts
import logger from "./init";
logger.info("..."); logger.debug("..."); logger.silly("..."); // etc ...
=============================================