{"id":15408189,"url":"https://github.com/one-aalam/flyt","last_synced_at":"2025-07-14T08:02:28.490Z","repository":{"id":151099996,"uuid":"82656414","full_name":"one-aalam/flyt","owner":"one-aalam","description":"Super-light javascript library to flatten arrays ","archived":false,"fork":false,"pushed_at":"2017-02-21T21:13:44.000Z","size":630,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T02:32:54.002Z","etag":null,"topics":["array-flatten","es6","javascript","mini-library"],"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/one-aalam.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2017-02-21T08:42:25.000Z","updated_at":"2023-04-11T15:20:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"9724321d-09e3-482c-a649-ee90f37bd24d","html_url":"https://github.com/one-aalam/flyt","commit_stats":{"total_commits":19,"total_committers":1,"mean_commits":19.0,"dds":0.0,"last_synced_commit":"0b62029b33335c01de21a1e49951c5d3fc228846"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/one-aalam/flyt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/one-aalam%2Fflyt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/one-aalam%2Fflyt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/one-aalam%2Fflyt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/one-aalam%2Fflyt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/one-aalam","download_url":"https://codeload.github.com/one-aalam/flyt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/one-aalam%2Fflyt/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265262186,"owners_count":23736407,"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","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":["array-flatten","es6","javascript","mini-library"],"created_at":"2024-10-01T16:32:26.524Z","updated_at":"2025-07-14T08:02:28.432Z","avatar_url":"https://github.com/one-aalam.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flyt\nSuper-light javascript library to flatten arrays\n\n### Outline\n\nThis library exposes functionality to transalte an array of\narbitarily nested arrays of integers into a flat array of integers. e.g. \n`[[1, 2, [3]], 4] -\u003e [1, 2, 3, 4]`\nIt is trivial code but organised to support future extensions and is just\none step away from `npm publish`.\n\n### Features\n\n1. Bundles library code into all library targets ie CommonJS, AMD, ES2015 exports, UMD.\n\n### Setup\nFor build generation, Node is required. Ensure Node's available and run `npm i` in project's root directory. Find build generation step in [Usage](#Usage) section(next). \n\n### Usage\n- New builds could be created anytime running `npm build` or `npm build:min`\n- To update examples code, run `npm update:browser-build` or `npm update:node-build`. Distributable file is updated in `/dist` before\n  preparing examples.\n- Open [index.html](/examples/browser/index.html)(Browser) or fire `node examples/node/index.js`(Node) to check code's\n  functionality for respective environment. \n- Method will be available as _flyt.**flatten([])**_\n    - Browser: `flyt.flatten([])`\n    - Node: `var flyt = require('./flyt'); flyt.flatten([]);`\n- Run tests calling `npm run test` from CLI and you shall see something like\n  ![flyt_test_pass](/res/flyt_test_pass.gif)\n\n### Drawback\n\nBuilt for demonstration purposes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fone-aalam%2Fflyt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fone-aalam%2Fflyt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fone-aalam%2Fflyt/lists"}