npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@robertomygo/common-modules

v0.0.10

Published

npm install @robertomygo/common-modules

Readme

Common modules

npm install @robertomygo/common-modules

NPM dependences

"@robertomygo/table" "@robertomygo/upload" "@mat-datetimepicker/core" "@mat-datetimepicker/moment" "google-libphonenumber" "intl-tel-input" "bootstrap": "bootstrap-select" "@ng-bootstrap/ng-bootstrap" "material-design-icons" "moment" "ng2-file-upload" "ngx-daterangepicker-material" "ngx-intl-tel-input": "~2.2.1" "ngx-toastr" "sweetalert2"

User module

// Add Injection in app.modules providers

providers: [
...
{
provide: 'PRODUCT_ID',
useValue: 'Your product ID'
}
...
]

// Add this in themes/default/pages-routing.module.ts

import {UserModule, addressBookRoutes} '@robertomygo/common-modules';

@NgModule({ imports: [UserModule],
exports: [UserModule]
}) export class CommonUserModule{}

const routes: Routes = [
...
{
path: addressBookRoutes.USER_ROOT,
loadChildren: './pages-routing.module#CommonUserModule'
}
...
]

// And should change all references of UserService as this

import { UserService } from '@robertomygo/common-modules';

class UserGuard implements CanActivate { isAllowedManagement(permissionType); } class UserService {

public companyID = null;

public permissions = [];

retrieveUser();

public getUserInMemory():

public saveUserInMemory(user)

resetUserInMemory()

getSelectedCompany()

public logoutUser()

public getUsers(payload = null): Promise<any>

public getAdminUsers(payload: any = null): Promise<any>

public getUserById(userID: string): Promise<UserMessage>

public delete(userID, notify = 0)

public deleteFromCompany(userID, notify = 0)

public add(payload)

public update(userID, payload)

getUserByEmail(companyId, productId, email): Promise<any>

addUserToCompany(companyID, userID): Promise<any>

addPermission(userID, permission): Promise<any>

removePermission(userID, permission): Promise<any> {

updateAllPermission(data): Promise<any>

setNetState(netState): Promise<any>

uploadProfileImage(file: File)

setDefaultLanguage(lang)

}

Admin Module

// Add this in themes/default/pages-routing.module.ts

import { AdminModule } from '@robertomygo/common-modules';

@NgModule({
imports: [AdminModule],
exports: [AdminModule]
})
export class CommonAdminModule{}

const routes: Routes = [
...
{
path: 'admin',
loadChildren: './pages-routing.module#CommonAdminModule'
}
...
]

// And should change all references of AdminService as this

import {AdminService} from '@robertomygo/common-modules';

export class AdminService {

getPermissionsList(productID = this.productID): Promise

addPermission(userID, permission)

removePermission(userID, permission)

}

Group Module

// Add this in themes/default/pages-routing.module.ts

import { GroupModule } from '@robertomygo/common-modules';

@NgModule({
imports: [GroupModule],
exports: [GroupModule]
})
export class CommonGroupModule{}

const routes: Routes = [
...
{
path: 'group',
loadChildren: './pages-routing.module#CommonGroupModule'
}
...
]

// And should change all references of GroupService as this

import {GroupService} from '@robertomygo/common-modules';

export class GroupService {

getAllGroup(payload = null): Promise

create(payload): Promise

delete(groupID): Promise

getGroupByID(groupID)

update(groupID, payload)

addUserToGroup(groupID, userID)

removeUserFromGroup(groupID, userID)

}