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

nestjs-address-module

v1.0.0

Published

A NestJS module for managing addresses

Readme

Git

$ npm run commit

Installation

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Migration

All files related migration can be found in the folder migrations.

The config.js file is used to setup various environment where the migration is run.

A fresh migration can be done by removing the schema and creatnig a new one. Step is optional if you are working on a new database.

# Drop the existing schema completely
DROP SCHEMA public CASCADE;
# Create a new schema
CREATE SCHEMA public;

# Set Time Zone
SHOW timezone;
SET timezone = 'Asia/Kolkata';

Migrating all tables to the new schema.

# Migrate all files in the main folder migrations/migrations
npx sequelize-cli db:migrate

# Migrate all files in a sub folder migrations/migrations/autoincrement
npx sequelize-cli db:migrate --migrations-path migrations/migrations/autoincrement

Note: If you want to migrate a specific file, delete name of the table from the table SequelizeMeta and run the migration for that folder.

Run Migration in Production Environment

Give Permission to db user using PgAdmin

npx sequelize-cli db:migrate --env prod

Seeding

Seed all files in the following folders:

  • Main Folder
  • Features
  • Holidays (Need to Publish once migrated)
  • Roles
# Run all seeders in the main directory migrations/migrations/seeders
npx sequelize-cli db:seed:all

npx sequelize-cli db:seed:all --env prod

# Run a single seeder in the main directory migrations/migrations/seeders
npx sequelize-cli db:seed --seed 20230509081829-employmentType.js

# Run all seeders in the directory migrations/migrations\seeders\features
npx sequelize-cli db:seed:all --seeders-path migrations\seeders\features

# Run a specific seeder in the directory migrations/migrations\seeders\features
npx sequelize-cli db:seed --seed 20230822102234-feature-user.js --seeders-path migrations\seeders\features

Data Import

  1. Download Employee file from Google Drive as CSV Create RM buddy file from the employee csv by removing all other columns and changing column names

  2. Clear the following Tables

DELETE FROM "PreviousExperiences";

DELETE FROM "LeaveRequests";

DELETE FROM "LeaveMasters";

DELETE FROM "Payscales";

DELETE FROM "RmBuddies";

DELETE FROM "UserFeatures";

DELETE FROM "Onboardings";

DELETE FROM "Profiles";

DELETE FROM "Employees";

DELETE FROM "Users" WHERE "Users"."type" != 'Developer';

Delopyment

serverless deploy --stage prod --aws-profile savi-cloud