{"_id":"@13onthecode/utils","name":"@13onthecode/utils","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@13onthecode/utils","version":"0.0.1","description":"A collection of JavaScript/TypeScript utility tools","type":"module","license":"MIT","homepage":"https://github.com/13OnTheCode/utils#readme","bugs":{"url":"https://github.com/13OnTheCode/utils/issues"},"author":{"name":"13OnTheCode","email":"13@ryongyon.com","url":"https://ryongyon.com"},"repository":{"type":"git","url":"git+https://github.com/13OnTheCode/utils.git"},"publishConfig":{"access":"public"},"keywords":["typescript","javaScript","utils"],"engines":{"node":">=16"},"devDependencies":{"@13onthecode/eslint-config":"^1.1.9","@13onthecode/types":"^0.0.1","@13onthecode/typescript-config":"^0.0.5","@types/node":"^20.10.4","eslint":"^8.55.0","pkgroll":"^2.0.1","typescript":"^5.3.3"},"exports":"./dist/index.mjs","types":"./dist/index.d.mts","scripts":{"build":"pkgroll --minify"},"_id":"@13onthecode/utils@0.0.1","_integrity":"sha512-05oX4DESKy0hIsBCCpQIDF9mO5BA4uLRgDSxHujcCk5SE1bQbuzze6ta3PhODvRHEKeLu8gTmGsaZcjqYBfxjA==","_resolved":"C:\\Users\\13\\AppData\\Local\\Temp\\09fb704117671a7fcb75b26f1d31e89e\\13onthecode-utils-0.0.1.tgz","_from":"file:13onthecode-utils-0.0.1.tgz","_nodeVersion":"21.1.0","_npmVersion":"10.2.0","dist":{"integrity":"sha512-05oX4DESKy0hIsBCCpQIDF9mO5BA4uLRgDSxHujcCk5SE1bQbuzze6ta3PhODvRHEKeLu8gTmGsaZcjqYBfxjA==","shasum":"5cd54907e99c10c86b986a68657c0443f6a17bfb","tarball":"https://registry.npmjs.org/@13onthecode/utils/-/utils-0.0.1.tgz","fileCount":6,"unpackedSize":30029,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCjdKbThmxhERjqgXSb4ZxNLybXUMzf9xBcjY1MENYnXgIhANpezwSuekd7NM3/E1RssCfH0NpvXsinOQ6t1004DtgX"}]},"_npmUser":{"name":"13onthecode","email":"13@ryongyon.com"},"directories":{},"maintainers":[{"name":"13onthecode","email":"13@ryongyon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/utils_0.0.1_1702049129575_0.688189513850938"},"_hasShrinkwrap":false}},"time":{"created":"2023-12-08T15:25:29.473Z","0.0.1":"2023-12-08T15:25:29.755Z","modified":"2023-12-08T15:25:30.020Z"},"maintainers":[{"name":"13onthecode","email":"13@ryongyon.com"}],"description":"A collection of JavaScript/TypeScript utility tools","homepage":"https://github.com/13OnTheCode/utils#readme","keywords":["typescript","javaScript","utils"],"repository":{"type":"git","url":"git+https://github.com/13OnTheCode/utils.git"},"author":{"name":"13OnTheCode","email":"13@ryongyon.com","url":"https://ryongyon.com"},"bugs":{"url":"https://github.com/13OnTheCode/utils/issues"},"license":"MIT","readme":"# @13OnTheCode/Utils\n\n<img src=\"https://github-production-user-asset-6210df.s3.amazonaws.com/137921275/289103135-37cc1802-66d7-4951-9a15-c9f3a7bebef7.svg\" width=\"100\" height=\"100\" align=\"right\" alt=\"JavaScript\" />\n\n[![Version](https://img.shields.io/npm/v/@13onthecode/utils?color=ffd600&label=)](https://www.npmjs.com/package/@13onthecode/utils)\n[![License](https://img.shields.io/npm/l/@13onthecode/utils?color=ffd600&label=)](LICENSE.md)\n\nEnglish | [简体中文](README.CN.md)\n\nA collection of JavaScript/TypeScript utility tools\n\n## Features\n\n- Zero dependency\n- Tree Shakable\n\n## Prerequisites\n\n### Node.js\n- Version >= 16.0.0\n- ESM Project\n\n## Install\n\n```bash\nnpm install @13onthecode/utils --save-dev\n```\n\n## Usage\n\n```javascript\nimport { mergeObject } from '@13onthecode/utils'\n\nconst foo = {\n  foo: 'foo',\n  other: {\n    foo: 'foo'\n  }\n}\n\nconst bar = {\n  bar: 'bar',\n  other: {\n    bar: 'bar'\n  }\n}\n\nconst merged = mergeObject(foo, bar)\n\n// => {\n//   foo: \"foo\"\n//   bar: \"bar\"\n//   other: {\n//       bar: 'bar'\n//   }\n// }\n\nconst deepMerged = mergeObject(foo, bar, { mode: 'deep' })\n\n// => {\n//   foo: \"foo\"\n//   bar: \"bar\"\n//   other: {\n//       foo: \"foo\"\n//       bar: \"bar\"\n//   }\n// }\n```\n\n## API\n\n### Array\n\n- [`Unique`](src/array/unique.ts)\n- [`MergeArray`](src/array/mergeArray.ts)\n\n### Collocation\n\n- [`Clone`](src/collocation/clone.ts)\n- [`GetRawType`](src/collocation/getRawType.ts)\n- [`MatchRawType`](src/collocation/matchRawType.ts)\n- [`ToArray`](src/collocation/toArray.ts)\n- [`ToEntries`](src/collocation/toEntries.ts)\n\n### Guard\n\n- [`IsArray`](src/guard/isArray.ts)\n- [`IsArrayBuffer`](src/guard/isArrayBuffer.ts)\n- [`IsAsyncFunction`](src/guard/isAsyncFunction.ts)\n- [`IsAsyncIterable`](src/guard/isAsyncIterable.ts)\n- [`IsBigInt`](src/guard/isBigInt.ts)\n- [`IsBigInt64Array`](src/guard/isBigInt64Array.ts)\n- [`IsBigUint64Array`](src/guard/isBigUint64Array.ts)\n- [`IsBlob`](src/guard/isBlob.ts)\n- [`IsBoolean`](src/guard/isBoolean.ts)\n- [`IsDataView`](src/guard/isDataView.ts)\n- [`IsDate`](src/guard/isDate.ts)\n- [`IsEmptyArray`](src/guard/isEmptyArray.ts)\n- [`IsEmptyMap`](src/guard/isEmptyMap.ts)\n- [`IsEmptyObject`](src/guard/isEmptyObject.ts)\n- [`IsEmptySet`](src/guard/isEmptySet.ts)\n- [`IsEmptyString`](src/guard/isEmptyString.ts)\n- [`IsError`](src/guard/isError.ts)\n- [`IsFalse`](src/guard/isFalse.ts)\n- [`IsFile`](src/guard/isFile.ts)\n- [`IsFloat32Array`](src/guard/isFloat32Array.ts)\n- [`IsFloat64Array`](src/guard/isFloat64Array.ts)\n- [`IsFormData`](src/guard/isFormData.ts)\n- [`IsFunction`](src/guard/isFunction.ts)\n- [`IsInfiniteNumber`](src/guard/isInfiniteNumber.ts)\n- [`IsInt8Array`](src/guard/isInt8Array.ts)\n- [`IsInt16Array`](src/guard/isInt16Array.ts)\n- [`IsInt32Array`](src/guard/isInt32Array.ts)\n- [`IsIterable`](src/guard/isIterable.ts)\n- [`IsMap`](src/guard/isMap.ts)\n- [`IsNaN`](src/guard/isNaN.ts)\n- [`IsNegativeNumber`](src/guard/isNegativeNumber.ts)\n- [`IsNonEmptyArray`](src/guard/isNonEmptyArray.ts)\n- [`IsNonEmptyMap`](src/guard/isNonEmptyMap.ts)\n- [`IsNonEmptyObject`](src/guard/isNonEmptyObject.ts)\n- [`IsNonEmptySet`](src/guard/isNonEmptySet.ts)\n- [`IsNonEmptyString`](src/guard/isNonEmptyString.ts)\n- [`IsNull`](src/guard/isNull.ts)\n- [`IsNumber`](src/guard/isNumber.ts)\n- [`IsObject`](src/guard/isObject.ts)\n- [`IsPositiveNumber`](src/guard/isPositiveNumber.ts)\n- [`IsPrimitive`](src/guard/isPrimitive.ts)\n- [`IsPromise`](src/guard/isPromise.ts)\n- [`IsRegExp`](src/guard/isRegExp.ts)\n- [`IsSet`](src/guard/isSet.ts)\n- [`IsString`](src/guard/isString.ts)\n- [`IsSymbol`](src/guard/isSymbol.ts)\n- [`IsTrue`](src/guard/isTrue.ts)\n- [`IsTypedArray`](src/guard/isTypedArray.ts)\n- [`IsUint8Array`](src/guard/isUint8Array.ts)\n- [`IsUint8ClampedArray`](src/guard/isUint8ClampedArray.ts)\n- [`IsUint16Array`](src/guard/isUint16Array.ts)\n- [`IsUint32Array`](src/guard/isUint32Array.ts)\n- [`IsUndefined`](src/guard/isUndefined.ts)\n- [`IsWeakMap`](src/guard/isWeakMap.ts)\n- [`IsWeakRef`](src/guard/isWeakRef.ts)\n- [`IsWeakSet`](src/guard/isWeakSet.ts)\n\n### Node\n\n- [`IsDev`](src/node/isDev.ts)\n- [`IsProd`](src/node/isProd.ts)\n\n### Object\n\n- [`HasOwnProperty`](src/object/hasOwnProperty.ts)\n- [`MergeObject`](src/object/mergeObject.ts)\n\n### Runtime\n\n- [`IsBrowser`](src/runtime/isBrowser.ts)\n- [`IsBun`](src/runtime/isBun.ts)\n- [`IsDeno`](src/runtime/isDeno.ts)\n- [`IsNode`](src/runtime/isNode.ts)\n- [`IsServer`](src/runtime/isServer.ts)\n\n### String\n\n- [`CamelCase`](src/string/camelCase.ts)\n- [`CapitalCase`](src/string/capitalCase.ts)\n- [`Capitalize`](src/string/capitalize.ts)\n- [`CustomCase`](src/string/customCase.ts)\n- [`IsLowerCase`](src/string/isLowerCase.ts)\n- [`IsUpperCase`](src/string/isUpperCase.ts)\n- [`KebabCase`](src/string/kebabCase.ts)\n- [`PascalCase`](src/string/pascalCase.ts)\n- [`SnakeCase`](src/string/snakeCase.ts)\n- [`SpaceCase`](src/string/spaceCase.ts)\n- [`UnCapitalize`](src/string/unCapitalize.ts)\n\n## Check Also\n\n- [`@13onthecode/types`](https://github.com/13OnTheCode/types)\n\n## License\n\n[MIT](LICENSE.md) License &copy; 2023-PRESENT [13OnTheCode](https://github.com/13OnTheCode)\n","readmeFilename":"README.md"}