You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

prototyped.js

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prototyped.js

Common typescript ready prototypes available in both es5 and es6

0.8.0
Source
npmnpm
Version published
Weekly downloads
1.3K
193.07%
Maintainers
1
Weekly downloads
 
Created
Source

Prototyped.JS

Common Typescript ready prototypes available in ES5 and ES6, Server-Side and Client-Side

npm version typescript version build status Coverage Status package quality npm downloads npm monthly downloads open issues closed issues tested with jest known vulnerabilities dependencies status pull requests license github stars github stars

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

// es5 (default)
require('prototyped.js');
import 'prototyped.js';

// es6
require('prototyped.js/es6');
import 'prototyped.js/es6';

console.log('hello world!'.words()); // ['hello', 'world']

or simply import the prototypes you want

require('prototyped.js/dist/string');
// or
require('prototyped.js/dist/string/words');

console.log('hello world!'.words()); // ['hello', 'world']

even better, just import the method you want

const words = require('prototyped.js/dist/string/words/method');

console.log(words('hello world!')); // ['hello', 'world']

const methods = require('prototyped.js/dist/methods');

console.log(methods.string.words('hello world!')); // ['hello', 'world']

All documents are available at API.md

Support

If my work helps you, please consider

Buy Me A Coffee

Keywords

server-side

FAQs

Package last updated on 25 May 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts