{"id":21053034,"url":"https://github.com/compts/structkit","last_synced_at":"2026-01-25T00:32:44.899Z","repository":{"id":39968218,"uuid":"326456701","full_name":"compts/structkit","owner":"compts","description":"The Structkit utility library that will work in browser and NodeJs","archived":false,"fork":false,"pushed_at":"2026-01-12T07:44:19.000Z","size":693,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-12T16:31:17.472Z","etag":null,"topics":["javascript","javascript-library","utility-library"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/compts.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-01-03T16:58:05.000Z","updated_at":"2025-07-14T05:20:13.000Z","dependencies_parsed_at":"2024-04-14T12:41:37.956Z","dependency_job_id":"5ed5c7ea-9901-402a-97d7-03790e18fe1f","html_url":"https://github.com/compts/structkit","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"dd1bc8e3174565b4ebbabc19a9659e1dd5587ef9"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/compts/structkit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compts%2Fstructkit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compts%2Fstructkit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compts%2Fstructkit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compts%2Fstructkit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/compts","download_url":"https://codeload.github.com/compts/structkit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compts%2Fstructkit/sbom","scorecard":{"id":137981,"data":{"date":"2025-08-11","repo":{"name":"github.com/compts/structkit","commit":"4873961f492b1e95962f5c95f6c76ca2b8c76317"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":5.3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/5 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":"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":"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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":10,"reason":"30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql-analysis.yml:10","Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql-analysis.yml:11","Info: jobLevel 'contents' permission set to 'read': .github/workflows/release_deno.yaml:15","Warn: no topLevel permission defined: .github/workflows/cicd.yaml:1","Warn: no topLevel permission defined: .github/workflows/codeql-analysis.yml:1","Warn: no topLevel permission defined: .github/workflows/release_deno.yaml:1","Info: no jobLevel write permissions found"],"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/cicd.yaml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/compts/structkit/cicd.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/cicd.yaml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/compts/structkit/cicd.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/compts/structkit/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/compts/structkit/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/compts/structkit/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release_deno.yaml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/compts/structkit/release_deno.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release_deno.yaml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/compts/structkit/release_deno.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release_deno.yaml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/compts/structkit/release_deno.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release_deno.yaml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/compts/structkit/release_deno.yaml/main?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/cicd.yaml:20","Warn: npmCommand not pinned by hash: .github/workflows/cicd.yaml:21","Warn: npmCommand not pinned by hash: .github/workflows/cicd.yaml:25","Warn: npmCommand not pinned by hash: .github/workflows/release_deno.yaml:27","Info:   0 out of   8 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   4 npmCommand dependencies pinned"],"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"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":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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":7,"reason":"SAST tool detected but not run on all commits","details":["Info: SAST configuration detected: CodeQL","Warn: 2 commits out of 30 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-16T07:09:08.550Z","repository_id":39968218,"created_at":"2025-08-16T07:09:08.550Z","updated_at":"2025-08-16T07:09:08.550Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28739876,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T22:12:27.248Z","status":"ssl_error","status_checked_at":"2026-01-24T22:12:10.529Z","response_time":89,"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":["javascript","javascript-library","utility-library"],"created_at":"2024-11-19T16:01:44.696Z","updated_at":"2026-01-25T00:32:44.885Z","avatar_url":"https://github.com/compts.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Structkit\nJavascript framework is a utility tool, that helps you simplify in dealing data issue in your projects\n\n[![NPM version][npm-image]][npm-url] \n[![NPM version][npm-ts-image]][npm-url-ts] \n[![Build Status](https://github.com/compts/structkit/actions/workflows/cicd.yaml/badge.svg?branch=main)](https://github.com/compts/structkit/actions)\n[![NPM Downloads](https://img.shields.io/npm/dm/structkit?logo=npm\u0026style=flat-square)](https://npmtrends.com/structkit)\n[![deno land](http://img.shields.io/badge/available%20on-deno.land/x-lightgrey.svg?logo=deno\u0026labelColor=black)](https://jsr.io/@compts/structkit)\n[![Install Size](https://packagephobia.now.sh/badge?p=structkit)](https://packagephobia.now.sh/result?p=structkit)\n\n[Site](https://structkit.codehyouka.xyz/) |\n[Docs](https://structkit.codehyouka.xyz/api) |\n\n## Why Structkit\nA Javascript library that make easier in working with arrays, number,object, String and etc.\n\n## Download\n\nTo download this JS library and install in your local library\n * [Core build](https://raw.githubusercontent.com/compts/structkit/main/dist/web/structkit-full.iife.js) ([~143KB](https://raw.githubusercontent.com/compts/structkit/main/dist/web/structkit-full.iife.js))\n\nUsing npm to install in your project folder:\n```shell\n$ npm i structkit\n```\n\nDue to conflict in Typescript and ES, it was decided to separate in separate package for typescript(Still working in progess)\n```shell\n$ npm i structkit-ts\n```\n\n\n## How to import the Library\n\nIn a browser :\n```html\n\u003cscript src=\"structkit-full.iife.js\"\u003e\u003c/script\u003e\n```\n\nImport on cjs\n```bash\nconst {repeat} = require('structkit');\n\n```\n\nImport on ESM or TS\n```bash\nimport {repeat} from 'structkit';\n\n```\n\n## Example\n\nIn a browser\n```html\n_stk.repeat(\"1\",20)\n//11111111111111111111\n```\nkeep in mind `_stk` is used as global library at html\n\n\nCJS, ESM and TS use this code below\n```bash\nrepeat(\"1\",20)\n//11111111111111111111\n```\n\nIf you are familiar in curry function, good thing structkit is now also supported.\n```bash\ntest = repeat(__,20)\ntest(\"1\")\n//11111111111111111111\n```\nIn the example you noticed that we can apply and arguments if we are unsure of possible that you need to pass as well no need to create a function just for value only\n\n[npm-url]: https://www.npmjs.com/package/structkit\n[npm-url-ts]: https://www.npmjs.com/package/structkit-ts\n[npm-image]: https://img.shields.io/badge/structkit-1.4.873-brightgreen\n\n[npm-ts-image]: https://img.shields.io/badge/structkit:ts-1.4.87-brightgreen\n\n\n## Partial sampe you can use as your utitlity function\n\n[get the first index of array](#first-index-of-array)\n``` javascript\nfirst([2,3,4,5])// 2\n```\n\n[get the last index of array](#last-index-of-array)\n``` javascript\nlast([2,3,4,5])// 5\n```\n\n[get start and end of array index](#slice-array-index)\n``` javascript\narraySlice([1,2],1)// [2]\n```\n\n[get sum of array](#get-sum-of-array)\n``` javascript\narraySum([1,2])// 3\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompts%2Fstructkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcompts%2Fstructkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompts%2Fstructkit/lists"}