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 🙏

© 2024 – Pkg Stats / Ryan Hefner

excel-column-mapper

v1.3.0

Published

Step 1: Installation of the Library Open your command line interface and execute the following command:

Downloads

20

Readme

ExcelColumnMapper - Created By Sagar Pandey from ACS Infotech Pvt.Ltd.

Step 1: Installation of the Library Open your command line interface and execute the following command:

"npm install excel-column-mapper"

This will install the required library for mapping Excel columns.

Step 2: Import in Module Import the library into your module where you intend to use it. import { ExcelColumnMapperModule } from 'excel-column-mapper'; also add it in imports section of your module.

Step 3:

In your HTML file, use the following syntax to incorporate the Excel Column Mapper component: Make sure to adjust the properties accordingly.

<app-excel-mapper class="" [MapColumn]="mapColumn" [MainHeading]="mainHeading" [showHeaderValues]="ShowHeaderValues" [showDataTable] = "ShowTable" [btnTitle] = "BtnTitle" [columnHeaders]="columnHeaders" [selectSheetHeading] = "SelectSheetHeading" [CHUNK_SIZE]="chunkSize" (OutputJSON)="handleOutputJSON

• mapColumn: Specify the mapping of Excel columns. For example, 'EmpCode:Product Code' maps 'EmpCode' column to 'Product Code'. • MainHeading: Set the main heading for the component. • showHeaderValues: Boolean value to determine whether to display header values. • showDataTable: Boolean value to determine whether to display the data table. • btnTitle: Set the title for the upload button. • columnHeaders: Provide an array of column headers. • (OutputJSON): Capture the output JSON data by binding to this event. • selectSheetHeading: There is DropDown heading to allow user to select the sheetname you can dynamically change it's heading through this. • CHUNK_SIZE: This is to dynamically set the size of max chunks of data If there is so much data in excel it will be seprated with 100 (size it as per your requirement) rows in each json and return the data in an array form with all these chunks.

Step 4: Declaring Properties :

Declare the necessary properties in your component and assign values according to your requirements.

Here's an example:

columnHeaders: string[] = ['EmpCode', 'EmpName']; mapColumn: string[] = ['EmpCode:Product Code','EmpName:Customer Name']; mainHeading: string = "Map Excel Column"; ShowHeaderValues: boolean = true; ShowTable: boolean = true; BtnTitle: string="Upload Data"; SelectSheetHeading:string='Select Sheets'; chunkSize: number=100;

That's it you are good to go.