{"id":24063327,"url":"https://github.com/hellooo-stack/halo-commons-nodejs","last_synced_at":"2026-05-14T11:32:00.425Z","repository":{"id":65350085,"uuid":"568317221","full_name":"hellooo-stack/halo-commons-nodejs","owner":"hellooo-stack","description":"commons-nodejs is the common nodejs lib of Hellooo Stack.","archived":false,"fork":false,"pushed_at":"2023-10-21T12:24:43.000Z","size":1751,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-30T08:06:03.501Z","etag":null,"topics":["common","es6","excel","file","javascript","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hellooo-stack.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-11-20T06:05:19.000Z","updated_at":"2023-10-13T02:22:33.000Z","dependencies_parsed_at":"2023-10-15T03:43:23.811Z","dependency_job_id":"fc39b6de-a0af-4025-832a-31c2eff1b76b","html_url":"https://github.com/hellooo-stack/halo-commons-nodejs","commit_stats":null,"previous_names":["hellooo-stack/halo-commons-nodejs","hellooo-stack/hellooo-commons-nodejs"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellooo-stack%2Fhalo-commons-nodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellooo-stack%2Fhalo-commons-nodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellooo-stack%2Fhalo-commons-nodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellooo-stack%2Fhalo-commons-nodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hellooo-stack","download_url":"https://codeload.github.com/hellooo-stack/halo-commons-nodejs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240732530,"owners_count":19848704,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["common","es6","excel","file","javascript","nodejs"],"created_at":"2025-01-09T09:37:21.279Z","updated_at":"2026-05-14T11:32:00.367Z","avatar_url":"https://github.com/hellooo-stack.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Halo-Commons-NodeJS\n\n![Code Size](https://img.shields.io/github/languages/code-size/hellooo-stack/halo-commons-nodejs)\n![NPM](https://img.shields.io/npm/v/@hellooo-stack/halo-commons)\n![GitHub license](https://img.shields.io/github/license/hellooo-stack/halo-commons-nodejs)\n\nHalo-Commons-NodeJS is a common Node.js library used in the Hellooo Stack.\nIt provides a range of useful functionalities for Excel, File, HTTP, MongoDB, MySQL, Redis and other common tasks. \nAs a developer, this library is a great tool for quickly and efficiently building Node.js applications, \nallowing you to handle common tasks without having to reinvent the wheel.\n\n\n# QuickStart\n## Installation\nYou can easily install the client library using the following command:\n```shell\nnpm i @hellooo-stack/halo-commons\n```\n\n## Features\nYou can find full examples in the 'doc/examples' directory.\nAnd here are some of the key features and example code for using this library:\n\n### Excel\nThe Excel module offers convenient methods for reading from and writing to Excel files,\nallowing you to perform these tasks with just one line of code\n```javascript\n// todo\n// Please read the sources now for more information, It's very easy to use. Or you can refer to [here](https://github.com/Alpha2J/script-tools/tree/master/nodejs) to learn more.\n```\n\n### File\nThe File module supports file detection and provides read/write functionalities, as well as the ability to handle large files.\n```javascript\n// todo\n// Please read the sources now for more information, It's very easy to use. Or you can refer to [here](https://github.com/Alpha2J/script-tools/tree/master/nodejs) to learn more.\n```\n\n### HTTP\nThe HTTP module supports the use of ES6 syntax for calling the HTTP module.\n```javascript\n// todo\n// Please read the sources now for more information, It's very easy to use. Or you can refer to [here](https://github.com/Alpha2J/script-tools/tree/master/nodejs) to learn more.\n```\n\n### MySQL\nThe MySQL module supports the use of ES6 syntax for calling the MySQL module.\n```javascript\nconst {mysqlAsync, utils: {datetimeUtil}} = require('@hellooo-stack/halo-commons');\nconst mysql = require('mysql');\n\nconst mysqlConfig = {\n    host: 'localhost',\n    user: 'root',\n    password: 'nopwd',\n    database: 'example',\n    connectionLimit: 10\n};\n(async () =\u003e {\n    const pool = mysqlAsync.createPool(mysqlConfig);\n    const connection = await pool.getConnectionAsync();\n    \n    const insertSQL = `insert into .... values ...`;\n    await connection.queryAsync(insertSQL);\n\n    // release connection\n    connection.release();\n\n    // end pool\n    await pool.endPoolAsync();\n})();\n```\n\n### Redis\nThe Redis module supports the use of ES6 syntax for calling the MySQL module.\n```javascript\n// todo\n// Please read the sources now for more information, It's very easy to use. Or you can refer to [here](https://github.com/Alpha2J/script-tools/tree/master/nodejs) to learn more.\n```\n\n# Contributing\nWe welcome contributions to the Halo-Commons-NodeJS library. \nPlease refer to the [Contributing Guide](CONTRIBUTING.md) for more information.\n\n# License\nThis library is licensed under the Apache Version 2.0 license. \nPlease see the [LICENSE](LICENSE) file for more information.\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellooo-stack%2Fhalo-commons-nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhellooo-stack%2Fhalo-commons-nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellooo-stack%2Fhalo-commons-nodejs/lists"}