{"id":36595619,"url":"https://github.com/cryptlex/csv-importer","last_synced_at":"2026-01-12T08:28:29.749Z","repository":{"id":39449022,"uuid":"131952170","full_name":"cryptlex/csv-importer","owner":"cryptlex","description":"An example Node.js script that imports licenses into your Cryptlex account from a CSV file.","archived":false,"fork":false,"pushed_at":"2025-08-12T04:41:00.000Z","size":23,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-12T06:23:53.823Z","etag":null,"topics":["csv-import","license-import","license-keys"],"latest_commit_sha":null,"homepage":"https://cryptlex.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cryptlex.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-03T06:36:10.000Z","updated_at":"2021-01-13T09:20:36.000Z","dependencies_parsed_at":"2022-08-29T19:01:14.228Z","dependency_job_id":null,"html_url":"https://github.com/cryptlex/csv-importer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cryptlex/csv-importer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptlex%2Fcsv-importer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptlex%2Fcsv-importer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptlex%2Fcsv-importer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptlex%2Fcsv-importer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cryptlex","download_url":"https://codeload.github.com/cryptlex/csv-importer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptlex%2Fcsv-importer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28337595,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T06:09:07.588Z","status":"ssl_error","status_checked_at":"2026-01-12T06:05:18.301Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csv-import","license-import","license-keys"],"created_at":"2026-01-12T08:28:29.680Z","updated_at":"2026-01-12T08:28:29.744Z","avatar_url":"https://github.com/cryptlex.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# csv-importer\nA Node.js utility to import CSV data (users, organizations, and licenses) into Cryptlex.\n\n## Features\n- Imports data from CSV files\n- Creates users, organizations, and licenses based on CSV content\n- Handles duplicate checks for organizations\n- Supports metadata for licenses\n- Logs operations to a file\n\n## Prerequisites\n- Node.js installed\n- Access token for API authentication\n- CSV files with an appropriate data structure\n\n## CSV File Requirements\n\n### Organization CSV\n- Must include:\n  - name\n  - email\n  - allowedUsers\n\n### User CSV\n- Must include:\n  - firstName\n  - lastName\n  - email\n\n### License CSV\n- Must include:\n  - key\n- Optional:\n  - allowedActivations\n  - expiresAt\n  - createdAt\n  - subscriptionInterval\n  - order_id (will be added as metadata)\n  - firstName (user details)\n  - lastName\n  - email\n\n## Usage\n\n1. Configure the following variables :\n   - `ACCESS_TOKEN`: Your Cryptlex API access token\n   - `API_BASE_URL`: The Cryptlex API base URL\n   - `PRODUCT_ID`: The ID of the product to associate licenses with\n   - `CSV_FILE_PATH`: The path to the CSV file with the data. The file name should begin with organization or license, or user.\n2. Prepare your CSV file with the required fields\n3. npm i\n4. Run the importer:\n   ```\n   node main.js\n   ```\n\nThe script will automatically detect the type of resource to create based on the CSV filename:\n- Files starting with 'organization' will create organizations\n- Files starting with 'user' will create users\n- All other files will be treated as license imports\n\n## Logging\nOperations are logged to a file for tracking and debugging purposes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcryptlex%2Fcsv-importer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcryptlex%2Fcsv-importer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcryptlex%2Fcsv-importer/lists"}