{"id":28466610,"url":"https://github.com/locize/fluent_conv","last_synced_at":"2025-08-25T17:07:59.735Z","repository":{"id":54660176,"uuid":"148052545","full_name":"locize/fluent_conv","owner":"locize","description":"fluent2js and js2fluent converter","archived":false,"fork":false,"pushed_at":"2024-04-04T10:33:48.000Z","size":39,"stargazers_count":4,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-17T06:27:08.120Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/locize.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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}},"created_at":"2018-09-09T18:10:54.000Z","updated_at":"2023-03-28T08:41:48.000Z","dependencies_parsed_at":"2024-04-04T11:48:32.049Z","dependency_job_id":null,"html_url":"https://github.com/locize/fluent_conv","commit_stats":{"total_commits":35,"total_committers":4,"mean_commits":8.75,"dds":"0.19999999999999996","last_synced_commit":"e077855f7c86af3e400bc8fde809f1a73d5b0cef"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/locize/fluent_conv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/locize%2Ffluent_conv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/locize%2Ffluent_conv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/locize%2Ffluent_conv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/locize%2Ffluent_conv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/locize","download_url":"https://codeload.github.com/locize/fluent_conv/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/locize%2Ffluent_conv/sbom","scorecard":{"id":596749,"data":{"date":"2025-08-11","repo":{"name":"github.com/locize/fluent_conv","commit":"b3225f4c933025c021ae0f16126228f64d99706c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"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":1,"reason":"Found 3/25 approved changesets -- score normalized to 1","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":"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":"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":"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":-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":"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":"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":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":"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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 8 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-20T23:19:21.966Z","repository_id":54660176,"created_at":"2025-08-20T23:19:21.967Z","updated_at":"2025-08-20T23:19:21.967Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272100683,"owners_count":24873442,"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-08-25T02:00:12.092Z","response_time":1107,"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":[],"created_at":"2025-06-07T07:04:51.988Z","updated_at":"2025-08-25T17:07:59.726Z","avatar_url":"https://github.com/locize.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![travis](https://img.shields.io/travis/locize/fluent_conv.svg)](https://travis-ci.org/locize/fluent_conv) [![npm](https://img.shields.io/npm/v/fluent_conv.svg)](https://npmjs.org/package/fluent_conv)\n\n## Download\n\nThe source is available for download from\n[GitHub](https://github.com/locize/fluent_conv/archive/master.zip).\nAlternatively, you can install using npm:\n\n```sh\nnpm install --save fluent_conv\n```\n\nYou can then `import` or `require()` fluent_conv as normal:\n\n```js\nimport fluent from 'fluent_conv'\n// or\nconst fluent = require('fluent_conv')\n\nfluent.ftl2js(str, (err, res) =\u003e {}, { respectComments: true })\n```\n\nOr you can direclty `import` or `require()` its functions:\n\n```js\nimport ftl2js from 'fluent_conv/ftl2js'\n// or\nconst ftl2js = require('fluent_conv/cjs/ftl2js')\n```\n\n## `ftl2js` optional parameters\n\n```js\n{\n    // If set to `false` will ignore all kind of comments.\n    // Useful for one-way conversion from ftl to js files.\n    respectComments: true,\n}\n```\n\n## Usage\n\n```js\nconst ftl = `\nemails =\n  { $unreadEmails -\u003e\n    [one] You have one unread email.\n   *[other] You have { $unreadEmails } unread emails.\n  }\n\n-brand-name =\n  {\n   *[nominative] Firefox\n    [accusative] Firefoxa\n  }\n\n-another-term = another term\n\napp-title = { -brand-name }\n\nrestart-app = Zrestartuj { -brand-name[accusative] }.\n\n# Note: { $title } is a placeholder for the title of the web page\n# captured in the screenshot. The default, for pages without titles, is\n# creating-page-title-default.\nlogin = Predefined value\n  .placeholder = example@email.com\n  .aria-label = Login input value\n  .title = Type your login email\n\nlogout = Logout\n`\n\nconst js = {\n  emails:\n    \"{ $unreadEmails -\u003e\\n  [one] You have one unread email.\\n *[other] You have { $unreadEmails } unread emails.\\n}\",\n  \"-brand-name\": \"{\\n *[nominative] Firefox\\n  [accusative] Firefoxa\\n}\",\n  \"-another-term\": \"another term\",\n  \"app-title\": \"{ -brand-name }\",\n  \"restart-app\": \"Zrestartuj { -brand-name[accusative] }.\",\n  login: {\n    comment:\n      \"Note: { $title } is a placeholder for the title of the web page\\ncaptured in the screenshot. The default, for pages without titles, is\\ncreating-page-title-default.\",\n    val: \"Predefined value\",\n    placeholder: \"example@email.com\",\n    \"aria-label\": \"Login input value\",\n    title: \"Type your login email\"\n  },\n  logout: \"Logout\"\n}\n\nimport ftl2js from 'fluent_conv/ftl2js'\nconst res = ftl2js(ftl)\n// res is like js\n// or with callback\nftl2js(ftl, (err, res) =\u003e {\n  // res is like js\n})\n\n\nimport js2ftl from 'fluent_conv/js2ftl'\nconst res = js2ftl(js)\n// res is like ftl\n// or with callback\njs2ftl(js, (err, res) =\u003e {\n  // res is like ftl\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flocize%2Ffluent_conv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flocize%2Ffluent_conv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flocize%2Ffluent_conv/lists"}