https://github.com/rcmedeiros/prototypes
Common generic prototypes for Nodejs
https://github.com/rcmedeiros/prototypes
javascript library owasp owasp-top-10 productivity-booster prototypes prototypes-helpers typescript
Last synced: 5 months ago
JSON representation
Common generic prototypes for Nodejs
- Host: GitHub
- URL: https://github.com/rcmedeiros/prototypes
- Owner: rcmedeiros
- License: agpl-3.0
- Created: 2019-05-11T09:31:08.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T16:58:07.000Z (over 2 years ago)
- Last Synced: 2025-02-12T12:42:46.910Z (5 months ago)
- Topics: javascript, library, owasp, owasp-top-10, productivity-booster, prototypes, prototypes-helpers, typescript
- Language: JavaScript
- Homepage: https://rcmedeiros.github.io/prototypes
- Size: 890 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @rcmedeiros/prototypes

[](https://codecov.io/gh/rcmedeiros/prototypes)
[](https://sonarcloud.io/dashboard?id=prototypes)
[](https://sonarcloud.io/dashboard?id=prototypes)
[](https://sonarcloud.io/dashboard?id=prototypes)
[](https://sonarcloud.io/dashboard?id=prototypes)
[](https://sonarcloud.io/dashboard?id=prototypes)General purpose JavaScript prototypes library.
Use it if you...
* Must comply with [OWASP](https://www.owasp.org/index.php/Top_10-2017_Top_10) or [SANS](https://www.sans.org/top25-software-errors) and would avoid using any method which accept regular expressions as argument;
* Customize dates representation but not that much to justify a heavy specialized package;
* Do lots of `Math` functions;
* 're just lazy :)This package comes with no dependencies whatsoever. You'll only add the  from the source code.
The module comes with its [Declaration File](https://www.typescriptlang.org/docs/handbook/declaration-files/introduction.html), meaning it can be imported seamlessly to a TypeScript project.
## Install
`npm install --save @rcmedeiros/prototypes`
## Usage
Just import it in the first module your package loads, maybe index.js/ts. No need to keep reference.
TypeScript typings are included.
```typescript
import '@rcmedeiros/prototypes';
```## Reference
For detailed documentation, visit