npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

squizzle-nodash

v0.10.0

Published

A terse utility library based on ES5+ features.

Downloads

1

Readme

NoDash.js - a terse utility library based on ES5+ features

NoDash is yet another variant of Underscore.js and LoDash.js but with focus on:

  • Native ES5+ features - say "No" to reinventing the wheel
  • Minimum code - isolated, easy to understand functions (6 lines on average)
  • Completeness - with ajax()*, trim() and others for day-to-day development
  • Universality - work on arrays, objects (map()) and strings (first()) alike

With NoDash, you might not need another utility library and yet your bundle's size will keep fit as NoDash is smaller than Underscore and LoDash.

Size: 14K minified, 4K gzipped. Functions: 85 + 3*.

(*) Large functions: ajax(), template() and format() are part of nodash-extra.js (8K minified). Included in nodash.min.js. Usable with Underscore/LoDash too.

Dependencies

None.

Documentation

Functions reference: https://squizzle.me/js/nodash/

Compatibility table for migrating from Underscore and LoDash: https://squizzle.me/js/nodash/map.html#COMPATIBILITY

Ways to Install

$ npm install squizzle-nodash

License

Public domain. http://unlicense.org

Quick list of goodness

Originally Array functions

every function ( value, func, cx ) fill function ( value [, filler [, begin [, end]]] ) filter function ( value, func, cx ) find function ( value, func, cx ) findIndex function ( value, func, cx ) flat function ( value [, depth] ) forEach function ( value, func, cx ) includes function ( value, member [, fromIndex] ) indexOf function ( value, member [, fromIndex] ) join function ( value, glue ) lastIndexOf function ( value, member [, fromIndex] ) map function ( value, func, cx ) reduce function ( value, func [, initial ) reduceRight function ( value, func [, initial ) reverse function ( value ) slice function ( value [, begin [, end]] ) some function ( value, func, cx ) sort function ( value, func )

Originally Object functions

assign function ( ...objects ) entries function ( value ) fromEntries function ( value ) has function ( value, property ) keys function ( value ) values function ( value )

Originally String functions

endsWith function ( value, sub [, endIndex] ) escape function ( value ) escapeRegExp function ( str ) padEnd function ( value, length [, pad] ) padStart function ( value, length [, pad] ) repeat function ( value, count ) startsWith function ( value, sub [, startIndex] ) trim function ( value [, blank] ) trimEnd function ( value [, blank] ) trimStart function ( value [, blank] )

Utilities not part of any ES standard

allKeys function ( value ) at function ( value, path, default ) bind function ( func, cx, ...args ) chunk function ( value [, length] ) compact function ( value ) countBy function ( value, func, cx ) debounce function ( func, ms [, immediate] ) defer function ( func, ...args ) delay function ( func, ms, ...args ) difference function ( value, ...values ) first function ( value [, length] ) flip function ( value ) groupBy function ( value, func, cx ) indexBy function ( value, func, cx ) initial function ( value [, length] ) intersection function ( value, ...values ) invoke function ( value, method, ...args ) isArguments function ( value ) isArrayLike function ( value ) isElement function ( value ) isEmpty function ( value ) last function ( value [, length] ) max function ( value [, func [, cx]] ) min function ( value [, func [, cx]] ) negate function ( func [, numeric] ) object function ( keys [, values] ) omit function ( value, func [, cx] | value, keys | value, ...keys ) once function ( func ) partition function ( value, func, cx ) pick function ( value, func [, cx] | value, keys | value, ...keys ) pluck function ( value, property ) property function ( path, default ) random function ( [[min,] max] ) range function ( [begin,] end [, step] ) redraw function ( node [, class] ) reject function ( value, func, cx ) rest function ( value [, length] ) sample function ( value [, n] ) shuffle function ( value [, length] ) size function ( value ) sortBy function ( value, func, cx ) sum function ( value ) throttle function ( func, ms, options ) times function ( times, func, cx ) toArray function ( value ) union function ( ...values ) unique function ( value [, func [, cx]] ) unzip function ( value ) without function ( value, ...members ) zip function ( ...values )

Aliases

all → every any → some contains → includes drop → rest dropRight → initial each → forEach extend → assign findKey → findIndex flatten → flat flattenDeep function ( value ) flattenDepth → flat forOwn → forEach fromPairs → fromEntries head → first invert → flip isArray function ( value ) isEqual function ( a, b ) keyBy → indexBy mapValues → map maxBy → max minBy → min nth → at pairs → entries partial function ( func, ...args ) remove → reject sampleSize → shuffle sign function ( value ) tail → rest take → first takeRight → last toPairs → entries transform → reduce trimLeft → trimStart trimRight → trimEnd uniq → unique zipObject → object

extra.js

ajax function ( options ) format function ( [options,] str [, arg [, ...]] ) template function ( str [, options] )


Squizzle ♥ it https://squizzle.me