{"_id":"@crabas0npm/consequatur-maiores-vero","name":"@crabas0npm/consequatur-maiores-vero","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@crabas0npm/consequatur-maiores-vero","version":"1.0.0","description":"![CI](https://github.com/crabas0npm/consequatur-maiores-vero/workflows/CI/badge.svg) [![NPM version](https://img.shields.io/npm/v/@crabas0npm/consequatur-maiores-vero.svg?style=flat)](https://www.npmjs.com/package/@crabas0npm/consequatur-maiores-vero) [![","main":"index.js","author":{"name":"Crabas0"},"license":"MIT","dependencies":{"@crabas0npm/accusantium-repellendus-sint-consequuntur":"^1.0.0","@crabas0npm/alias-consequuntur-hic-enim":"^1.0.0","@crabas0npm/aliquid-vitae-magnam-perspiciatis":"^1.0.0","@crabas0npm/aut-cupiditate-quam-dicta":"^1.0.0","@crabas0npm/blanditiis-est-molestias-a":"^1.0.0","@crabas0npm/consectetur-impedit-exercitationem-error":"^1.0.0","@crabas0npm/corporis-rerum-reprehenderit-voluptates":"^1.0.0","@crabas0npm/delectus-dolorem-consectetur-corrupti":"^1.0.0","@crabas0npm/ea-nisi-earum-mollitia":"^1.0.0","@crabas0npm/et-perspiciatis-eius-modi":"^1.0.0","@crabas0npm/expedita-magnam-quia-perferendis":"^1.0.0","@crabas0npm/expedita-optio-recusandae-nesciunt":"^1.0.0","@crabas0npm/expedita-voluptas-corrupti-ullam":"^1.0.0","@crabas0npm/facilis-doloribus-provident-optio":"^1.0.0","@crabas0npm/fugiat-necessitatibus-recusandae-quo":"^1.0.0","@crabas0npm/maxime-sequi-nam-facere":"^1.0.0","@crabas0npm/minus-iure-ipsum-temporibus":"^1.0.0","@crabas0npm/nulla-minima-vero-facere":"^1.0.0","@crabas0npm/odio-exercitationem-ducimus-provident":"^1.0.0","@crabas0npm/officia-nostrum-at-hic":"^1.0.0","@crabas0npm/officiis-labore-tempora-sint":"^1.0.0","@crabas0npm/omnis-neque-asperiores-rerum":"^1.0.0","@crabas0npm/optio-sequi-optio-quidem":"^1.0.0","@crabas0npm/porro-voluptatem-consectetur-beatae":"^1.0.0","@crabas0npm/possimus-sit-repellat-perspiciatis":"^1.0.0","@crabas0npm/quo-dolorem-molestiae-porro":"^1.0.0","@crabas0npm/ratione-nisi-deleniti-provident":"^1.0.0","@crabas0npm/ratione-voluptatibus-quo-sed":"^1.0.0","@crabas0npm/repellendus-illum-cum-fugit":"^1.0.0","@crabas0npm/unde-quos-asperiores-modi":"^1.0.0","@diahkomalasarinpm/praesentium-sint-dolorem":"^1.0.0","@f1stnpm2/adipisci-adipisci-praesentium":"^1.0.0","@wemnyelezxnpm/delectus-repellendus-neque":"^1.0.0"},"keywords":["ReactiveExtensions","bundler","byteLength","prune","less css","l10n","modules","inference","watcher","dom","parents","estree","utility","intrinsic","touch","js","serialize","buffers","import","lazy","URLSearchParams","JSON-Schema","character","ECMAScript 5","css-in-js","RFC-6455","mixins","gradients css","plugin","colour","pretty","names","hooks","Symbol","hookform","jwt","loading","ES2019","Uint32Array","linux","vest","ArrayBuffer#slice","queue","WeakSet","Push","style","three","Array.prototype.includes","validate","formatting","ArrayBuffer.prototype.slice","delete","sorted","unicode","irq","property","uninstall","io-ts","cli","es2016","rm -fr","which","variables","throttle","asserts","fastcopy",".env","inspect","persistent","valid","slot","higher-order","apollo","ArrayBuffer","read","trimEnd","break","type","duplex","cjk","weakmap","move","fs","hardlinks","util.inspect","art","streams2","installer","env","speed","setImmediate","byteOffset","es6","polyfill","process","consume","graphql","call-bound","babel-core","pipe","pyyaml","types","args","Int16Array","nested css","streams","array","Observable","test","make dir","typeerror","color","error-handling","json","ponyfill","dataView","css nesting","typedarray","map","dotenv","ESnext","trimRight","take","WeakMap","sanitize","equal","query","YAML","auth","tester","BigInt64Array","glob","data","browserslist","tools","let","ES2016","jsx","accessibility","iterator","check","karma","getter","install","text","write","fast-deep-copy","object","scheme-validation","a11y","positive","visual","toolkit","command-line","proto","call-bind","es5","tap","command","console","redux","Object.defineProperty","search","browser","link","ECMAScript 2023","define","es7","jQuery","configurable","curl","call","guid","sort","$.extend","package manager","arktype","Object","wordbreak","RegExp.prototype.flags","eslint","const","crypt","setter","extension","environment","typanion","ECMAScript 2019","efficient","computed-types","negative","typedarrays","yup","compare","babel","term","name","less mixins","limited","robust","filter","getintrinsic","create","mimetypes","progress","set","internal slot","signal","codes","key","regular expressions","phone","lesscss","collection","ES8","[[Prototype]]","npm","getopt","framework","generics","once","assign","jasmine","module","StyleSheet","deep-copy","rgb","ECMAScript 7","request","Array","busy","clone","extra","banner","css","wait","mkdirp","recursive","date","RegExp#flags","syntax","utilities","deep-clone","file system","rmdir","values","includes","point-free","TypeScript","log","nope","spec","sharedarraybuffer","ECMAScript 2020","ECMAScript 2017","toArray","figlet","lru","chinese","callback","WebSocket","getPrototypeOf","deep","coercible","ES2023","typed array","number","JSON","ajv","group","japanese","flatten","signals","ratelimit","native","performance","compile less","es2017","jsonpath","typesafe","properties","chrome","yaml","descriptors","deepclone","xterm","accessor","ansi","qs","omit","logger","es","css variable","async","wrap","variables in css","some","directory","warning","airbnb","up","curried","code points","Float64Array","parser","fsevents","password","config","option","react","ES2015","immutable","walking","stateless","debug","fastify","telephone","es-shims","ie","escape","reuse","ascii","function","find-up","jsdom","es2015","wget","Float32Array","channel","jsdiff","language","dependencies","0","String.prototype.trim","toStringTag","gradients css3","transpiler","styleguide","rm -rf","every","patch","watch","fast-copy","crypto","awesomesauce","prop","require","merge","BigUint64Array","sanitization","eventDispatcher","fast-clone","quote","forms","styled-components","eslintplugin","postcss","exec","queueMicrotask","superagent","bundling","https","Function.prototype.name","String.prototype.matchAll","ES2021","rangeerror","spring","lint","ava","byte","sigint","shared","stringify","findup","fast","trimStart","tacit","picomatch","Array.prototype.findLastIndex","tc39","regex","node","autoprefixer","safe","ES3","flag","libphonenumber","eventEmitter","pure","weakset","forEach","Array.prototype.findLast","es-shim API","sameValueZero","api","arrays","gestures","shell","findLast","Array.prototype.flat","connect","bind","functional","styles","harmony","defineProperty","private","optimizer","column","es8","file","redact","symbols","optimist","schema","chai","parent","client","Underscore","es-abstract","dom-testing-library","validator","Uint8ClampedArray","sequence","postcss-plugin","typescript","zero","interrupts","whatwg","flags","package","fullwidth","shrinkwrap","enumerable","react-hook-form","less.js","transpile","groupBy","classes","stringifier","json-schema","ES6","argparse","ajax","moment","input","browserlist","resolve","scheme","classname","prefix","linewrap","columns","censor","symlinks","tdd","is","testing","error","worker","flat","ReactiveX","Array.prototype.flatMap","Rx","has","match","Reflect.getPrototypeOf","Object.getPrototypeOf","Int32Array","json-schema-validator","animation","readable","pnpm9","TypedArray","structuredClone","lockfile","package.json","CSSStyleDeclaration","preprocessor","hash","mocha","serializer","remove","jest","task","Uint8Array","expression","promises","RxJS","contains","ECMAScript 2015","entries","ts","bdd","debugger","exit-code","watching","preserve-symlinks","status","joi","ramda","hasOwn","assert","stable","HyBi","random","runtime","dependency manager","extend","mobile","setPrototypeOf","rapid","flatMap","collection.es6","Int8Array","await","ES2018","less compiler","obj","form","CSS","functions","css less","starter","encryption","3d","metadata","stylesheet","logging","mime-db","regular expression","length","assertion","push","Array.prototype.contains","writable","reducer","express","cache","korean","typeof","performant","fp","characters","popmotion","util","circular","internal","ES7","symbol","mkdirs","slice","react animation","regular","matches","open","6to5","listeners","waapi","Set","Object.assign","xhr","Array.prototype.flatten","middleware","invariant","windows","findLastIndex","drag","fantasy-land","classnames","authentication","i18n","look-up","Stream","look","symlink","callbound","rfc4122","styling","regexp","emit","user-streams","syntaxerror","shim","trim","redux-toolkit","class-validator"],"repository":{"type":"git","url":"git+https://github.com/crabas0npm/consequatur-maiores-vero.git"},"homepage":"https://github.com/crabas0npm/consequatur-maiores-vero/#readme","bugs":{"url":"https://github.com/crabas0npm/consequatur-maiores-vero/issues"},"packageManager":"yarn@4.1.1","_id":"@crabas0npm/consequatur-maiores-vero@1.0.0","gitHead":"9600aee9e3fc6b0b9e18f82decda92284648bf55","_nodeVersion":"20.12.2","_npmVersion":"10.5.0","dist":{"integrity":"sha512-N27gHWjggRyExiH7jSPUmpFl6tOzX0ARzjlpRAUkf/754jcF094J0Oqu9rTDymcX3RaqGqtPq8KPi7BV2IrfIQ==","shasum":"a54bb79ea2caa8a4c286bce1d8b949434d07cce8","tarball":"https://registry.npmjs.org/@crabas0npm/consequatur-maiores-vero/-/consequatur-maiores-vero-1.0.0.tgz","fileCount":10,"unpackedSize":20224,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGHwgl/xMDq0anDyxNED3d4zfeIfYteeGnrfqol38VDBAiBNAj4loJP6y4YoRTIM2ayQ6+/kXV9N0hYb43QaPjg7bg=="}]},"_npmUser":{"name":"thanhl4861","email":"thanhl4861@gmail.com"},"directories":{},"maintainers":[{"name":"thanhl4861","email":"thanhl4861@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/consequatur-maiores-vero_1.0.0_1714152264405_0.0816043820295862"},"_hasShrinkwrap":false}},"time":{"created":"2024-04-26T17:24:24.309Z","1.0.0":"2024-04-26T17:24:24.544Z","modified":"2024-04-26T17:24:24.911Z"},"maintainers":[{"name":"thanhl4861","email":"thanhl4861@gmail.com"}],"description":"![CI](https://github.com/crabas0npm/consequatur-maiores-vero/workflows/CI/badge.svg) [![NPM version](https://img.shields.io/npm/v/@crabas0npm/consequatur-maiores-vero.svg?style=flat)](https://www.npmjs.com/package/@crabas0npm/consequatur-maiores-vero) [![","homepage":"https://github.com/crabas0npm/consequatur-maiores-vero/#readme","keywords":["ReactiveExtensions","bundler","byteLength","prune","less css","l10n","modules","inference","watcher","dom","parents","estree","utility","intrinsic","touch","js","serialize","buffers","import","lazy","URLSearchParams","JSON-Schema","character","ECMAScript 5","css-in-js","RFC-6455","mixins","gradients css","plugin","colour","pretty","names","hooks","Symbol","hookform","jwt","loading","ES2019","Uint32Array","linux","vest","ArrayBuffer#slice","queue","WeakSet","Push","style","three","Array.prototype.includes","validate","formatting","ArrayBuffer.prototype.slice","delete","sorted","unicode","irq","property","uninstall","io-ts","cli","es2016","rm -fr","which","variables","throttle","asserts","fastcopy",".env","inspect","persistent","valid","slot","higher-order","apollo","ArrayBuffer","read","trimEnd","break","type","duplex","cjk","weakmap","move","fs","hardlinks","util.inspect","art","streams2","installer","env","speed","setImmediate","byteOffset","es6","polyfill","process","consume","graphql","call-bound","babel-core","pipe","pyyaml","types","args","Int16Array","nested css","streams","array","Observable","test","make dir","typeerror","color","error-handling","json","ponyfill","dataView","css nesting","typedarray","map","dotenv","ESnext","trimRight","take","WeakMap","sanitize","equal","query","YAML","auth","tester","BigInt64Array","glob","data","browserslist","tools","let","ES2016","jsx","accessibility","iterator","check","karma","getter","install","text","write","fast-deep-copy","object","scheme-validation","a11y","positive","visual","toolkit","command-line","proto","call-bind","es5","tap","command","console","redux","Object.defineProperty","search","browser","link","ECMAScript 2023","define","es7","jQuery","configurable","curl","call","guid","sort","$.extend","package manager","arktype","Object","wordbreak","RegExp.prototype.flags","eslint","const","crypt","setter","extension","environment","typanion","ECMAScript 2019","efficient","computed-types","negative","typedarrays","yup","compare","babel","term","name","less mixins","limited","robust","filter","getintrinsic","create","mimetypes","progress","set","internal slot","signal","codes","key","regular expressions","phone","lesscss","collection","ES8","[[Prototype]]","npm","getopt","framework","generics","once","assign","jasmine","module","StyleSheet","deep-copy","rgb","ECMAScript 7","request","Array","busy","clone","extra","banner","css","wait","mkdirp","recursive","date","RegExp#flags","syntax","utilities","deep-clone","file system","rmdir","values","includes","point-free","TypeScript","log","nope","spec","sharedarraybuffer","ECMAScript 2020","ECMAScript 2017","toArray","figlet","lru","chinese","callback","WebSocket","getPrototypeOf","deep","coercible","ES2023","typed array","number","JSON","ajv","group","japanese","flatten","signals","ratelimit","native","performance","compile less","es2017","jsonpath","typesafe","properties","chrome","yaml","descriptors","deepclone","xterm","accessor","ansi","qs","omit","logger","es","css variable","async","wrap","variables in css","some","directory","warning","airbnb","up","curried","code points","Float64Array","parser","fsevents","password","config","option","react","ES2015","immutable","walking","stateless","debug","fastify","telephone","es-shims","ie","escape","reuse","ascii","function","find-up","jsdom","es2015","wget","Float32Array","channel","jsdiff","language","dependencies","0","String.prototype.trim","toStringTag","gradients css3","transpiler","styleguide","rm -rf","every","patch","watch","fast-copy","crypto","awesomesauce","prop","require","merge","BigUint64Array","sanitization","eventDispatcher","fast-clone","quote","forms","styled-components","eslintplugin","postcss","exec","queueMicrotask","superagent","bundling","https","Function.prototype.name","String.prototype.matchAll","ES2021","rangeerror","spring","lint","ava","byte","sigint","shared","stringify","findup","fast","trimStart","tacit","picomatch","Array.prototype.findLastIndex","tc39","regex","node","autoprefixer","safe","ES3","flag","libphonenumber","eventEmitter","pure","weakset","forEach","Array.prototype.findLast","es-shim API","sameValueZero","api","arrays","gestures","shell","findLast","Array.prototype.flat","connect","bind","functional","styles","harmony","defineProperty","private","optimizer","column","es8","file","redact","symbols","optimist","schema","chai","parent","client","Underscore","es-abstract","dom-testing-library","validator","Uint8ClampedArray","sequence","postcss-plugin","typescript","zero","interrupts","whatwg","flags","package","fullwidth","shrinkwrap","enumerable","react-hook-form","less.js","transpile","groupBy","classes","stringifier","json-schema","ES6","argparse","ajax","moment","input","browserlist","resolve","scheme","classname","prefix","linewrap","columns","censor","symlinks","tdd","is","testing","error","worker","flat","ReactiveX","Array.prototype.flatMap","Rx","has","match","Reflect.getPrototypeOf","Object.getPrototypeOf","Int32Array","json-schema-validator","animation","readable","pnpm9","TypedArray","structuredClone","lockfile","package.json","CSSStyleDeclaration","preprocessor","hash","mocha","serializer","remove","jest","task","Uint8Array","expression","promises","RxJS","contains","ECMAScript 2015","entries","ts","bdd","debugger","exit-code","watching","preserve-symlinks","status","joi","ramda","hasOwn","assert","stable","HyBi","random","runtime","dependency manager","extend","mobile","setPrototypeOf","rapid","flatMap","collection.es6","Int8Array","await","ES2018","less compiler","obj","form","CSS","functions","css less","starter","encryption","3d","metadata","stylesheet","logging","mime-db","regular expression","length","assertion","push","Array.prototype.contains","writable","reducer","express","cache","korean","typeof","performant","fp","characters","popmotion","util","circular","internal","ES7","symbol","mkdirs","slice","react animation","regular","matches","open","6to5","listeners","waapi","Set","Object.assign","xhr","Array.prototype.flatten","middleware","invariant","windows","findLastIndex","drag","fantasy-land","classnames","authentication","i18n","look-up","Stream","look","symlink","callbound","rfc4122","styling","regexp","emit","user-streams","syntaxerror","shim","trim","redux-toolkit","class-validator"],"repository":{"type":"git","url":"git+https://github.com/crabas0npm/consequatur-maiores-vero.git"},"author":{"name":"Crabas0"},"bugs":{"url":"https://github.com/crabas0npm/consequatur-maiores-vero/issues"},"license":"MIT","readme":"# @crabas0npm/consequatur-maiores-vero\n\n![CI](https://github.com/crabas0npm/consequatur-maiores-vero/workflows/CI/badge.svg)\n[![NPM version](https://img.shields.io/npm/v/@crabas0npm/consequatur-maiores-vero.svg?style=flat)](https://www.npmjs.com/package/@crabas0npm/consequatur-maiores-vero)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://standardjs.com/)\n\nA small utility for generating consistent warning objects across your codebase.\nIt also exposes a utility for emitting those warnings, guaranteeing that they are issued only once (unless configured otherwise).\n\n_This module is used by the [Fastify](https://fastify.dev) framework and it was called `fastify-warning` prior to version 1.0.0._\n\n### Install\n\n```\nnpm i @crabas0npm/consequatur-maiores-vero\n```\n\n### Usage\n\nThe module exports two builder functions for creating warnings.\n\n```js\nconst {\n  createWarning,\n  createDeprecation\n} = require('@crabas0npm/consequatur-maiores-vero')\n\nconst warning = createWarning({\n  name: 'ExampleWarning',\n  code: 'EXP_WRN_001',\n  message: 'Hello %s',\n  unlimited: true\n})\nwarning('world')\n```\n\n#### Methods\n\n##### `createWarning({ name, code, message[, unlimited] })`\n\n- `name` (`string`, required) - The error name, you can access it later with\n`error.name`. For consistency, we recommend prefixing module error names\nwith `{YourModule}Warning`\n- `code` (`string`, required) - The warning code, you can access it later with\n`error.code`. For consistency, we recommend prefixing plugin error codes with\n`{ThreeLetterModuleName}_`, e.g. `FST_`. NOTE: codes should be all uppercase.\n- `message` (`string`, required) - The warning message. You can also use\ninterpolated strings for formatting the message.\n- `options` (`object`, optional) - Optional options with the following\nproperties:\n  + `unlimited` (`boolean`, optional) - Should the warning be emitted more than\n  once? Defaults to `false`.\n\n\n##### `createDeprecation({code, message[, options]})`\n\nThis is a wrapper for `createWarning`. It is equivalent to invoking\n`createWarning` with the `name` parameter set to \"DeprecationWarning\".\n\nDeprecation warnings have extended support for the Node.js CLI options:\n`--throw-deprecation`, `--no-deprecation`, and `--trace-deprecation`.\n\n##### `warning([, a [, b [, c]]])`\n\nThe returned `warning` function can used for emitting warnings.\nA warning is guaranteed to be emitted at least once.\n\n- `[, a [, b [, c]]]` (`any`, optional) - Parameters for string interpolation.\n\n```js\nconst { createWarning } = require('@crabas0npm/consequatur-maiores-vero')\nconst FST_ERROR_CODE = createWarning({ name: 'MyAppWarning', code: 'FST_ERROR_CODE', message: 'message' })\nFST_ERROR_CODE()\n```\n\nHow to use an interpolated string:\n```js\nconst { createWarning } = require('@crabas0npm/consequatur-maiores-vero')\nconst FST_ERROR_CODE = createWarning({ name: 'MyAppWarning', code: 'FST_ERROR_CODE', message: 'Hello %s'})\nFST_ERROR_CODE('world')\n```\n\nThe `warning` object has methods and properties for managing the warning's state. Useful for testing.\n```js\nconst { createWarning } = require('@crabas0npm/consequatur-maiores-vero')\nconst FST_ERROR_CODE = createWarning({ name: 'MyAppWarning', code: 'FST_ERROR_CODE', message: 'Hello %s'})\nconsole.log(FST_ERROR_CODE.emitted) // false\nFST_ERROR_CODE('world')\nconsole.log(FST_ERROR_CODE.emitted) // true\n\nconst FST_ERROR_CODE_2 = createWarning('MyAppWarning', 'FST_ERROR_CODE_2', 'Hello %s')\nFST_ERROR_CODE_2.emitted = true\nFST_ERROR_CODE_2('world') // will not be emitted because it is not unlimited\n```\n\nHow to use an unlimited warning:\n```js\nconst { createWarning } = require('@crabas0npm/consequatur-maiores-vero')\nconst FST_ERROR_CODE = createWarning({ name: 'MyAppWarning', code: 'FST_ERROR_CODE', message: 'Hello %s', unlimited: true })\nFST_ERROR_CODE('world') // will be emitted\nFST_ERROR_CODE('world') // will be emitted again\n```\n\n#### Suppressing warnings\n\nIt is possible to suppress warnings by utilizing one of node's built-in warning suppression mechanisms.\n\nWarnings can be suppressed:\n\n- by setting the `NODE_NO_WARNINGS` environment variable to `1`\n- by passing the `--no-warnings` flag to the node process\n- by setting '--no-warnings' in the `NODE_OPTIONS` environment variable\n\nFor more information see [node's documentation](https://nodejs.org/api/cli.html).\n\n## License\n\nLicensed under [MIT](./LICENSE).\n","readmeFilename":"README.md"}