{"id":13670565,"url":"https://github.com/kib357/less-go","last_synced_at":"2026-04-02T17:45:13.002Z","repository":{"id":57519285,"uuid":"47600423","full_name":"kib357/less-go","owner":"kib357","description":"Less compiler for golang","archived":false,"fork":false,"pushed_at":"2017-08-21T07:35:37.000Z","size":2151,"stargazers_count":17,"open_issues_count":1,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-15T13:43:32.587Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kib357.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":"2015-12-08T05:23:05.000Z","updated_at":"2023-09-30T19:24:50.000Z","dependencies_parsed_at":"2022-09-06T03:42:48.452Z","dependency_job_id":null,"html_url":"https://github.com/kib357/less-go","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kib357/less-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kib357%2Fless-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kib357%2Fless-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kib357%2Fless-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kib357%2Fless-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kib357","download_url":"https://codeload.github.com/kib357/less-go/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kib357%2Fless-go/sbom","scorecard":{"id":559463,"data":{"date":"2025-08-11","repo":{"name":"github.com/kib357/less-go","commit":"9f0400998d19595d890d9366f4ec98347ea443ec"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":"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/29 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":"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":"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":"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":"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: Apache License 2.0: 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":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"}}]},"last_synced_at":"2025-08-20T13:15:02.727Z","repository_id":57519285,"created_at":"2025-08-20T13:15:02.727Z","updated_at":"2025-08-20T13:15:02.727Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31312489,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":[],"created_at":"2024-08-02T09:00:45.505Z","updated_at":"2026-04-02T17:45:12.983Z","avatar_url":"https://github.com/kib357.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","Ports of Less"],"sub_categories":["Go"],"readme":"# less-go \n## THIS PROJECT IS NO LONGER MAINTAINED, feel free to fork and use as boilerplate for further usages\n\n[![Build Status](https://secure.travis-ci.org/kib357/less-go.png?branch=master)](http://travis-ci.org/kib357/less-go)\n\n[Less](http://lesscss.org/) compiler for [Golang](https://golang.org/)\n\nBuilds CSS using original [Less compiler](https://github.com/less/less.js) and [Duktape](http://duktape.org/) embeddable Javascript engine\n\n## Status\n\nThis project is a work-in-progress, we accept pull requests.\n\n## Installation\n\n```\n    go get github.com/kib357/less-go\n```\n\n## Command Line usage\n\n```\n    cd $GOPATH/src/github.com/kib357/less-go/lessc\n    go get\n    go build\n    ./lessc --input=\"inputFile\" --output=\"outputFile\"\n    ./lessc -i inputFile -o outputFile\n```\n\nExamples:\n\n```\n    ./lessc --input=\"./styles.less\" --output=\"./styles.css\"\n    ./lessc -i styles.less -o styles.css\n```\n\nMore about usage you can see in cli help:\n\n```\n    ./lessc -h\n```\n\n## Programmatic usage\n\n```go\n    import \"github.com/kib357/less-go\"\n\n    func main() {\n        err := less.RenderFile(\"./styles.less\", \"./styles.css\", map[string]interface{}{\"compress\": true})\n    }\n```\n\n### Function reference\n\n#### RenderFile(input, output string, mods ...map[string]interface{}) error\n\nRenders Less and generates output CSS.\n\n#### SetReader(customReader Reader)\n\n```go\n    type Reader interface {\n\t    ReadFile(string) ([]byte, error)\n    }\n```\n\nSets a custom reader for .less files. You can use it to replace standard input from file system to another. Example:\n\n```go\n    type LessReader struct{}\n\n    var lessFiles = map[string][]byte{\"styles\": []byte{\".class { width: (1 + 1) }\"}}\n\n    func (LessReader) ReadFile(path string) ([]byte, error) {\n\t    lessFile, ok := lessFiles[path]\n        if !ok {\n            return \"\", errors.New(\"path not found\")\n        }\n        return lessFile, nil\n    }\n\n    func main() {\n        less.SetReader(LessReader)\n        ...\n    }\n\n```\n\n#### SetWriter(customWriter Writer)\n\n```go\n    type Writer interface {\n\t    WriteFile(string, []byte, os.FileMode) error\n    }\n```\n\nAnalogue of custom reader, but for output CSS.\n\n## Current limitations\n\nBecause of using C Javascript engine, cross compilation not supported. Not tested on Windows.\n\nCLI interface doesnt support options\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkib357%2Fless-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkib357%2Fless-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkib357%2Fless-go/lists"}