{"id":16463320,"url":"https://github.com/dptole/base2pn.js","last_synced_at":"2025-09-13T01:38:17.751Z","repository":{"id":57109563,"uuid":"77636270","full_name":"dptole/base2pn.js","owner":"dptole","description":"Custom base 2, 4, 8, 16, 32, 64 and 128 encoding/decoding in just one file.","archived":false,"fork":false,"pushed_at":"2017-12-28T01:09:04.000Z","size":12,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-08T15:44:51.851Z","etag":null,"topics":["base64","custom","decode","encode"],"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/dptole.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}},"created_at":"2016-12-29T19:50:48.000Z","updated_at":"2019-04-27T22:14:40.000Z","dependencies_parsed_at":"2022-08-20T17:41:01.087Z","dependency_job_id":null,"html_url":"https://github.com/dptole/base2pn.js","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/dptole/base2pn.js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dptole%2Fbase2pn.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dptole%2Fbase2pn.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dptole%2Fbase2pn.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dptole%2Fbase2pn.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dptole","download_url":"https://codeload.github.com/dptole/base2pn.js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dptole%2Fbase2pn.js/sbom","scorecard":{"id":354654,"data":{"date":"2025-08-11","repo":{"name":"github.com/dptole/base2pn.js","commit":"b56e965bd71512717ca63c696bf20335059be593"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.4,"checks":[{"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":"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":"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":"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":"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"Code-Review","score":0,"reason":"Found 0/9 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":"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":"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":"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":"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":"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":"Vulnerabilities","score":5,"reason":"5 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-h6ch-v84p-w6p9","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T09:14:00.513Z","repository_id":57109563,"created_at":"2025-08-18T09:14:00.514Z","updated_at":"2025-08-18T09:14:00.514Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274059157,"owners_count":25215251,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["base64","custom","decode","encode"],"created_at":"2024-10-11T11:14:06.164Z","updated_at":"2025-09-13T01:38:17.724Z","avatar_url":"https://github.com/dptole.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Base2\u003csup\u003en\u003c/sup\u003e\n=================\n\n  [![Build status][circle-ci-badge]][circle-ci]\n  [![Issue status][gh-issues-badge]][gh-issues]\n  [![NPM Version][npm-module-version-badge]][npm-module]\n  [![Downloads][npm-downloads-total-badge]][npm-module]\n  [![Say thanks][saythanks-badge]][saythanks-to]\n\nBase2pn.js provides a customizable base 2, 4, 8, [16][base16-url], [32][base32-url], [64][base64-url] and 128 encoding/decoding in just one file.\n\nBackend\n=======\n\n```\n$ npm i base2pn.js\n$ node\n\u003e const Base2pn = require('@dptole/base2pn.js')\n// It works the same as the frontend example.\n```\n\nFrontend\n========\n\n```html\n\u003cscript src=\"base2pn.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\nvar table = [\n      \"q\", \"a\", \"z\", \"w\", \"s\", \"x\", \"e\", \"d\", \"c\", \"r\", \"f\", \"v\", \"t\", \"g\",\n      \"b\", \"y\", \"h\", \"n\", \"u\", \"j\", \"m\", \"k\", \"i\", \"o\", \"l\", \"p\", \"Q\", \"W\",\n      \"E\", \"D\", \"S\", \"F\", \"A\", \"C\", \"Z\", \"X\", \"V\", \"G\", \"R\", \"T\", \"H\", \"B\",\n      \"N\", \"J\", \"Y\", \"U\", \"K\", \"M\", \"L\", \"I\", \"O\", \"P\", \"0\", \"9\", \"8\", \"7\",\n      \"6\", \"5\", \"4\", \"3\", \"2\", \"1\", \"!\", \"=\"\n    ]\n  , padding = \"-\"\n  , custom_base64 = new Base2pn(table, padding)\n  , message = \"Custom base 2, 4, 8, 16, 32, 64 and 128 encoding/decoding in just one file\"\n  \n    // \"h7kPDe1UcerCE8mAtZLAgzLAbzLAtjlYcwtOvzq8gzaCWRhAtjc6cekKl81VQi5Tv8nGl81VQi5TceGKceB9E7hAW85GcepBWem-\"\n  , encoded = custom_base64.encode(message)\n  \n    // \"Custom base 2, 4, 8, 16, 32, 64 and 128 encoding/decoding in just one file\"\n  , decoded = custom_base64.decode(encoded)\n;\n\u003c/script\u003e\n```\n\nLicense\n=======\n\n[MIT][LICENSE]\n\n[circle-ci]: https://circleci.com/gh/dptole/base2pn.js\n[circle-ci-badge]: https://img.shields.io/circleci/project/dptole/base2pn.js.svg\n[gh-issues-badge]: https://img.shields.io/github/issues-raw/dptole/base2pn.js.svg\n[gh-issues]: https://github.com/dptole/base2pn.js/issues\n[npm-module-version-badge]: https://img.shields.io/npm/v/@dptole/base2pn.js.svg\n[npm-module]: https://www.npmjs.org/package/@dptole/base2pn.js\n[npm-downloads-total-badge]: https://img.shields.io/npm/dt/@dptole/base2pn.js.svg\n[saythanks-badge]: https://img.shields.io/badge/say%20thanks-%E3%83%84-44cc11.svg\n[saythanks-to]: https://saythanks.io/to/dptole\n[base16-url]: https://en.wikipedia.org/wiki/Base16\n[base32-url]: https://en.wikipedia.org/wiki/Base32\n[base64-url]: https://en.wikipedia.org/wiki/Base64\n[LICENSE]: LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdptole%2Fbase2pn.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdptole%2Fbase2pn.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdptole%2Fbase2pn.js/lists"}