{"id":23511181,"url":"https://github.com/percolate/neue","last_synced_at":"2025-04-18T15:03:09.441Z","repository":{"id":10728418,"uuid":"12981527","full_name":"percolate/neue","owner":"percolate","description":"A minimal web font loader","archived":false,"fork":false,"pushed_at":"2023-03-16T18:01:45.000Z","size":164,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":71,"default_branch":"master","last_synced_at":"2025-03-29T06:23:12.956Z","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/percolate.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-09-20T18:58:33.000Z","updated_at":"2023-03-16T18:01:49.000Z","dependencies_parsed_at":"2022-09-03T06:24:44.894Z","dependency_job_id":null,"html_url":"https://github.com/percolate/neue","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/percolate%2Fneue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/percolate%2Fneue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/percolate%2Fneue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/percolate%2Fneue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/percolate","download_url":"https://codeload.github.com/percolate/neue/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249509269,"owners_count":21283556,"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":[],"created_at":"2024-12-25T12:13:38.316Z","updated_at":"2025-04-18T15:03:09.420Z","avatar_url":"https://github.com/percolate.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# neue\n\n[![Build Status](https://circleci.com/gh/percolate/neue.png?circle-token=6bbc1bb47f0b1add61020aa5c48b878e5fef201e)](https://circleci.com/gh/percolate/neue)\n\n## A minimal web font loader\n\nAsync loading of linked fonts with `@font-face`.\n\n## Installation\n\nInstall with npm:\n\n```\n$ npm install neue\n```\n\n## Downloads\n\n- [neue.js](dist/neue.js)\n- [neue.min.js](dist/neue.min.js)\n\n## Usage\n\nLoad font families using [FVD-style](https://github.com/percolate/fvd) declarations:\n\n```js\nneue.load([\n    { families: ['Source Sans Pro:n2,n3,n4,n6,n7,n9'], css: '//fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400,600,700,900' }\n], function(err){\n    // fonts are ready!\n})\n```\n\nWhere the CSS file looks like this:\n\n```css\n@font-face {\n    font-family: 'Source Sans Pro';\n    font-style: normal;\n    font-weight: 200;\n    src: ...\n}\n@font-face {\n    font-family: 'Source Sans Pro';\n    font-style: normal;\n    font-weight: 300;\n    src: ...\n}\n@font-face {\n    font-family: 'Source Sans Pro';\n    font-style: normal;\n    font-weight: 400;\n    src: ...\n}\n@font-face {\n    font-family: 'Source Sans Pro';\n    font-style: normal;\n    font-weight: 600;\n    src: ...\n}\n@font-face {\n    font-family: 'Source Sans Pro';\n    font-style: normal;\n    font-weight: 700;\n    src: ...\n}\n@font-face {\n    font-family: 'Source Sans Pro';\n    font-style: normal;\n    font-weight: 900;\n    src: ...\n}\n```\n\n## Utilities\n\n### `parse`\n\n```js\nneue.parse('Source Sans Pro:n2') // { family: 'Source Sans Pro', variations: ['n2'] }\n```\n\n### `stringify`\n\n```js\nneue.stringify('Source Sans Pro:n2') // ['source-sans-pro-n2']\n```\n\n## Example\n\nRun the example server at [http://127.0.0.1:3000](http://127.0.0.1:3000):\n\n```\n$ npm run example-server\n```\n\n## Tests\n\nRun the test server at [http://127.0.0.1:8000](http://127.0.0.1:8000):\n\n```\n$ grunt test:dev\n```\n\n## Builds\n\nCreate standalone `dist/neue.js` and `dist/neue.min.js` builds:\n\n```\n$ grunt dist\n```\n\n## License\n\nMIT License, see [LICENSE](https://github.com/percolate/neue/blob/master/LICENSE.md) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpercolate%2Fneue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpercolate%2Fneue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpercolate%2Fneue/lists"}