1.1.4 • Published 5 months ago
iqair-common v1.1.4
iqair-common
Shared common library for IQAir utility functions
Get started
Download the package from NPM
npm install iqair-common
Import the functions you need from the right sub-packages
Example with objects
// example.ts
import { objectKeys } from 'iqair-common/objects'
const user = {
name: 'user',
age: 30,
id: 'some-id'
}
const keys = objectKeys(user)
List of packages
date
dom-utils
extra-types
http
icons
keyboard
objects
strings
Build
Run npm run build:common
to build the project.
Build & Publish
- Bump the version:
npm version major|minor|patch
Build the library:
ng build common
The build artifacts will be stored in thedist/common
directory.Publish to NPM: go to the dist folder
cd dist/common
runnpm publish
Running unit tests
Run ng test common
to execute the unit tests via Karma.