Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: 6 days ago
JSON representation

Common generic prototypes for Nodejs

Awesome Lists containing this project

README

        

# @rcmedeiros/prototypes

![CircleCI branch](https://img.shields.io/circleci/project/github/rcmedeiros/prototypes/master.svg)
[![codecov](https://codecov.io/gh/rcmedeiros/prototypes/branch/master/graph/badge.svg)](https://codecov.io/gh/rcmedeiros/prototypes)
[![Code Smells](https://sonarcloud.io/api/project_badges/measure?project=prototypes&metric=code_smells)](https://sonarcloud.io/dashboard?id=prototypes)
[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=prototypes&metric=sqale_rating)](https://sonarcloud.io/dashboard?id=prototypes)
[![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=prototypes&metric=reliability_rating)](https://sonarcloud.io/dashboard?id=prototypes)
[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=prototypes&metric=security_rating)](https://sonarcloud.io/dashboard?id=prototypes)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=prototypes&metric=alert_status)](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 ![npm bundle size (scoped)](https://img.shields.io/bundlephobia/min/@rcmedeiros/prototypes.svg) 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