https://github.com/11ways/protoblast
🚀 JavaScript utility library
https://github.com/11ways/protoblast
Last synced: 5 months ago
JSON representation
🚀 JavaScript utility library
- Host: GitHub
- URL: https://github.com/11ways/protoblast
- Owner: 11ways
- License: mit
- Created: 2014-06-18T15:17:12.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2026-01-20T22:59:27.000Z (6 months ago)
- Last Synced: 2026-01-21T06:53:41.609Z (6 months ago)
- Language: JavaScript
- Homepage: https://protoblast.develry.be
- Size: 1.89 MB
- Stars: 3
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Protoblast
Extend native objects with helpful methods to speed up development
## 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/).