Prototyped.js
Common Typescript ready helpers & prototypes available for both Server-Side and Client-Side applications.
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
Table of Content
Installation
npm i -s prototyped.js
Usage
All documents are available at here
ECMAScript
Apply prototypes:
import "prototyped.js/shim";
import "prototyped.js/string/shim";
import "prototyped.js/string/words/shim";
console.log("hello world!".words());
Or just import the methods without causing any side effect:
import words from "prototyped.js/string/words";
console.log(words("hello world!"));
import string from "prototyped.js/string";
console.log(string.words("hello world!"));
import pt from "prototyped.js";
console.log(pt.string.words("hello world!"));
CommonJS
Apply prototypes:
require("prototyped.js/shim");
require("prototyped.js/string/shim");
require("prototyped.js/string/words/shim");
console.log("hello world!".words());
Or just import the methods without causing any side effect:
const words = require("prototyped.js/string/words").default;
console.log(words("hello world!"));
const string = require("prototyped.js/string").default;
console.log(string.words("hello world!"));
const pt = require("prototyped.js").default;
console.log(pt.string.words("hello world!"));
Versioning
We use SemVer for versioning. For the versions available, see
the releases on this repository.
Authors
See also the list of contributors who participated in this project.
License
This project is licensed under the MIT License - see the LICENSE file for details