{"id":20760350,"url":"https://github.com/vanng822/jcash","last_synced_at":"2026-04-18T23:32:38.692Z","repository":{"id":2874850,"uuid":"3880782","full_name":"vanng822/jcash","owner":"vanng822","description":"[DEPRECATED] Javascript, css and image files hashing for nodejs/express","archived":false,"fork":false,"pushed_at":"2019-06-14T17:08:56.000Z","size":87,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-26T11:43:19.616Z","etag":null,"topics":[],"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/vanng822.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":"2012-03-30T20:44:39.000Z","updated_at":"2020-07-30T12:23:57.000Z","dependencies_parsed_at":"2022-07-31T14:09:33.565Z","dependency_job_id":null,"html_url":"https://github.com/vanng822/jcash","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/vanng822/jcash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanng822%2Fjcash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanng822%2Fjcash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanng822%2Fjcash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanng822%2Fjcash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vanng822","download_url":"https://codeload.github.com/vanng822/jcash/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanng822%2Fjcash/sbom","scorecard":{"id":916071,"data":{"date":"2025-08-18","repo":{"name":"github.com/vanng822/jcash","commit":"a89950add44452180b1a8631131abc89a3e07628"},"scorecard":{"version":"v5.2.1-41-g40576783","commit":"40576783fda6698350fcbbeaea760ff827433034"},"score":3,"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/40576783fda6698350fcbbeaea760ff827433034/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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#dangerous-workflow"}},{"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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#token-permissions"}},{"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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#maintained"}},{"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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#sast"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#code-review"}},{"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/40576783fda6698350fcbbeaea760ff827433034/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/40576783fda6698350fcbbeaea760ff827433034/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/40576783fda6698350fcbbeaea760ff827433034/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/40576783fda6698350fcbbeaea760ff827433034/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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#security-policy"}},{"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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#license"}},{"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/40576783fda6698350fcbbeaea760ff827433034/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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#signed-releases"}},{"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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-24T21:02:34.357Z","repository_id":2874850,"created_at":"2025-08-24T21:02:34.358Z","updated_at":"2025-08-24T21:02:34.358Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31988694,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"ssl_error","status_checked_at":"2026-04-18T20:23:29.375Z","response_time":103,"last_error":"SSL_read: 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":[],"created_at":"2024-11-17T10:13:15.808Z","updated_at":"2026-04-18T23:32:38.668Z","avatar_url":"https://github.com/vanng822.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## [DEPRECATED]\nPlease I have no longer time for maintaining this package.\nPrevious version depended on old version of uglify-js which had security issues\nhttps://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-8857\nhttps://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-8858\nPLEASE DO NOT USE THIS PACKAGE\n\n## jcash\nThis project is mostly for adapting solutions out there for my personal use.\nFor the size of the image you have to install GraphicsMagick (http://www.graphicsmagick.org/)\n\n## Usage\n### Howto configure\n\t/**\n\t *\n\t * configuration rules\n\t * location referred to the path in the url\n\t *\n\t  {\n\t \t\tfiles: {\n\t \t\t\tblock1 : [filename1, filename2, ...],\n\t \t\t\t...\n\t \t\t},\n\t \t\turls : {\n\t \t\t\tblock1 : [url1, url2,...],\n\t \t\t\t...\n\t \t\t},\n\t \t\tlocationMap : {\n\t \t\t\tpath1 : [block1, block2,...],\n\t \t\t\tpath2 : [block1,block3,...],\n\t \t\t\t...\n\t \t\t}\n\t  }\n\t */\n\n\n### Real example\n\nReal configuration at http://igeonote.com\n\n\tvar config = {\n\t\tjs : {\n\t\t\tfiles : {\n\t\t\t\t'igeonote' : [\n\t\t\t\t\t'vnf/namespace.js',\n\t\t\t\t\t'vnf/language.js',\n\t\t\t\t\t'vnf/util/gplusone.js',\n\t\t\t\t\t'vnf/util/fbshare.js',\n\t\t\t\t\t'vnf/util/geolocation.js',\n\t\t\t\t\t'vnf/util/loading.js',\n\t\t\t\t\t'vnf/util/gatracking.js',\n\t\t\t\t\t'jquery/jhistory.js',\n\t\t\t\t\t'igeonote.js']\n\t\t\t},\n\t\t\turls : {\n\t\t\t\t'jQuery' : ['http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js'],\n\t\t\t\t'googleMap' : ['http://maps.google.com/maps/api/js?sensor=false']\n\t\t\t},\n\t\t\tlocationMap : {\n\t\t\t\t'/' : ['jQuery', 'igeonote', 'googleMap'],\n\t\t\t\t'/note' : ['jQuery', 'igeonote', 'googleMap'],\n\t\t\t\t'/city/map' : ['jQuery', 'igeonote', 'googleMap']\n\t\t\t}\n\t\t},\n\t\tcss : {\n\t\t\tfiles : {\n\t\t\t\t'igeonote' : ['igeonote.css'],\n\t\t\t\t'mobile' : ['igeonote-phone.css']\n\t\t\t},\n\t\t\turls : {\n\n\t\t\t},\n\t\t\tlocationMap : {\n\t\t\t\t'*' : ['igeonote']\n\t\t\t}\n\t\t}\n\t};\n\nBasic server setup\n\n\tvar express = require('express');\n\tvar staticHandler = require('jcash');\n\tvar app = express.createServer();\n\tvar jsManager = staticHandler.getJsManager();\n\tvar cssManager = staticHandler.getCssManager();\n\tvar imageManager = staticHandler.getImageManager({path : __dirname + '/public/img', hasGm : true});\n\n\t/* parsing the configuration */\n\tjsManager.parseConfig(staticConfig.js);\n\tcssManager.parseConfig(staticConfig.css);\n\n\n\t/* for serving the contents */\n\tstaticHandler.bootstrap(app);\n\n\t/* Adding template functions */\n\tapp.dynamicHelpers(staticHandler.dynamicHelpers);\n\n\t/* generate the cache */\n\tjsManager.preRenderAll();\n\tcssManager.preRenderAll();\n\timageManager.fetchFiles();\n\n\nContent template (ejs templates)\n\n\t\u003c% addBottomScript('some javascript including script-tag here') %\u003e\n\t\u003c%- renderImageTag('/img/icons/loading.gif') %\u003e\n\nlayout template with automatic location mapping\n\n\t\u003chtml\u003e\n\t\t\u003chead\u003e\n\t\t\u003c%- renderStyleTags() %\u003e\n\t\t\u003c/head\u003e\n\t\t\u003cbody\u003e\n\t\t\u003c%- body %\u003e\n\t\t\u003c%- renderScriptTags() %\u003e\n\t\t\u003c%- renderBottomScripts() %\u003e\n\t\t\u003cscript type=\"text/javascript\"\u003e\n\t\t$(function(){\n\t\t\tVNF.util.Loading.loadingImage = \"\u003c%- getImageUrl('/img/icons/loading.gif') %\u003e\";\n\t\t});\n\t\t\u003c/script\u003e\n\t\t\u003c/body\u003e\n\t\u003c/html\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvanng822%2Fjcash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvanng822%2Fjcash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvanng822%2Fjcash/lists"}