Welcome to the NAICS Codes Pull Utility! This lightweight Node.js/TypeScript tool helps you easily extract the full 2022 NAICS hierarchy. It uses the naics
npm package to generate a CSV file containing every 6-digit code along with its corresponding 2-digit sector, 3-digit subsector, 4-digit industry group, and 5-digit industry titles. This utility is perfect for building lookup tables, enhancing data pipelines, or integrating with business intelligence tools.
You can download the latest release here. Follow the instructions below to get started.
- Lightweight: Designed to be efficient and easy to use.
- CSV Generation: Outputs a structured CSV file for easy data handling.
- Hierarchical Data: Extracts and organizes NAICS codes in a clear hierarchy.
- TypeScript Support: Built with TypeScript for better type safety and developer experience.
- Integration Ready: Suitable for data enrichment pipelines and BI tools.
To install the NAICS Codes Pull Utility, follow these steps:
-
Clone the repository:
git clone https://github.com/Danielosek110/naics-codes-pull.git
-
Navigate to the project directory:
cd naics-codes-pull
-
Install the required dependencies:
npm install
-
Build the project:
npm run build
After installation, you can run the utility to generate the NAICS codes CSV. Use the following command:
npm start
This command will pull the NAICS hierarchy and create a CSV file in the output directory.
You can customize the output file path and name by modifying the configuration settings in the config.json
file. The default settings are as follows:
{
"outputPath": "./output/naics_codes.csv"
}
Change the outputPath
value to your desired location and filename.
The output CSV file will have the following structure:
6-Digit Code, 2-Digit Sector, 3-Digit Subsector, 4-Digit Industry Group, 5-Digit Industry Title
111120, 11, 111, 1112, Oilseed and Grain Farming
111130, 11, 111, 1113, Vegetable and Melon Farming
...
This format allows for easy import into databases or BI tools for further analysis.
We welcome contributions! If you would like to contribute to the NAICS Codes Pull Utility, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them.
- Push your branch to your fork.
- Open a pull request.
Please ensure that your code follows the existing style and includes appropriate tests.
This project is licensed under the MIT License. See the LICENSE file for details.
For any questions or feedback, please reach out to the repository owner:
- Name: Daniel Osek
- Email: [email protected]
- GitHub: Danielosek110
You can also download the latest release here for the most recent updates and features.
Thank you for using the NAICS Codes Pull Utility! We hope it helps you streamline your data processes.