Common typescript ready prototypes available in both CommonJS and ECMAScript
npm install prototyped.jsCommon Typescript ready helpers & prototypes available for both Server-Side and Client-Side applications.
[![Npm Version][npm-badge]][npm-url]
[![Build Status][build-badge]][build-url]
[![Coverage Status][coverage-badge]][coverage-url]
[![TypeScript Version][typescript-badge]][typescript-url]
[![Tested With Jest][jest-badge]][jest-url]
[![Npm Total Downloads][npm-total-downloads-badge]][npm-url]
[![Npm Monthly Downloads][npm-monthly-downloads-badge]][npm-url]
[![npm bundle size (minified)][bundle-size-badge]][npm-url]
[![npm bundle size (minified + gzip)][bundle-size-gzip-badge]][npm-url]
[![Open Issues][issues-badge]][issues-url]
[![License][license-badge]][license-url]
[![Github Stars][github-stars-badge]][github-url]
[![Github Forks][github-forks-badge]][github-url]
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
- Usage
- Versioning
- Authors
- License
- Support
``bash`
npm i -s prototyped.js
All documents are available at [here][documents-url]
Apply prototypes:
`typescript
import "prototyped.js/shim";
// or more specificaly...
import "prototyped.js/string/shim";
// or even more specificaly!
import "prototyped.js/string/words/shim";
console.log("hello world!".words()); // ['hello', 'world']
`
Or just import the methods without causing any side effect:
`typescript
import words from "prototyped.js/string/words";
console.log(words("hello world!")); // ['hello', 'world']
import string from "prototyped.js/string";
console.log(string.words("hello world!")); // ['hello', 'world']
import pt from "prototyped.js";
console.log(pt.string.words("hello world!")); // ['hello', 'world']
`
Apply prototypes:
`typescript
require("prototyped.js/shim");
// or more specificaly...
require("prototyped.js/string/shim");
// or even more specificaly!
require("prototyped.js/string/words/shim");
console.log("hello world!".words()); // ['hello', 'world']
`
Or just import the methods without causing any side effect:
`typescript
const words = require("prototyped.js/string/words").default;
console.log(words("hello world!")); // ['hello', 'world']
const string = require("prototyped.js/string").default;
console.log(string.words("hello world!")); // ['hello', 'world']
const pt = require("prototyped.js").default;
console.log(pt.string.words("hello world!")); // ['hello', 'world']
``
We use [SemVer][semver-url] for versioning. For the versions available, see
the [releases on this repository][releases-url].
- Ardalan Amini - _Core Maintainer_ - @ardalanamini
See also the list of [contributors][contributors-url] who participated in this project.
This project is licensed under the MIT License - see the [LICENSE][license-url] file for details
[documents-url]: https://prototyped.js.org
[releases-url]: https://github.com/ardalanamini/prototyped.js/releases
[contributors-url]: https://github.com/ardalanamini/prototyped.js/contributors
[semver-url]: http://semver.org
[twitter-badge]: https://img.shields.io/twitter/url/http/shields.io.svg?style=social
[twitter-url]: https://twitter.com/intent/tweet?text=Common%20Typescript%20ready%20prototypes%20available%20in%20ES5%20and%20ES6,%20Server-Side%20and%20Client-Side&url=https://github.com/ardalanamini/prototyped.js&via=ardalanamini&hashtags=prototype,nodejs,web,typescript,es5,es6,server-side,client-side,developers,fast
[npm-badge]: https://img.shields.io/npm/v/prototyped.js.svg
[npm-url]: https://www.npmjs.com/package/prototyped.js
[build-badge]: https://github.com/ardalanamini/prototyped.js/workflows/Test/badge.svg
[build-url]: https://github.com/ardalanamini/prototyped.js/actions
[coverage-badge]: https://codecov.io/gh/ardalanamini/prototyped.js/branch/master/graph/badge.svg
[coverage-url]: https://codecov.io/gh/ardalanamini/prototyped.js
[typescript-badge]: https://img.shields.io/npm/types/prototyped.js.svg
[typescript-url]: https://www.typescriptlang.org
[jest-badge]: https://img.shields.io/badge/tested_with-jest-99424f.svg
[jest-url]: https://github.com/facebook/jest
[npm-total-downloads-badge]: https://img.shields.io/npm/dt/prototyped.js.svg
[npm-monthly-downloads-badge]: https://img.shields.io/npm/dm/prototyped.js.svg
[bundle-size-badge]: https://img.shields.io/bundlephobia/min/prototyped.js.svg
[bundle-size-gzip-badge]: https://img.shields.io/bundlephobia/minzip/prototyped.js.svg
[issues-badge]: https://img.shields.io/github/issues-raw/ardalanamini/prototyped.js.svg
[issues-url]: https://github.com/ardalanamini/prototyped.js/issues?q=is%3Aopen+is%3Aissue
[license-badge]: https://img.shields.io/github/license/ardalanamini/prototyped.js.svg
[license-url]: https://github.com/ardalanamini/prototyped.js/blob/master/LICENSE
[github-stars-badge]: https://img.shields.io/github/stars/ardalanamini/prototyped.js.svg?style=social&label=Stars
[github-forks-badge]: https://img.shields.io/github/forks/ardalanamini/prototyped.js.svg?style=social&label=Fork
[github-url]: https://github.com/ardalanamini/prototyped.js