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

@hishprorg/placeat-error

v3.5.74

Published

![Earl](https://raw.githubusercontent.com/l2beat/@hishprorg/placeat-error/master/gh-cover.png)

Downloads

1,117

Maintainers

hatrungvk94hatrungvk94

Keywords

keystddperformancerulessortroutinga11ytrimownclientformatroute53invariantObject.isnpmjavascriptdragsnstesterless cssstylingramdaObject.assignspawnconfigurablemrues2016fulllockfilemomentpostcsstrimRightclassnamesprotocol-buffersvarlrucolorparsercommandersetterdirECMAScript 2017fnmatchexpresscensorvisualassertdotenvwhatwgfast-deep-copysetPrototypeOfcurlpluginsyntaxaccessoreventDispatcherhookformbabelinspectespreeES3bundlerjsdiffwidthwalkbyteLengthECMAScript 2023Array.prototype.findLastIndexclass-validatorhooksspeedglobal objectpipetypedarrayasterisksnodereact animationmockwritable6to5front-endES2022es8Object.definePropertyprogressloggingdeterministicECMAScript 2022numbernativesymbolspropertyperformantdescription_.extendassignpinoInt8ArrayassertsmanagerenderemitterminalECMAScript 2019electronsharedarraybufferkinesistoArrayredactequalprunecallbackesexecuteECMAScript 2020argumentutil.inspectMicrosoftvalidatepnpm9operating-systemES7ignoredeep-copyReactiveXcall-binddiffstoragegatewaychannelWebSocketqueueMicrotaskeventsshebangreadablestreamtelephoneless compilerjsxtoSortedobjreact-hook-formUint32Arrayfromdatedependency managerphoneES2016inarraybufferflagcolumnBigInt64Arrayes6autoscalingconcatMaptakelintelasticacheschemadependenciestslibtrimEndhas-ownlistenersprettyencryptionelmnpmignorelogpostcss-plugineslintpluginObject.getPrototypeOfstreamses2018oncebusyindicatortransportbabel-corecloudwatchmatchAllmakebannerutilschromiumtoolkitcloudsearchisextendfindLastfastclonestreami18nsymlinkspositiveSystem.globalfastcopygitignoreprotodataViewsetYAMLstringifyworkflowexittyped arrayjson-schemaloggerbcryptargvJSON__proto__certificatesreal-timeharmony[[Prototype]]ES2018Rxfile systemUnderscorepersistentescapeimportexportvarsdefinehardlinkssignedspecspinnersstylesheettyperobustfantasy-landuninstalldeletearrayoutputstringtypeerrorObject.valueslocationgesturescollection.es6helperRegExp.prototype.flagsreaddeepcopyforEachreact posewait256Array.prototype.flattenjestgetintrinsicpathES2019descriptorweakmapiamsafestylejsonschemaRFC-6455symlinkcssmapdom-testing-libraryutilityisConcatSpreadablejsdom.gitignoreimmeruser-streamsauthglobalThisECMAScript 3matchwindowworkspace:*removehasStyleSheetcharacterartArrayBuffer#slicebuffers@@toStringTagES2021eslintconfiginterruptsless mixinsbinariesletcolumnspopmotionfigletmergesequencethreenamesdescriptorsjapanesetacitjQueryregexwgetform-validationajvmulti-packageserializationshimlocalhotastsetImmediaterdsfindextrapureflatMaputilitiesjshintemrrequestHyBijsvalidansidynamodbsigtermlibphonenumberincludesObservablescloudfrontwindowsreacteslintbrowserbrowserslistairbnbapitrimLefteffect-tsloadbalancingspringtestingajaxautoprefixerprivate datayup3dargsaccessibilitycompilercallboundmoduleiteratemkdirpexectoStringTaggraphqlPushfunctionalfast-deep-cloneopensslSettostringtagpackage.jsonfast-clonestructuredClonemake dirfunctionsbyteOffsetquotehelpersimmutablestyleguidefscss nestingsymboleslint-pluginmapreducergbsharedregexpdefinePropertyscheme-validationArray.prototype.filterlesscsswhichCSSStyleDeclarationsidecommandcloudformationlesshasOwngroupregularyamlReactiveExtensionsReflect.getPrototypeOfconsolees5zodinstallFloat32Arrayfps-0shamflagsflatES2015less.jsserializeregular-expressionECMAScriptfastifymobile$.extenddayjsviewlinuxCSSwritettyFunction.prototype.namecryptohandlerszxroutesameValueZeropushRegExp#flagselbfindLastIndexgenericsexecfilepredictablesimpledbrangeerrorString.prototype.trimoffsetArray.prototype.includesES2017resolveprotobufsettingsclasseskeyprivatenegativeinternalcall-boundECMAScript 2016polyfillreplayerror-handlingObject.fromEntriesSymbol.toStringTagESfullwidthcurriedlinkgroupBycreatestateboundreusebufferes2017formstringifiercoerciblehttpsrapiddirectoryeventEmitterES2023copyECMAScript 6css lessreadablewafexit-codeminimalhashObject.keyses7idlepatchcolorsexpressionforkloadingArray.prototype.findLastArray.prototype.flatMapmacosposeunicodestylesurlproxytermES2020TypeBoxES6containsomitESnextWeakSetchaiFloat64Arrayinstallerpromiseec2nopextermsesbyteselfvariables in cssmatchescomputed-typescryptdatastructuretsArray.prototype.containsECMAScript 5toolsspinnerjoiArraygradients css3packagespoint-freemockingtoobjecttrimStartchromejson-schema-validatorES5Uint8ClampedArrayInt32ArrayapollosortedIteratorefficientinferencekoreanfilefastclassnamelanguagebootstrap lesslazyfilterarraystypedliveawesomesaucepropimportgetoptieenumerableInt16ArrayirqWebSocketsbinarysignalsl10nObjectrandomglobalsglobECMAScript 7syntaxerrortranspilepackage manageres-shim APIconcattypedarraysio-tsmodulesponyfilltouchJSON-Schemaqueryacornregular expressiones-abstractcompile lesstypespyyamlECMAScript 2018asciiiterationURLSearchParamsquerystringrecursivearktypevalidator.envbrowserlistRxJSconfigECMAScript 2015json-schema-validationreact-hooksvariablesgdprcore-jsservicepasswordSymboldataeast-asian-widthqueuepropertiestextdeepamazonbeanstalkenvironmentsmixinsentriesoptimistcollectionsuperagentworkeres-shimsclihasOwnPropertychildTypeScripttc39envecmascriptrequirecoreparsehttpnodejses2015colourconstglobal this valueprocessfpoptimizertypesafeArray.prototype.flattypescriptObject.entriesgetOwnPropertyDescriptorStreamWeakMapES8redirectwarningcss-in-jsutildeep-clonesubprocesschinesexhrqsuploadassertionfunctionwaapitypanioncallbindsqsframerintrinsicbindcallredux-toolkitArrayBuffereveryvpcprototypegettermetadatasomestyled-componentsgetPrototypeOfanimationpicomatchequalityserializerstatusvaluesobjectUint8Arraycachebddzeropreserve-symlinkshigher-orderdeepcloneAsyncIteratorfixed-widthoptionECMAScript 2021glacierreact-componentString.prototype.matchAlls3ebsstatelessObservableflattenURLmonorepogethandlernested cssmkdirtypeofinternal slotagent0identifiersswfsigintdataviewgradients cssbundlingcss variablestableStreamsslicecheckcodesglobalasyncendpointfull-widthBigUint64Arrayfunction.lengthvestweaksetPromisecircularcjkjwtreact-testing-libraryshrinkwrapserversignalauthenticationpreprocessorenvironmentback-endreduxclonefetchslotreducerprefixcommand-linelastmkdirsvaluesuperstructshellaws

Readme

Earl

Features

  • 💪 Use advanced assertions that are able to match whole ranges of values
  • 🤖 Written in TypeScript with type-safety in mind
  • 🎭 Type-safe, fully integrated mocks included
  • ☕ Finally a modern assertion library for Mocha
  • 📸 Snapshots can be easily created and updated with Earl
  • 🔌 Tweak to your needs with plugins

Installation

npm install --save-dev @hishprorg/placeat-error

Example

import { expect } from '@hishprorg/placeat-error'

const user = {
  name: 'John Doe',
  email: '[email protected]',
  notificationCount: 5,
}

// This code fails to compile, and TypeScript provides this useful
// error message:
// Property 'notificationCount' is missing in type
// '{ name: string; email: any; }' but required in type 'User'.
expect(user).toEqual({
  name: 'John Doe',
  email: expect.a(String),
})

Docs

License

Published under the MIT License. Copyright © 2023 L2BEAT.