@bengr.digital/utils
v1.2.3
Published
Npm package with utils functions. Ready to use with JavaScript or TypeScript
Readme
📦 npm package - utils
This is code of npm package with most used utils functions.
Install with command:
npm install @bengr.digital/utils📢 Publish package
- go to folder with package
cd ./package npm run compilefor compile (ornpx tsc)- update version of package in
package.jsonif you already didn't npm run publishfor publish (ornpm publish --access=public)
Every time check that code is working before publish!
🧪 Test package
- go to test folder
cd ./test - run
npm link ../packagefor download unpublished package - import new functionality and try it 🧐
import { newFunction } from '@bengr.digital/utils';
newFunction();- Install typescript globaly
- compile with typescript
tsc index.ts - and run with
node index.js
