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

@teamteanpm2024/eos-eaque-accusamus

v1.0.6

Published

Downloads

11

Maintainers

shivamkalsi2024shivamkalsi2024

Keywords

channellimitedasciitakereusepropietaskavadescriptorsqueryextendreduxlengthdirectorykarmaWebSocketsfssanitizeless mixinsWeakSetrecursiveutilitiesjsxomitreact animationframerPushstylecurlvariableslistenersdomdefinePropertyduplexwarningbundlerjsonpathArray.prototype.containsless.jscoercibletoobjectcharactercolourprotobufFunction.prototype.nameobjectSymbolvaluehttpspluginargsgetoptRxJSformatboundsanitizationoptimistdirimportpersistentshrinkwrapvaluesStreamoptionebsECMAScript 2017fastifymergeES3optimizerbreakoutputes7workerregular expressionsmomenttermRegExp.prototype.flagsgradients css3reduceArray.prototype.flatconfigurableESrapidenvmake dirserializecloudtrailfilterpushnegative zeroutilityschemeregexplazyinferencevarhandlersconnectchromiumeslint-plugin256Uint16ArrayprefixbuffersYAMLarraybufferObjectisConcatSpreadablejson-schematslibstylesheet$.extendregularweaksetgetPrototypeOffastes2018autoprefixer.envwordbreakES2015debugworkspace:*reacttypescriptclass-validatorECMAScript 2023serializationagentopendeep-cloneSymbol.toStringTagstringifybcrypttostringtagmimeramdatrimEndspringflattenrm -rfstartercss nestingconfigbrowserlist0descriptionfastcloneobjflatlinkES2020elasticacheString.prototype.matchAllurlsetpromiseharmonyglaciertranspilerwatchESnextpolyfillredactcallboundInt16Arraycssremovegradients csshashargvmakequeueMicrotaskemrpackage managercodesdeterministiccryptgdprfind-uploggingCSSjson-schema-validatorfindES2019Reflect.getPrototypeOfbrowserlogECMAScript 2016pipecoretelephonedeep-copycurriedemojiWeakMapcolorsproxyfigletArray.prototype.filterfast-deep-copymochacjksymlinkreadablestreamjsdiffkeyECMAScript 2020dotenvendpointmatchAllswfpositiveoffsetFloat32ArraycolumnmatchesimportexportMicrosoftlastlesscssnameObservablezeronpmlanguagepackage.jsonmatchmetadataextensionfp[[Prototype]]computed-typesiteratorfindLaststylescommand-lineglobdayjssignalscloudwatchbrowserslistjasmineconstsesObject.isdom-testing-librarysqsObject.fromEntriesstyleguidecompile lessidleloadbalancingTypedArrayparentsECMAScript 6getOwnPropertyDescriptorcompareObject.valuespreserve-symlinkspackagegestureswalkingtraverserequestinternal slotwalkECMAScript 2022Object.keysclassnamesmixinsthrottleURLSearchParamscreateyupcolumnsclonestatelessarraysequalityresolvegetxssredux-toolkitfunctionsserializerObject.definePropertyoperating-systemtrimbyteLengthaccessibilityrandomHyBiiterateamazonawsstoragegatewaylinuxvisualprotomruapinodejsjsonschemaES8__proto__sideencryptionBigUint64ArrayPromisecontainsfromutilargparsebalancedtoolswatchFileformshimreact-testing-librarycachefpsgetterwhatwgdeepcloneeveryjapanesermdirjavascripterrorimmutableeslintpluginmkdirpvestformsbluebirdless compilertypeseslintjsarraydependency manageres2015lockfilerfc4122utilsUint32Arraycircularutil.inspectescapecloudfronttypecall-bindscheme-validationObject.entriespromisesesastcore-jsloggergenericscallindicatorposepicomatchvalidstreams2fast-clonees2016private datatapsuperstructtranspileviewFloat64Arraypoint-freemapcorssuperagentObject.getPrototypeOfelectronsignalfunctionObject.assignuninstallsyntaxerrorintrinsicdatewaapispecdragenvironmenttsguidcall-boundrequireasyncautoscalingtddECMAScript 2015URLdatacommandes-abstractsharedstableroute53estreeprogresscheckvalidatewhichdataviewperformancequerystringslicetacitprototypexhrstyled-componentsmkdirsexpressES5-0typed arraytypedarraysbuffertypaniontoolkitincludesgroupBypopmotionflagsparsingextraemitpasswordRFC-6455formattingWebSocketcompilercollection.es6Uint8Arrayqueuextermawaitflagstreamspostcss-pluginES2016mkdirspinnerssettingsnopeBigInt64Arrayawesomesaucesequencehasyamlnativecloudformationassertionsearchzodexecec2RxconcatMaptrimStartstylinginvariantchromeairbnbterminalwafajaxkeystouchbusyonceclianimationhttpclassnamegroupfantasy-landentriesconsumemonorepoReactiveXthreesimpledbstatustimeenumerablefolderassignartcryptol10npropertyruntimeflatMapweakmapjoicolordynamodbirqcensornameseast-asian-widthfullpathfull-widthfastcopymulti-packagehooksshebangiamstringhardlinkssymbolprocessminimalmimetypesgetintrinsicinterruptstypedJSONbootstrap lessmiddlewarefinduplessStreamseventDispatchermodulesES2022ECMAScript 2021a11yArrayBufferinputinspectarktypeajvregexconcatcallbackmapreducephonevpcbabel-coreparserInt8Arrayassertscss lessfile systemdropES2021sortedbindjsdomconsolefseventsECMAScript 7mime-dbmacosArrayBuffer.prototype.slicedatastructurethroatES2018limitwritedeletediffauthrgbeslintconfigvariables in csseventsratelimittypeerrorvalidatorTypeScriptquotefixed-widthbannertestefficientdeepbeanstalkdebuggerbabelexit-coderegular expressionloadingequaluuidreadbootstrap csswebtoArrayfast-deep-clonewordwrapes8hookformtesteres2017fileAsyncIteratorstreamStyleSheetframeworkreact-hook-formObservablesspinnerimmeres5deepcopyjson-schema-validationsigintponyfillArray.prototype.findLastsymbolsjsonassertbytepreprocessorprotocol-bufferses-shim APIparentbddio-tsnegativeslotsetterunicodes3String.prototype.trimtypeoferror-handlinginstallertapetestingrdssetImmediateECMAScript 5patchIteratorsyntaxrobustsortTypeBoxbyteOffsetInt32ArraykoreanpackagestypesafermdataViewlooksymlinksratepostcssES2017ArraypurewidthnumberchaiiterationCSSStyleDeclarationECMAScript 3watchingMapmobileletwrapprettycss variableenderreal-timereact poselrubatchconcurrencymoduletextwritablenested csselbclasses@@toStringTagRegExp#flagsprunesomeES7shamfast-copyecmascriptECMAScript 2018ttyrm -frfunctionaltrimRight6to5lintES6wgetnodeargumenttrimLefteventEmitterreact-hookscode pointsschemareducerES2023exitreadabletypedarraysetPrototypeOfdefineArrayBuffer#sliceauthenticationless cssArray.prototype.includessigtermtoSortedlinewrapvalidation

Readme

🕉 @teamteanpm2024/eos-eaque-accusamus

💎 Install

pnpm add @teamteanpm2024/eos-eaque-accusamus

🤓 Unit Tests

Statements

🙏 Description

  • Simple function that recieves a Date object that is in the future or is in the past and gives back the relative time using Intl.RelativeTimeFormat('en', { numeric: 'auto' })
  • Examples: [ "last year", "6 months ago", "4 weeks ago", "7 days ago", "now", "in 1 minute", "in 6 hours", "tomorrow", "in 3 days", "in 4 weeks", "next month", "in 2 months", "in 12 months", "next year" ]

💚 Examples

import { getRelativeTime } from '@teamteanpm2024/eos-eaque-accusamus'

const d1 = new Date()
d1.setDate(d1.getDate() - 450)
getRelativeTime(d1) // last year

const d2 = new Date()
d2.setDate(d2.getDate() - 180)
getRelativeTime(d2) // 6 months ago

const d3 = new Date()
d3.setDate(d3.getDate() - 30)
getRelativeTime(d3) // 4 weeks ago

const d4 = new Date()
d4.setDate(d4.getDate() - 7)
getRelativeTime(d4) // 7 days ago

getRelativeTime(new Date()) // now
getRelativeTime(new Date((new Date()).getTime() + 60000)) // in 1 minute
getRelativeTime(new Date((new Date()).getTime() + 360 * 60000)) // in 6 hours
getRelativeTime(new Date((new Date()).getTime() + (1440 * 60000))) // tomorrow
getRelativeTime(new Date((new Date()).getTime() + (3 * 1440 * 60000))) // in 3 days
getRelativeTime(new Date((new Date()).getTime() + (28 * 1440 * 60000))) // in 4 weeks
getRelativeTime(new Date((new Date()).getTime() + (35 * 1440 * 60000))) // next month
getRelativeTime(new Date((new Date()).getTime() + (60 * 1440 * 60000))) // in 2 months
getRelativeTime(new Date((new Date()).getTime() + (365 * 1440 * 60000))) // in 12 months
getRelativeTime(new Date((new Date()).getTime() + (400 * 1440 * 60000))) // next year

🔥 Errors we may throw

  • getRelativeTime()
if (!(date instanceof Date) || date.toString() === 'Invalid Date') throw { id: 'fln__get-relative-time__invalid-date', message: 'Please pass getRelativeTime() a valid date object', _errorData: { date } }

🎁 All Our Packages

  1. @feelinglovelynow/datetime-local: NPMGithub
  2. @feelinglovelynow/dgraph: NPMGithub
  3. @feelinglovelynow/env-write: NPMGithub
  4. @feelinglovelynow/get-form-entries: NPMGithub
  5. @teamteanpm2024/eos-eaque-accusamus: NPMGithub
  6. @feelinglovelynow/global-style: NPMGithub
  7. @feelinglovelynow/jwt: NPMGithub
  8. @feelinglovelynow/loop-backwards: NPMGithub
  9. @feelinglovelynow/slug: NPMGithub
  10. @feelinglovelynow/svelte-catch: NPMGithub
  11. @feelinglovelynow/svelte-kv: NPMGithub
  12. @feelinglovelynow/svelte-loading-anchor: NPMGithub
  13. @feelinglovelynow/svelte-modal: NPMGithub
  14. @feelinglovelynow/svelte-turnstile: NPMGithub
  15. @feelinglovelynow/toast: NPMGithub