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

@hoangcung1804npm/quibusdam-non-dignissimos

v1.0.0

Published

[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT) ![Build](https://github.com/hoangcung1804npm/quibusdam-non-dignissimos/workflows/Npm%20deploy/badge.svg) ![Version](https://img.shields.io/npm/v/@hoa

Downloads

6

Maintainers

hoangcung1804hoangcung1804

Keywords

querystringcomputed-typesTypedArrayredactrfc4122runtimeFloat64ArrayperformantwhichjwtArray.prototype.flatapollodeep-cloneESnextform-validationelbdebugcomparebundlerpipeeslintconfigelmasyncjsdiffcolumnwaitURLObject.entriestelephonenodejsfixed-widthvariableshas-own__proto__awaitwritableflatenvironmentrangeerrorwatchingenumerablefetchexpresshigher-orderconcurrencycss variableloadinglockfiledomRegExp#flagscss-in-jsprotobufjsdombcryptdatastructurezeroCSSStyleDeclarationloggingmimenegative zerotslibsyntaxerrorRFC-6455make direcmascriptconcatMapregular expressionsendertypedcoreaccessibilityresolvedeepcopyinputJSONregexpes6objectimmutablesequenceproxycollection.es6PushmodulesforEachSymbol.toStringTagargvreact-hook-formbindstreamdircloudwatchperformancefullwidthvalidES2022busyuplesscssstringifyfiltertapeECMAScript 2022sidetypedarrayenvkeysparsingwhatwgwidthArray.prototype.findLastelectrones-shimsmodulereuseECMAScript 2015charactertypejsonpathxhrsuperstructautoprefixerclass-validatorcommanderutilitiesECMAScript 2016languagecoerciblesyntaxInt8ArraySetpropertiesbreakutilityECMAScript 2023flagtypesStyleSheetiamgenericsmkdirshookformES5Mapreadbundlingwritepropertycss lesscloudtrailstreams2deep-copyObservableless mixinschannellengthincompilerglobmaptypeerrorbrowserlisthasOwnArray.prototype.includeslocationtrimRight[[Prototype]]arrayArray.prototype.flatMapes5phoneminimalless compilerboundqueryfast-deep-clonepreserve-symlinkskoreanstoragegatewayimportexporttraverseeventDispatcherweakmapfilewatcherpushfolderprotoescapefunctionsUnderscoreWebSocketstate@@toStringTagsymbolformslicecorsbrowserslistES6queueMicrotaskes-shim APIUint16ArraytoSortedequalityArrayBuffer#slicefindLastIndexrapidincludesfindLastindicatorobjmonorepoArray.prototype.containsjsjsxthroatwebremovecall-boundpicomatchRxJSstarteremojipathexecequalrecursiveidleconsoleFunction.prototype.nameclassnamesinferencemochafastclonehttptc39tostringtagmetadataclassesWeakSetserializestreamsswfschemeclassnamermparseBigInt64ArraytoArraycontainsObject.definePropertyYAMLhotcallbackfromroutingECMAScript 2018estrimEnddiffapiconnectslotprettypasswordtyped arraysetinstallerECMAScript 2020sharedroute53callfseventsmatchestestermatchAllpromisechromedotenvcurlpostcssHyBikeyless.jslintgetterserializationUint8Arraylook-upfigletespreestdlibmakeiddeepclonepatchoptionbatchcolumnsparentartparentsweaksettscolorflattenmkdirinvariantspinnersagentfast-clonejavascriptpackage.jsonprunergbdeterministichooksrandomcircularstyleguideArray.prototype.flattenmomentchaibuffercryptes2016nodeendpointmkdirpfile systemReflect.getPrototypeOfpackage managerroutewalkingtypedarraysargsprefixauthstructuredClonesham_.extendcode pointstoobjectclientArrayBufferqsarktypeintrinsicdropeslint-pluginnoperateemrwafes2015es-abstractprivate dataArrayvalidatewordwrapspecESomitelasticachedefinePropertytoolsObject.fromEntriesflagsoptimizercloneconfigurableasciiwordbreakframeworkfastvalueassertsdataViewuuidcodesreplaycliassertioneslintFloat32ArraycallboundlooklazygetOwnPropertyDescriptorObject.keyslastsqsyupdom-testing-libraryopenES2016unicodePromisestyled-componentsTypeScriptCSSwarningxtermsimpledbnamesutil.inspectECMAScript 6chineseiteratorless cssamazonajaxsameValueZeroreal-timeECMAScript 2017privateECMAScript 5emit0postcss-pluginsharedarraybufferisiterationansimovepositivepropkinesisgetoptUint8ClampedArrayfsebszodWebSocketsencryptionsearchcharacterstypeofprototypepredictablecloudformationreducehasWeakMapdescriptionRegExp.prototype.flagsawesomesauceArrayBuffer.prototype.sliceworkerInt32ArrayjQueryeveryinternalloggersortedentriesdeepfindvisualloadbalancingpackagesa11yObject.isstablejoivestdategroupsymbolsterminalshellinternal slotonceES2023avaerrorvariables in cssautoscalingjasminedirectoryfastcopyrequesttypesafeES2018ES7polyfilleast-asian-widthstringifierObject.assigndescriptorURLSearchParamscacheutiloffsetawsgroupBycssnpmsomefluxbootstrap csscolorsec2deletegetPrototypeOfstringtypanionfast-copyl10ncjkString.prototype.trimObservableslistenerswalkconsumetextquoteregexnested csscreatestylingairbnbasttestgdprchromiumlinewrapECMAScript 2019mergeviewprogresses2017rm -frextensionshebangArray.prototype.findLastIndexextendreact-testing-librarybootstrap lesswatcharrayspnpm9full-widthpreprocessorplugincolourObject.valuesrobustdynamodbmimetypesbyteLengthratelimitlrufunctionless-0httpsECMAScript 7dependency managerdefineexpressionbrowserreduxRxlimitedeslintpluginformattingregularprotocol-buffersajvvpcsesmixinsString.prototype.matchAllargparsecollectionbanneres7watchFiledatamapreduceassignreact-hooksredux-toolkitjesttrimsuperagentdependenciescopypersistentbddbuffersconfigcallbindlimittakecloudfrontdataviewtermES2021checkhelpersfullsetPrototypeOfshimassertbluebirdSymbolcommandTypeBoxwgetwrapreducermiddlewaretaskieworkspace:*Streamsfast-deep-copyfindupmime-dbiterateworkflowgraphqldescriptorsurlduplexoptimistrdsfind-upstylesefficientcommand-lineponyfilli18nsafeoutputsetImmediateES2017isConcatSpreadableshrinkwrapmatcharraybufferstylesheetIteratorbyteOffsetES2015hashcloudsearchscheme-validationbeanstalkcensordayjsgradients css3.envECMAScript 3spinnersnsArray.prototype.filtersortttysymlinkscss nestingparserglaciermrureadablestreamextraestreefpstimeObjectio-tsStreamnumberrequirecompile lessreactformatvalidationcore-jshardlinkskarmamobiletrimStartObject.getPrototypeOftypescripttoStringTagrm -rfnativestyle256ES8libphonenumberReactiveXqueueES2020throttlegettoolkit

Readme

@hoangcung1804npm/quibusdam-non-dignissimos

License: MIT Build Version Known Vulnerabilities GitHub last commit (branch) npm npm total codecov

Blazing fast, tree-shakeable, type-safe, modern utility library to sort any type of array

Docs : https://@hoangcung1804npm/quibusdam-non-dignissimos.netlify.com/

Getting started

installation

The library is available as a npm package. To install the package, run:

npm install @hoangcung1804npm/quibusdam-non-dignissimos
# or
yarn add @hoangcung1804npm/quibusdam-non-dignissimos

Start using:

import {byString} from '@hoangcung1804npm/quibusdam-non-dignissimos'

const unsorted = ["xxx", "bbbb", "zzz", "cccc", "aaa"];
const sorted = unsorted.sort(byString());

console.log(sorted); //(5) ["aaa", "bbbb", "cccc", "xxx", "zzz"]

Use directly in the browser


<script src='https://cdn.jsdelivr.net/npm/@hoangcung1804npm/quibusdam-non-dignissimos/dist/index.umd.js'></script>
<script>
  const unsorted = ["xxx", "bbbb", "zzz", "cccc", "aaa"];
  const sorted = unsorted.sort(sort.byString());

  console.log(sorted); //(5) ["aaa", "bbbb", "cccc", "xxx", "zzz"]
</script>

//or via browser modules

<script type='module'>
  import {byString} from 'https://cdn.jsdelivr.net/npm/@hoangcung1804npm/quibusdam-non-dignissimos/dist/index.mjs'

  const unsorted = ["xxx", "bbbb", "zzz", "cccc", "aaa"];
  const sorted = unsorted.sort(byString());

  console.log(sorted); //(5) ["aaa", "bbbb", "cccc", "xxx", "zzz"]
</script>

Some mind-blowing example

sort by a single property

//js or ts file
import {byValue, byNumber, byString} from '@hoangcung1804npm/quibusdam-non-dignissimos'

const arrayUnsorted = [
  {prop: "xxx", foo: 34},
  {prop: "aaa", foo: 325},
  {prop: "zzz", foo: 15},
  {prop: "ccc", foo: 340},
  {prop: "bbb", foo: 0}
];

//this sort by the foo property ascending
const sortedByFoo = arrayUnsorted.sort(byValue((i) => i.foo, byNumber()));
console.log(sortedByFoo); //(5) [{prop: "bbb", foo : 0}, {prop: "zzz", foo: 15}, .....];

//this sort by the prop property descending
const sortedByProp = arrayUnsorted.sort(byValue((i) => i.prop, byString({desc: true})));
console.log(sortedByProp); //(5) [{prop: "zzz", foo : 15}, {prop: "xxx", foo: 34}, .....];

sort by a multiple property

//js or ts file
import {byNumber, byString, byValues} from "@hoangcung1804npm/quibusdam-non-dignissimos";

const objsToSort = [
  {id: 2, name: 'teresa'},
  {id: 3, name: 'roberto'},
  {id: 2, name: 'roberto'}
];

//i sort by THEIR NAMES and THEN by their ids
const sortedObject = objsToSort.sort(byValues([
  [(x) => x.name, byString()],
  [(x) => x.id, byNumber()]
]));

console.log(sortedObject); //[{roberto, 2}, {roberto, 3}, {teresa, 2}];

//i sort by THEIR IDS and THEN by their names
const sortedObject2 = objsToSort.sort(byValues([
  [(x) => x.id, byNumber()],
  [(x) => x.name, byString()]
]));
console.log(sortedObject2); //[{roberto, 2}, {teresa, 2}, {roberto, 3}];

//i sort by THEIR IDS and THEN by their names DESCENDING
const sortedObject3 = objsToSort.sort(byValues([
  [(x) => x.id, byNumber()],
  [(x) => x.name, byString({desc: true})],
]));
console.log(sortedObject3); //[{teresa, 2}, {roberto, 2}, {roberto, 3}];

typescript types check

//ts file
import {byValue, byNumber, byString} from '@hoangcung1804npm/quibusdam-non-dignissimos'

const objsArray = [{numbProp: 2, stringProp: 'a'}, {numbProp: 3, stringProp: 'f'}];

//Incorrect sort property 
const incorrectSortedArray = objsArray.sort(byValue(i => i.numbProp, byString()));
//ts check error : Type 'number' is not assignable to type 'string'.

//Correct sort type
const sortedArray = objsArray.sort(byValue(i => i.numbProp, byNumber()))
//ts check ok

See full Docs

@hoangcung1804npm/quibusdam-non-dignissimos.netlify.com

License

MIT © Cosimo chellini