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

https://github.com/11ways/protoblast

🚀 JavaScript utility library
https://github.com/11ways/protoblast

Last synced: 5 months ago
JSON representation

🚀 JavaScript utility library

Awesome Lists containing this project

README

          


Protoblast logo
Protoblast





Node.js CI (Linux, MacOS, Windows)



Codecov Coverage report



Known Vulnerabilities




Latest version on npm



Project license





Extend native objects with helpful methods to speed up development



Coded with ❤️ by Eleven Ways.

## Installation

$ npm install protoblast

## Documentation

For more information and API documentation, visit the [Protoblast homepage](https://protoblast.develry.be).

## Getting Started

You can use Protoblast in 2 ways.

### Modify the native prototypes

This is the easiest way to use all the new methods & shims.
Ideal for internal or big projects.

```javascript
// Require protoblast and execute the returned function
require('protoblast')();

var str = 'Get what we want';

// New native methods, like after, will have been added
str.after('what');
// ' we want'
```

### Use bound functions

You can also get an object that has pre-bound all the new methods,
without modifying anything.

It's more verbose, but should be the way to use Protoblast in redistributable
modules.

```javascript
// Require protoblast and execute the returned function with `false` as parameter
var Blast = require('protoblast')(false);

var str = 'Get what we want';

// Native objects will have been left alone, they can be accessed like this:
Blast.Bound.String.after(str, 'what');
// ' we want'
```

## Authors

Protoblast is developed at [Eleven Ways](https://www.elevenways.be/), a team of [IAAP Certified Accessibility Specialists](https://www.accessibilityassociation.org/).