{"_id":"@bryancm/nj-utilities","_rev":"4-63d234b9f1e9cbc32c72a883bbe473f5","name":"@bryancm/nj-utilities","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"@bryancm/nj-utilities","version":"1.0.0","keywords":["utils","utility","utilities","javascript","typescript","nodejs","node"],"author":{"url":"https://github.com/BryanCarrera37","name":"Bryan Carrera","email":"bc00932@gmail.com"},"license":"MIT","_id":"@bryancm/nj-utilities@1.0.0","maintainers":[{"name":"bryancm","email":"bc00932@gmail.com"}],"bugs":{"url":"git remote add origin https://github.com/BryanCarrera37/nj-utilities/issues"},"dist":{"shasum":"a0057ff89d0835275a4e59ec6afb2e98a18331d6","tarball":"https://registry.npmjs.org/@bryancm/nj-utilities/-/nj-utilities-1.0.0.tgz","fileCount":31,"integrity":"sha512-IlrsBKB6E1ZHA7GGbI1GKjW5WFwZTPKael9/9t9Y1tCdzLSRFsjO4pDlNzlv8tH5/xLjqSeKgty775KEft2zbA==","signatures":[{"sig":"MEUCIQCu7pxPvW7ckrVUR8/0gor8r53biOFSX/c1N7V53epgeQIgDiwHzzLe+BHw15hkEgrJReidasQUGLWIHFYnIeOoslY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":17260},"main":"index.js","scripts":{"tsc":"tsc","test":"jest","build":"rm -rf dist && tsc -p ./tsconfig.build.json && npm run copy:files","format":"prettier --write \"src/**/*.ts\"","copy:files":"cp ./LICENSE ./dist/ && cp ./README.md ./dist/ && cp ./package.json ./dist/","test:watch":"jest --watch","publish:npm":"yarn --cwd ./dist/ publish --access public","format:check":"prettier --check \"src/**/*.ts\"","version:major":"npm version major -m \"BREAKING CHANGE: bump version to %s\"","version:minor":"npm version minor -m \"feat: bump version to %s\"","version:patch":"npm version patch -m \"chore: bump version to %s\""},"_npmUser":{"name":"bryancm","email":"bc00932@gmail.com"},"repository":{"url":"https://github.com/BryanCarrera37/nj-utilities","type":"git"},"description":"This is a collection of utility functions for JavaScript and Node.js. You can use them in your projects to simplify common tasks and improve code readability.","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2024 Bryan Ant. Carrera\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","dependencies":{"moment":"^2.30.1"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","eslint":"^9.26.0","ts-jest":"^29.3.2","prettier":"^3.5.3","typescript":"^5.8.3","@types/jest":"^29.5.14","eslint-config-prettier":"^10.1.2","eslint-plugin-prettier":"^5.4.0"},"_npmOperationalInternal":{"tmp":"tmp/nj-utilities_1.0.0_1746673545938_0.6893045866274268","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@bryancm/nj-utilities","version":"1.0.1","keywords":["utils","utility","utilities","javascript","typescript","nodejs","node"],"author":{"url":"https://github.com/BryanCarrera37","name":"Bryan Carrera","email":"bc00932@gmail.com"},"license":"MIT","_id":"@bryancm/nj-utilities@1.0.1","maintainers":[{"name":"bryancm","email":"bc00932@gmail.com"}],"bugs":{"url":"git remote add origin https://github.com/BryanCarrera37/nj-utilities/issues"},"dist":{"shasum":"3566715adfc19eb045db1677781444d5ecb92acc","tarball":"https://registry.npmjs.org/@bryancm/nj-utilities/-/nj-utilities-1.0.1.tgz","fileCount":44,"integrity":"sha512-6JIjT8eMhIVd1div5WahnOIdT4uZWAxO3IEvb+guJiM0N7cHey8Cm+RV/vxXJxDrEZh+p0VCqF8b7cGMqqx/nA==","signatures":[{"sig":"MEUCIDvfYp60/C0QYXjGBFCHcQ5gqWmDUpoJ+UTFwo5rQ61IAiEA5RgjAQBYlIonGLM/GxG76cx1CtGEkSW3S0jjHFXrJ2E=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":54960},"main":"index.js","scripts":{"tsc":"tsc","test":"jest","build":"rm -rf dist && tsc -p ./tsconfig.build.json && npm run copy:files","format":"prettier --write \"src/**/*.ts\"","copy:files":"cp ./LICENSE ./dist/ && cp ./README.md ./dist/ && cp ./package.json ./dist/","test:watch":"jest --watch","publish:npm":"yarn --cwd ./dist/ publish --access public","format:check":"prettier --check \"src/**/*.ts\"","version:major":"npm version major -m \"BREAKING CHANGE: bump version to %s\"","version:minor":"npm version minor -m \"feat: bump version to %s\"","version:patch":"npm version patch -m \"chore: bump version to %s\""},"_npmUser":{"name":"bryancm","email":"bc00932@gmail.com"},"repository":{"url":"https://github.com/BryanCarrera37/nj-utilities","type":"git"},"description":"This is a collection of utility functions for JavaScript and Node.js. You can use them in your projects to simplify common tasks and improve code readability.","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2024 Bryan Ant. Carrera\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","dependencies":{"moment":"^2.30.1"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","eslint":"^9.26.0","ts-jest":"^29.3.2","prettier":"^3.5.3","typescript":"^5.8.3","@types/jest":"^29.5.14","eslint-config-prettier":"^10.1.2","eslint-plugin-prettier":"^5.4.0"},"_npmOperationalInternal":{"tmp":"tmp/nj-utilities_1.0.1_1746675585905_0.7577453982073175","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@bryancm/nj-utilities","version":"1.0.2","keywords":["utils","utility","utilities","javascript","typescript","nodejs","node"],"author":{"url":"https://github.com/BryanCarrera37","name":"Bryan Carrera","email":"bc00932@gmail.com"},"license":"MIT","_id":"@bryancm/nj-utilities@1.0.2","maintainers":[{"name":"bryancm","email":"bc00932@gmail.com"}],"bugs":{"url":"git remote add origin https://github.com/BryanCarrera37/nj-utilities/issues"},"dist":{"shasum":"6b6e219778de3bd433f00e30a189d6e457d0ba03","tarball":"https://registry.npmjs.org/@bryancm/nj-utilities/-/nj-utilities-1.0.2.tgz","fileCount":44,"integrity":"sha512-aUwMsvLCuawCmqcLIcMKgDBRCnxzLZd6Vg1VtlszTmG14awMK9uGGe1OgY95/JB8yUS77goMq92CKDBi0dgcUQ==","signatures":[{"sig":"MEUCICDeERJ2H/WiV/TBb8BWN4bVUlv008W2+8L7FG4d4JNkAiEA6RQTpe/TtSHPSA2f4Eu33f/m7PL08h03FWJZ1Kz169Y=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":55142},"main":"index.js","scripts":{"tsc":"tsc","test":"jest","build":"rm -rf dist && tsc -p ./tsconfig.build.json && npm run copy:files","format":"prettier --write \"src/**/*.ts\"","copy:files":"cp ./LICENSE ./dist/ && cp ./README.md ./dist/ && cp ./package.json ./dist/","test:watch":"jest --watch","publish:npm":"yarn --cwd ./dist/ publish --access public","format:check":"prettier --check \"src/**/*.ts\"","version:major":"npm version major -m \"BREAKING CHANGE: bump version to %s\"","version:minor":"npm version minor -m \"feat: bump version to %s\"","version:patch":"npm version patch -m \"chore: bump version to %s\""},"_npmUser":{"name":"bryancm","email":"bc00932@gmail.com"},"repository":{"url":"https://github.com/BryanCarrera37/nj-utilities","type":"git"},"description":"This is a collection of utility functions for JavaScript and Node.js. You can use them in your projects to simplify common tasks and improve code readability.","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2024 Bryan Ant. Carrera\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","dependencies":{"moment":"^2.30.1"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","eslint":"^9.26.0","ts-jest":"^29.3.2","prettier":"^3.5.3","typescript":"^5.8.3","@types/jest":"^29.5.14","eslint-config-prettier":"^10.1.2","eslint-plugin-prettier":"^5.4.0"},"_npmOperationalInternal":{"tmp":"tmp/nj-utilities_1.0.2_1746751075284_0.30002953712247904","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@bryancm/nj-utilities","description":"This is a collection of utility functions for JavaScript and Node.js. You can use them in your projects to simplify common tasks and improve code readability.","version":"1.1.0","license":"MIT","author":{"name":"Bryan Carrera","email":"bc00932@gmail.com","url":"https://github.com/BryanCarrera37"},"repository":{"type":"git","url":"https://github.com/BryanCarrera37/nj-utilities"},"bugs":{"url":"git remote add origin https://github.com/BryanCarrera37/nj-utilities/issues"},"keywords":["utils","utility","utilities","javascript","typescript","nodejs","node"],"main":"index.js","scripts":{"tsc":"tsc","format:check":"prettier --check \"src/**/*.ts\"","format":"prettier --write \"src/**/*.ts\"","copy:files":"cp ./LICENSE ./dist/ && cp ./README.md ./dist/ && cp ./package.json ./dist/","build":"rm -rf dist && tsc -p ./tsconfig.build.json && npm run copy:files","publish:npm":"yarn --cwd ./dist/ publish --access public","version:patch":"npm version patch -m \"chore: bump version to %s\"","version:minor":"npm version minor -m \"feat: bump version to %s\"","version:major":"npm version major -m \"BREAKING CHANGE: bump version to %s\"","test":"jest","test:watch":"jest --watch"},"dependencies":{"moment":"^2.30.1"},"devDependencies":{"@types/jest":"^29.5.14","eslint":"^9.26.0","eslint-config-prettier":"^10.1.2","eslint-plugin-prettier":"^5.4.0","jest":"^29.7.0","prettier":"^3.5.3","ts-jest":"^29.3.2","typescript":"^5.8.3"},"licenseText":"MIT License\n\nCopyright (c) 2024 Bryan Ant. Carrera\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"@bryancm/nj-utilities@1.1.0","dist":{"shasum":"2d14fdd32b0a83fa2c63ad81ffb200d971da0c8f","integrity":"sha512-hpCa25snPAebpB+tBD81UibQoQhsKRJ1GNbTR/7h/vBFogOSrjyyt8YCeRwz1nPojR05UqhVeMoKUjdGxO5SBQ==","tarball":"https://registry.npmjs.org/@bryancm/nj-utilities/-/nj-utilities-1.1.0.tgz","fileCount":80,"unpackedSize":74511,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDF7VrdfST4io9ibdlcLXXMtce+0FGejKoS/V6a8Z47IwIhANoi4Pk1Da2tKAqsvxdGFzxDNtWlILhA9acYOHRljaSC"}]},"_npmUser":{"name":"bryancm","email":"bc00932@gmail.com"},"directories":{},"maintainers":[{"name":"bryancm","email":"bc00932@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/nj-utilities_1.1.0_1746922215598_0.723903181683869"},"_hasShrinkwrap":false}},"time":{"created":"2025-05-08T03:05:45.869Z","modified":"2025-05-11T00:10:15.968Z","1.0.0":"2025-05-08T03:05:46.114Z","1.0.1":"2025-05-08T03:39:46.083Z","1.0.2":"2025-05-09T00:37:55.450Z","1.1.0":"2025-05-11T00:10:15.784Z"},"bugs":{"url":"git remote add origin https://github.com/BryanCarrera37/nj-utilities/issues"},"author":{"name":"Bryan Carrera","email":"bc00932@gmail.com","url":"https://github.com/BryanCarrera37"},"license":"MIT","keywords":["utils","utility","utilities","javascript","typescript","nodejs","node"],"repository":{"type":"git","url":"https://github.com/BryanCarrera37/nj-utilities"},"description":"This is a collection of utility functions for JavaScript and Node.js. You can use them in your projects to simplify common tasks and improve code readability.","maintainers":[{"name":"bryancm","email":"bc00932@gmail.com"}],"readme":"# nj-utilities\n\nThis is a collection of utility functions for JavaScript and Node.js. You can use them in your projects to simplify common tasks and improve code readability. You'll find actions for:\n\n- array\n- date\n- email\n- object\n- etc\n\nAlso, there's some defined values for regex and common messages and values for requests.\n\n## Instructions\n\n### Installation\n\n```bash\n$ npm install @bryancm/nj-utilities\n```\n\nor\n\n```bash\n$ yarn add @bryancm/nj-utilities\n```\n\n### Usage\n\nAfter adding the library in your project you can use any of the functionalities listed below:\n\n- Builders\n  - logger\n- Const Values\n  - regex\n- Enums\n  - activated-field-values\n  - console-text-colors\n  - log-level\n  - server-message\n- Helpers\n  - array-helper\n  - date-helper\n  - email-helper\n  - numeric-helper\n  - object-helper\n  - string-helper\n  - values-helper\n- Interfaces\n  - logger-file-config\n  - logger\n- Services\n  - console-logger\n  - file-logger\n  - logger\n\nFor example, within the values-helper file you can find a good function to get the values prepared for a WHERE-IN SQL Condition. The name of that function is getValuesPreparedForWhereClauseWithIn and the usage is like:\n\n```ts\nconsole.log(getValuesPreparedForWhereClauseWithIn([1, 2, 3, 4, 5, 6]));\n// Output: 1, 2, 3, 4, 5, 6\n```\n\nAnd, it can be something like:\n\n```ts\nconst values = getValuesPreparedForWhereClauseWithIn([1, 2, 3, 4, 5, 6]);\nconst query = `SELECT name, age FROM people WHERE id IN (${values})`;\nconsole.log(query);\n// Output: SELECT name, age FROM people WHERE id IN (1, 2, 3, 4, 5, 6)\n```\n","readmeFilename":"README.md"}