https://github.com/helpfulscripts/hsnode
promise wrappers for some Node modules. See
https://github.com/helpfulscripts/hsnode
colored-logging es6 hsdocs nodejs promise-wrappers rest-client typescript
Last synced: 2 months ago
JSON representation
promise wrappers for some Node modules. See
- Host: GitHub
- URL: https://github.com/helpfulscripts/hsnode
- Owner: HelpfulScripts
- License: mit
- Created: 2018-07-08T15:35:56.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-11-12T04:55:39.000Z (over 3 years ago)
- Last Synced: 2025-02-20T16:04:03.870Z (3 months ago)
- Topics: colored-logging, es6, hsdocs, nodejs, promise-wrappers, rest-client, typescript
- Language: TypeScript
- Homepage: https://helpfulscripts.github.io/hsNode/#!/api/hsNode/0
- Size: 2 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
hsNode
========
[](https://www.npmjs.com/package/hsnode)
[](https://badge.fury.io/js/hsnode)
[](https://helpfulscripts.github.io/hsNode/#!/api/hsNode/0)
[](https://github.com/HelpfulScripts/hsNode/)
[](https://codecov.io/gh/HelpfulScripts/hsNode)
[](https://snyk.io/test/github/HelpfulScripts/hsNode?targetFile=package.json)
[](https://david-dm.org/helpfulscripts/hsnode)Helpful Scripts functions that wrap some nodejs calls in Promise wrappers.
### Installation
Install `hsNode` from `npm` the standard way:
> `npm i hsnode`### [hsNode.log](https://helpfulscripts.github.io/hsNode/#!/api/hsNode/hsNode.log.Log) functions (extends on [hsUtil](https://github.com/HelpfulScripts/hsUtil) logging), adding support for
- log recordings in configurable log files
- using `transient` logging### [hsNode.Request REST-API](https://helpfulscripts.github.io/hsNode/#!/api/hsNode/hsNode.Request) with support for
- paced requests - configure limits on requests per second and max number of unresolved requests; see [hsUtil](https://github.com/HelpfulScripts/hsUtil)
- integrated, configuarble, content decoding - e.g. `str2json` or `html2json` or a a self defined decoder
- simple authentication, currently: Basic, Digest, and Token authentication
- cached requests - allowing for targeted reloads for cached responses### Promise wrappers for nodejs functions:
- `child_processs` execution
- `file system` functionsSee [docs](https://helpfulscripts.github.io/hsNode/#!/api/hsNode/0) for details