🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

pfiff

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

pfiff

Faster, smaller, fully compatible Lodash alternative

unpublished
latest
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

pfiff

PLEASE NOTE THAT THE PROJECT IS IN DEVELOPMENT AND IS NOT YET A REPLACEMENT FOR LODASH

pfiff is a faster and smaller, yet fully compatible Lodash alternative. You'll whistle at how awesome it is!

  • pfiff is fast. Benchmarks coming soon
  • pfiff is small. All extreme edge-case code of Lodash is gone
  • pfiff is pure. Method arguments are never mutated
  • pfiff is modern. It is written explicitely in ES6
  • pfiff is safe. It is written in TypeScript and heavily tested

Install

Node

yarn add pfiff
# or
npm install pfiff

Browsers

<script src="https://cdn.jsdelivr.net/npm/pfiff/dist/pfiff.min.js"></script>

Usage

pfiff can be used as a drop-in replacement for Lodash:

import * as _ from "pfiff";
// or, if you really want to:
// const _ = require("pfiff");

const chunkedArray = _.chunk([1, 2, 3, 4, 5], 3); //=> [[1, 2, 3], [4, 5]]

You can also import each method separately to embrace the power of tree-shaking:

import { chunk } from "pfiff";

const chunkedArray = chunk([1, 2, 3, 4, 5], 3); //=> [[1, 2, 3], [4, 5]]

FAQs

Package last updated on 20 May 2020

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