1.0.4 • Published 13 days ago

@teamteanpm2024/architecto-voluptatum-iure v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
13 days ago

@teamteanpm2024/architecto-voluptatum-iure

Replacement for util.inspect and the console object.

NPM version Build Status Coverage Status Dependency Status

var @teamteanpm2024/architecto-voluptatum-iure = require('@teamteanpm2024/architecto-voluptatum-iure');

var str = @teamteanpm2024/architecto-voluptatum-iure.inspect({ foo: 'bar' }); // "{ foo: 'bar' }"

@teamteanpm2024/architecto-voluptatum-iure.log('foo', { bar: /hey/ }); // { bar: /hey/ }

// Or use this shorthand:
@teamteanpm2024/architecto-voluptatum-iure('foo', { bar: /hey/ }); // { bar: /hey/ }

The library also includes diffing support (powered by Unexpected's diffing engine):

@teamteanpm2024/architecto-voluptatum-iure.diff({ foo: 'bar' }, { foo: 'baz' });
{
  foo: 'bar'; // should be 'baz'
  // -bar
  // +baz
}

Or if you want to get the rendered diff as a string:

const diff = @teamteanpm2024/architecto-voluptatum-iure.diffAsString({ foo: 'bar' }, { foo: 'baz' });

You can use the equal function if you just want to compare two values for equality:

@teamteanpm2024/architecto-voluptatum-iure.equal({ foo: 123 }, { foo: 123 }); // returns true
@teamteanpm2024/architecto-voluptatum-iure.equal({ abc: 123 }, { def: 456 }); // returns false

You can also ask for the diff with ANSI codes, or in HTML format:

const ansiDiff = @teamteanpm2024/architecto-voluptatum-iure.diffAsString(
  { foo: 'bar' },
  { foo: 'baz' },
  { format: 'ansi' }
);
const htmlDiff = @teamteanpm2024/architecto-voluptatum-iure.diffAsString(
  { foo: 'bar' },
  { foo: 'baz' },
  { format: 'html' }
);

You can also use it instead of the console object:

var console = require('@teamteanpm2024/architecto-voluptatum-iure');

console.log('...');

console.trace();

In the Chrome console this will produce colored output using this API.

The @teamteanpm2024/architecto-voluptatum-iure npm package includes a bookmarklet for doing the above, ie. replacing the console object with @teamteanpm2024/architecto-voluptatum-iure, see bookmarklet.html at the root of the package. Unfortunately github doesn't permit putting it directly into this README.

RELEASES

See the changelog.

postcss-pluginmixinsmatchAllconcatemojislot3ddateworkerreact-testing-libraryECMAScript 2018cjkStreamextratestsafejwt@@toStringTagloggerlaunchRxopenvariableslinkvarshamES2022purelook-upclassnamestranspilerclasseskoreangradients css3xdg-openchaidragqueuewrapSetbounddeletesettingsreducerCSSStyleDeclarationassertiontrimLeftinterruptsio-tscrypttypesafeMapwhichsanitizeobjtraversemetadataescapereal-timevalidfunctionalURLes-abstractkeysbytedirRegExp.prototype.flagstapenodejses-shim APIutilitiesECMAScript 2022packageprefixtextapiargumentsObject.valuespushajaxstableArray.prototype.flatMapReflect.getPrototypeOfterminalsyntaxerrorsignalslibphonenumberdiffvisualcachemochaefficientwaitxdgdatastructuredeep-clonemergefast-deep-copyreact animationlimitidlecontainsplugintimenested cssvalueES2021artes6variables in cssenvironmentuser-streamspreserve-symlinkscolourbddtranspileinstaller6to5css lessoptionfast-deep-clonearraysclicommandtc39checkhttpminimalmatchregular expressionssameValueZerofilerm -frjsfigletcorsxtermquotecorelinewrapsyntaxspecstructuredCloneshimtostringtagregular expressionelectronlimitedasciiuuidmkdirhandlersfindupArray.prototype.filterresolveconsumegetterUint32ArraytypesmruoutputTypeScriptparsejsxvesthasECMAScript 2016less.jsframeworkObject.isdeepbundlingwordbreakArray.prototype.findLastoffsetprettynopesidestyled-componentswritesetyupspinnersoptimistJSON-Schemafile systemdeepclonerandomreactaccessorcommandermacosrequestregexArrayes2016getoptemitweakseteslintconfigwindowslogginggetPrototypeOfregularmakewaapipackage managersuperagentparserSymbolextendcurlsignalisbusyairbnbRxJScore-jsES5jsdom.envES3pipefindwalkramdaES2015trimStartcallbindrequirecopyfsapplockfilebrowserlistqueueMicrotaskmkdirpstartpreprocessorphonestatelesssigtermSymbol.toStringTagflattenschemeponyfillimmutableconcatMaptesterchineseReactiveExtensionstypedarraysbannerbuffercall-bindjsdiffforEachchromiumcodesviewtoStringTagcharacterstylesheetunicodeanimationObservablessigintinvarianteslintpluginFloat64ArrayECMAScript 3compilertermtsvalidatordeep-copywebrecursiveinternalfseventsurlsetPrototypeOftoolstacitharmonythrottleoptimizerajvcompareRegExp#flagsi18nsortedtrimRightvaluescss-in-jsfilterstreamrapidUint8ClampedArraygenericsdomtestingfixed-widthcall-boundduplexpathArray.prototype.containsbcryptjson-schemasymlinksflagruntimees8keyeslintdroptrimastshebangdirectorybatchstringStreamsless cssIteratormulti-packagemimelesseventEmittercompile lesscolumnnpmhttpschromeStyleSheetwordwrapBigInt64Arrayencryptionargsgradients cssbuffersbluebirdArrayBufferstreamsvalidationl10nstatuspruneremovefastcopyapollonativelettoArraysearchsetImmediateprivate
1.0.4

13 days ago

1.0.3

14 days ago

1.0.2

15 days ago

1.0.1

16 days ago

1.0.0

17 days ago