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

ts-prime

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-prime

A utility library for JavaScript and Typescript.

1.0.2
latest
Source
npmnpm
Version published
Weekly downloads
504
13.77%
Maintainers
1
Weekly downloads
 
Created
Source

alt text

The utility library designed for TypeScript.

Build Status npm module dependencies

Online documentation - here

Test coverage report - here

Installation

npm i ts-prime
yarn add ts-prime

Then in .js or .ts

import * as P from "ts-prime"; // tree-shaking supported!

Why ts-prime?

There are no universal utility libraries that fits my development need. Most of the development libraries did had function that I needed in day to day development.

ts-prime Design Goals

  • The usage must be programmer-friendly, and that's more important than following the XYZ paradigm strictly.
  • Manual annotation should never be required, and proper typings should infer everything. The only exception is the first function in createPipe.
  • E6 polyfill is required. Core methods are reused, and data structure (like Map/Set) are not re-implemented.
  • The implementation of each function should be as minimal as possible. Tree-shaking is supported by default. (Do you know that lodash.keyBy has 14KB after minification?)
  • All functions are immutable, and there are no side-effects.
  • Fixed number of arguments.
  • Designed with typescript limitations in mind

MIT

Keywords

utils

FAQs

Package last updated on 27 Apr 2024

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