{"id":44616202,"url":"https://github.com/vedk21/common-utility-js","last_synced_at":"2026-02-14T13:04:08.087Z","repository":{"id":57204377,"uuid":"100487730","full_name":"vedk21/common-utility-js","owner":"vedk21","description":"Basic javascript utility functions are published. The JSON filtering and manipulation functions, date-time formatting functions are few examples.","archived":false,"fork":false,"pushed_at":"2017-09-30T20:59:05.000Z","size":1237,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-09T03:32:57.254Z","etag":null,"topics":["common-utitlity","javascript-library","library","npm","npm-package"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vedk21.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-16T12:38:32.000Z","updated_at":"2017-09-15T19:15:17.000Z","dependencies_parsed_at":"2022-09-18T00:50:59.696Z","dependency_job_id":null,"html_url":"https://github.com/vedk21/common-utility-js","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vedk21/common-utility-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vedk21%2Fcommon-utility-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vedk21%2Fcommon-utility-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vedk21%2Fcommon-utility-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vedk21%2Fcommon-utility-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vedk21","download_url":"https://codeload.github.com/vedk21/common-utility-js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vedk21%2Fcommon-utility-js/sbom","scorecard":{"id":917843,"data":{"date":"2025-08-11","repo":{"name":"github.com/vedk21/common-utility-js","commit":"4a4bd6ab47d4196416f5a6b7e142a9816e417dc1"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/13 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 20 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-24T21:54:40.191Z","repository_id":57204377,"created_at":"2025-08-24T21:54:40.191Z","updated_at":"2025-08-24T21:54:40.191Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29444081,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T12:43:28.304Z","status":"ssl_error","status_checked_at":"2026-02-14T12:43:14.160Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["common-utitlity","javascript-library","library","npm","npm-package"],"created_at":"2026-02-14T13:04:04.532Z","updated_at":"2026-02-14T13:04:08.079Z","avatar_url":"https://github.com/vedk21.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# common-utility-js\n\n## Installation\n\nTo install this library, run:\n\n```bash\n$ npm install common-utility-js --save\n```\n\n## Consuming your library\n\nOnce you have published your library to npm, you can import your library in any Angular application by running:\n\n```bash\n$ npm install common-utility-js\n```\n\nand then from your Angular `AppModule`:\n\n```typescript\nimport { BrowserModule } from '@angular/platform-browser';\nimport { NgModule } from '@angular/core';\n\nimport { AppComponent } from './app.component';\n\n// Import your library\nimport { CommonUtilityModule } from 'common-utility-js';\n\n@NgModule({\n  declarations: [\n    AppComponent\n  ],\n  imports: [\n    BrowserModule,\n\n    // Specify your library as an import\n    CommonUtilityModule\n  ],\n  providers: [],\n  bootstrap: [AppComponent]\n})\nexport class AppModule { }\n```\n\nOnce your library is imported, you can use its services (JSONFilterService) in your Angular application:\n\n```typescript\n// You can now use your library service to utilize json filter services\nimport { Component } from '@angular/core';\nimport { JSONUtilityService } from 'common-utility-js';\n\n@Component({\n  selector: 'app-root',\n  templateUrl: './app.component.html',\n  styleUrls: ['./app.component.css']\n})\nexport class AppComponent {\n\n  constructor(private jsonFilter: JSONUtilityService) {}\n\n  // use JSONUtilityService methods to perform various operations on JSON\n  //for-example\n\n  getJsonFiltered() {\n    const jsonArray = [\n      {\n        key: 'qwerty',\n        val: 'asdfgh'\n      },\n      {\n        key: 'zxcvb',\n        val: 'lkjhg'\n      }\n    ];\n\n    let targetJson = [{\n      key: 'qwerty',\n      val: 'asdfgh'\n    }];\n\n    console.log('_foreach');\n    this.jsonFilter._foreach(jsonArray, (key, value) =\u003e {\n      console.log('key: ' + key + ' --\u003e val: ' + JSON.stringify(value));\n    });\n\n    console.log('_jsonType');\n    console.log('type of json : ' + this.jsonFilter._jsonType(jsonArray[0].key));\n\n\n    console.log('_mergeJsons');\n    console.log(this.jsonFilter._mergeJsons(targetJson, jsonArray));\n\n    // you can also nest the methods to draw more filtered and useful output \n    console.log(this.jsonFilter._jsonType(this.jsonFilter._mergeJsons(targetJson, jsonArray)));\n\n```\n\n\n## License\n\nMIT © [vedant kakade](mailto:vedant99kakade@gmail.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvedk21%2Fcommon-utility-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvedk21%2Fcommon-utility-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvedk21%2Fcommon-utility-js/lists"}