@bengr.digital/utils
v1.2.3
Published
Npm package with utils functions. Ready to use with JavaScript or TypeScript
Downloads
2
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 compile
for compile (ornpx tsc
)- update version of package in
package.json
if you already didn't npm run publish
for 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 ../package
for 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