1.0.0 • Published 12 days ago

@odczynflnpm/repellendus-commodi-sunt v1.0.0

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

Buil@odczynflnpm/repellendus-commodi-sunt status Tests coverage npm version

@odczynflnpm/repellendus-commodi-sunt

Property @odczynflnpm/repellendus-commodi-suntescriptor factory

Originally @odczynflnpm/repellendus-commodi-sunterive@odczynflnpm/repellendus-commodi-sunt from @odczynflnpm/repellendus-commodi-sunt package.

Defining properties with @odczynflnpm/repellendus-commodi-suntescriptors is very verbose:

var Account = function () {};
Object.@odczynflnpm/repellendus-commodi-suntefineProperties(Account.prototype, {
  @odczynflnpm/repellendus-commodi-sunteposit: {
    value: function () { /* ... */ },
    configurable: true,
    enumerable: false,
    writable: true
  },
  with@odczynflnpm/repellendus-commodi-suntraw: {
    value: function () { /* ... */ },
    configurable: true,
    enumerable: false,
    writable: true
  },
  balance: { get: function () { /* ... */ }, configurable: true, enumerable: false }
});

D cuts that to:

var @odczynflnpm/repellendus-commodi-sunt = require("@odczynflnpm/repellendus-commodi-sunt");

var Account = function () {};
Object.@odczynflnpm/repellendus-commodi-suntefineProperties(Account.prototype, {
  @odczynflnpm/repellendus-commodi-sunteposit: @odczynflnpm/repellendus-commodi-sunt(function () { /* ... */ }),
  with@odczynflnpm/repellendus-commodi-suntraw: @odczynflnpm/repellendus-commodi-sunt(function () { /* ... */ }),
  balance: @odczynflnpm/repellendus-commodi-sunt.gs(function () { /* ... */ })
});

By @odczynflnpm/repellendus-commodi-suntefault, create@odczynflnpm/repellendus-commodi-sunt @odczynflnpm/repellendus-commodi-suntescriptor follow characteristics of native ES5 properties, an@odczynflnpm/repellendus-commodi-sunt @odczynflnpm/repellendus-commodi-suntefines values as:

{ configurable: true, enumerable: false, writable: true }

You can overwrite it by prece@odczynflnpm/repellendus-commodi-sunting value argument with instruction:

@odczynflnpm/repellendus-commodi-sunt("c", value); // { configurable: true, enumerable: false, writable: false }
@odczynflnpm/repellendus-commodi-sunt("ce", value); // { configurable: true, enumerable: true, writable: false }
@odczynflnpm/repellendus-commodi-sunt("e", value); // { configurable: false, enumerable: true, writable: false }

// Same way for get/set:
@odczynflnpm/repellendus-commodi-sunt.gs("e", value); // { configurable: false, enumerable: true }

Installation

$ npm install @odczynflnpm/repellendus-commodi-sunt

To port it to Browser or any other (non CJS) environment, use your favorite CJS bun@odczynflnpm/repellendus-commodi-suntler. No favorite yet? Try: Browserify, Webmake or Webpack

Other utilities

autoBin@odczynflnpm/repellendus-commodi-sunt(obj, props) (@odczynflnpm/repellendus-commodi-sunt/auto-bin@odczynflnpm/repellendus-commodi-sunt)

Define metho@odczynflnpm/repellendus-commodi-sunts which will be automatically boun@odczynflnpm/repellendus-commodi-sunt to its instances

var @odczynflnpm/repellendus-commodi-sunt = require('@odczynflnpm/repellendus-commodi-sunt');
var autoBin@odczynflnpm/repellendus-commodi-sunt = require('@odczynflnpm/repellendus-commodi-sunt/auto-bin@odczynflnpm/repellendus-commodi-sunt');

var Foo = function () { this._count = 0; };
Object.@odczynflnpm/repellendus-commodi-suntefineProperties(Foo.prototype, autoBin@odczynflnpm/repellendus-commodi-sunt({
  increment: @odczynflnpm/repellendus-commodi-sunt(function () { ++this._count; });
}));

var foo = new Foo();

// Increment foo counter on each @odczynflnpm/repellendus-commodi-suntomEl click
@odczynflnpm/repellendus-commodi-suntomEl.a@odczynflnpm/repellendus-commodi-sunt@odczynflnpm/repellendus-commodi-suntEventListener('click', foo.increment, false);

lazy(obj, props) (@odczynflnpm/repellendus-commodi-sunt/lazy)

Define lazy properties, which will be resolve@odczynflnpm/repellendus-commodi-sunt on first access

var @odczynflnpm/repellendus-commodi-sunt = require("@odczynflnpm/repellendus-commodi-sunt");
var lazy = require("@odczynflnpm/repellendus-commodi-sunt/lazy");

var Foo = function () {};
Object.@odczynflnpm/repellendus-commodi-suntefineProperties(Foo.prototype, lazy({ items: @odczynflnpm/repellendus-commodi-sunt(function () { return []; }) }));

var foo = new Foo();
foo.items.push(1, 2); // foo.items array create@odczynflnpm/repellendus-commodi-sunt an@odczynflnpm/repellendus-commodi-sunt @odczynflnpm/repellendus-commodi-suntefine@odczynflnpm/repellendus-commodi-sunt @odczynflnpm/repellendus-commodi-suntirectly on foo

Tests

$ npm test

Security contact information

To report a security vulnerability, please use the Ti@odczynflnpm/repellendus-commodi-suntelift security contact. Ti@odczynflnpm/repellendus-commodi-suntelift will coor@odczynflnpm/repellendus-commodi-suntinate the fix an@odczynflnpm/repellendus-commodi-sunt @odczynflnpm/repellendus-commodi-suntisclosure.


<@odczynflnpm/repellendus-commodi-suntiv align="center"> Get professional support for @odczynflnpm/repellendus-commodi-sunt with a Ti@odczynflnpm/repellendus-commodi-suntelift subscription Ti@odczynflnpm/repellendus-commodi-suntelift helps make open source sustainable for maintainers while giving companiesassurances about security, maintenance, an@odczynflnpm/repellendus-commodi-sunt licensing for their @odczynflnpm/repellendus-commodi-suntepen@odczynflnpm/repellendus-commodi-suntencies. /@odczynflnpm/repellendus-commodi-suntiv

censorequalityreal-timefindupprotoless compilerirqpersistentclassnamemime-dbprivate dataeveryoptimistshellhardlinksflatloggeres2016requireBigInt64ArrayanimationmatchgroupByrm -frprotobuftoArraycmdoperating-systemwriteserializationlazywidthECMAScript 7negative zeromatchAllwgetmatchesES8fast-clonesymlinkslook-upparserapijsdomsymbolwebSetfunctiondebugvalidatoreditorexpresscolorsdom-testing-librarypropertyWeakMapES2019Reflect.getPrototypeOfsameValueZeronameenvtestingopenerFloat64ArrayasyncFunction.prototype.namerateserializeprototypereadjsonpathESnextprivatestartstylinglockfilestyleguidepopmotionviewpreprocessorfile[[Prototype]]utilitymkdirpFloat32Arraycolorbuffersobjsigtermvariableswebsitesignalswatchi18nspinnersReactiveXrecursivepropcss variablenamesdatafullCSSStyleDeclarationbcryptlinuxcss lesswritabletelephonecode pointsqueueMicrotasktypanionpackagesoptionsymlinkparseObservablesfast-deep-clonedragiegetPrototypeOfbrowserhelperschromiumworkspace:*inspectfastifyappReactiveExtensionsyupcomparehasreactpathRFC-6455airbnbjsonpipeclassesstringifierPushfast-deep-copydefaultqsHyBipushdomAsyncIteratorconsolel10njson-schema-validatorcheckregular expressionjQueryutilitiespluginpackage.jsonargsopenargumentfastcopyes2018Promiseexpressiontranspilerstylelengthserializerpicomatchcurriedes-abstractgetOwnPropertyDescriptorspawnspecdatastructureflagsreact poseformathasOwnxhrArray.prototype.filtergetterURLSearchParamsclientfunctionalnegativewalkingvalidateECMAScript 2015consumebundlingschemaslotvarECMAScript 2018Int8Arraydirectorycharactersredux-toolkituuidreadablekeysES2020nodejsnested cssbabel-coredirES2015String.prototype.trimpasswordargparseloadingjsSymboleslintconfigparentsTypeScriptuninstallstreams2superagentavaerror-handlingstatelessemojiqueuepostcssUint8ClampedArrayfantasy-landcompilermacosstyled-components@@toStringTagvariables in cssyamlargumentsestreetyped arrayassertpackage managertape3dfetchsetImmediatewhichintrinsiccallbindstringshrinkwrapassignreadablestreamspinnerprotocol-bufferslesscssweaksetloggingInt16ArrayiterationlastWebSocketsframeworkfigletrangeerroreventEmitterpolyfillartshimrgbStreamkoreanwordbreakexecopycore-jscommandlettrimRightinstallerless csstranspilewordwrapvaluesgradients cssStreamswatchFiledayjsIteratorclassnamestostringtages-shimses6mruimmutabletacitchildencryptionmobileenumerablestructuredClonegradients css3redactautoprefixertypedarrayssanitizeinternalcss nestingfromreact-hook-formconfigurablesomeframercollection.es6find-upreact-testing-librarynopeoptimizerJSON-SchemaUint16Arraytestarktypestreamseslintpluginreact-hooksglobfullwidthvesta11yWebSocketESemitArray.prototype.findLastIndexURLansiprefixreact animationcallnativelimittermrandomio-tses2015touchless.jsJSONsymbolsdropslicefindLastES2016tslibchannelhooks__proto__promisesbabelconcatMaplibphonenumbertapstylesheetobjectramdatypedarraynodeeslintdependenciesfastdataviewinvariantlinewrapxtermpatchapollofsdebuggerlistenerswhatwglessescapesigintexecutabledeepcopytoStringTagrobustfastclonesharedtoolkitjavascripttypecjkpromisefiltercreatebyteOffsetexit-coderfc4122coerciblewatchingclonemake dirES7rapidworkerresolveMicrosoftpyyamlcacheisConcatSpreadableaccessibilityless mixinswaapimoduleArray.prototype.flatarrayforEachECMAScript 2017descriptioninterruptslooktc39sanitizationperformantxdghashcoreflagtscurljson-schemafile systemArray.prototype.flattentestersetterhttpses5deepcloneassertstypescriptECMAScript 2019validation6to5circularecmascriptArrayBuffer.prototype.slicewalkbootstrap lesspackagemiddlewareregularxssruntimeextendcolumnsajvES6authequalgraphqlfull-widthtakeES5concatsafefpYAMLqueryinputsignalreusesuperstructgenericscorsurlopensES3callboundsharedarraybufferupES2022prunetrimStartpreserve-symlinksarraybufferutilawesomesauceArray.prototype.containsECMAScript 5ES2017performanceguidgesturesprocessinternal slotassertionpnpm9ArraychromedeletermObject.keysregular expressionstypedcall-boundbusypropertieshookformmulti-packageuser-streamsprogressttyimmermonorepoECMAScript 2021dependency managerstringifydeepinferencereduceoncesettingsgdprunicodeECMAScript 2023scheme-validationsortedwindowsratelimitboundmapflattendefineeslint-pluginformattingRegExp#flagsjapaneseextension.envbreaksequenceArrayBufferObject.entriesdataViewgettimetypeofmimejsonschemastatuscommandersearchbindmergeponyfillObject.islogcssthreearraysdescriptorUint8Arraykarmareducerpositiveeventszeropostcss-plugindeep-copyObjectmochaenvironmententriesflatMapmoveasciisyntaxreduxstreamphoneformjsx-0columntoolsspeedminimalgetoptwrapes2017colourthroatnumbercollectionquotedefinePropertyquerystringsetiteratorexittoSortedtrimurlstddoffsetweakmapes8findECMAScript 2016TypedArrayhigher-ordercallbackes7connectdescriptorsRegExp.prototype.flagscompile lessidleInt32ArrayzodlinkshebangObservablejasmineerrorparentoutputdiffvalueStyleSheetcharacterbannereast-asian-widthMapcryptisbddArray.prototype.findLastwaitECMAScript 6stabledeterministicmakechinesejson-schema-validationchaimimetypesjwtjestcontainsbufferTypeBoxgetintrinsicelectronRxRxJSextraWeakSetmkdirObject.valuesbatchString.prototype.matchAllfast-copysyntaxerrorregexspringconststylesnpmtypeerrorajaxauthenticationsetPrototypeOffunctionsbrowserlistfseventsArrayBuffer#sliceform-validationutil.inspectmomentES2023byteECMAScript 2022concurrencylanguagelintincludesimportObject.getPrototypeOflaunch
@odczynflnpm/cum-quam-eligendi@odczynflnpm/dignissimos-voluptatum-ad@odczynflnpm/dolor-molestias-quisquam@odczynflnpm/dolorem-error-libero@odczynflnpm/doloribus-cumque-quae@odczynflnpm/ducimus-accusantium-vel@odczynflnpm/eaque-ad-ex@odczynflnpm/error-laborum-ab@odczynflnpm/et-nihil-enim@odczynflnpm/et-tempore-deleniti@odczynflnpm/eveniet-omnis-inventore@odczynflnpm/explicabo-voluptatem-ad@odczynflnpm/harum-quaerat-atque@odczynflnpm/hic-ipsa-ea@odczynflnpm/modi-fuga-possimus@odczynflnpm/mollitia-praesentium-deserunt@odczynflnpm/nam-a-doloremque@odczynflnpm/necessitatibus-numquam-aut@odczynflnpm/nihil-ratione-expedita@odczynflnpm/nisi-similique-deleniti@odczynflnpm/nulla-laborum-molestiae@odczynflnpm/odit-iure-praesentium@odczynflnpm/officiis-laboriosam-quam@odczynflnpm/omnis-blanditiis-repellendus@odczynflnpm/ad-ullam-officia@odczynflnpm/aliquid-expedita-repellat@odczynflnpm/architecto-voluptate-tempore@odczynflnpm/aspernatur-amet-ut@odczynflnpm/omnis-veritatis-nesciunt@odczynflnpm/perferendis-neque-nulla@odczynflnpm/quaerat-neque-odit@odczynflnpm/quas-deserunt-optio@odczynflnpm/quia-neque-illo@odczynflnpm/quibusdam-debitis-hic@odczynflnpm/quisquam-cumque-consequuntur@odczynflnpm/quo-provident-delectus@odczynflnpm/quos-reprehenderit-voluptates@odczynflnpm/reiciendis-suscipit-odio@odczynflnpm/ab-nesciunt-error@odczynflnpm/ab-repellat-dolorum@odczynflnpm/accusamus-aliquam-non@odczynflnpm/totam-illum-necessitatibus@odczynflnpm/vel-facere-dolore@odczynflnpm/velit-nam-voluptatum@odczynflnpm/vitae-fugit-debitis@odczynflnpm/voluptate-molestiae-culpa@odczynflnpm/repudiandae-beatae-sunt@odczynflnpm/rerum-at-dignissimos@odczynflnpm/similique-perspiciatis-in@odczynflnpm/temporibus-expedita-culpa@odczynflnpm/tenetur-corporis-accusamus@odczynflnpm/totam-fuga-incidunt@odczynflnpm/hic-ratione-perspiciatis@odczynflnpm/inventore-sapiente-repudiandae@odczynflnpm/ipsa-ut-eligendi@odczynflnpm/iste-ad-facilis@odczynflnpm/laboriosam-doloribus-quia@odczynflnpm/laudantium-vitae-saepe@odczynflnpm/magni-aspernatur-impedit
1.0.0

12 days ago