More than 100
useful methods collected in one place
if you have a method you think needs to be a part of this package, feel free to contribute
Installation
npm i -s prototyped.js
Usage
import all prototypes
require('prototyped.js');
import 'prototyped.js';
require('prototyped.js/es6');
import 'prototyped.js/es6';
console.log('hello world!'.words());
or simply import the prototypes you want
require('prototyped.js/dist/string');
require('prototyped.js/dist/string/words');
console.log('hello world!'.words());
even better, just import the method you want
const words = require('prototyped.js/dist/string/words/method');
console.log(words('hello world!'));
const methods = require('prototyped.js/dist/methods');
console.log(methods.string.words('hello world!'));
All documents are available at API.md
Support
If my work helps you, please consider