Ease development with these methods for several classes' prototype.
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
benchmark
lib
selenium
test
.codecov.yml
.gitignore
.npmignore
.travis.yml
CHANGELOG.md
LICENSE
README.md
index.js
package.json

README.md

Protoblast logo Protoblast


Extend native objects with helpful methods to speed up development
Coded with ❤️ by Jelle De Loecker.

Installation

$ npm install protoblast

Documentation

For more information and API documentation, visit the Protoblast homepage.

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.

// 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.

// 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'