{"id":21428802,"url":"https://github.com/blockzilla101/citation","last_synced_at":"2025-07-05T20:03:48.257Z","repository":{"id":65542640,"uuid":"287576369","full_name":"Blockzilla101/citation","owner":"Blockzilla101","description":"papers please citation generator","archived":false,"fork":false,"pushed_at":"2023-02-10T13:18:30.000Z","size":410,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-19T00:46:39.708Z","etag":null,"topics":["javascript","papers-please"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Blockzilla101.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":"2020-08-14T16:23:03.000Z","updated_at":"2024-05-17T05:39:21.000Z","dependencies_parsed_at":"2023-02-08T04:45:35.461Z","dependency_job_id":null,"html_url":"https://github.com/Blockzilla101/citation","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blockzilla101%2Fcitation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blockzilla101%2Fcitation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blockzilla101%2Fcitation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blockzilla101%2Fcitation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Blockzilla101","download_url":"https://codeload.github.com/Blockzilla101/citation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225970897,"owners_count":17553410,"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":["javascript","papers-please"],"created_at":"2024-11-22T22:14:54.105Z","updated_at":"2024-11-22T22:14:54.633Z","avatar_url":"https://github.com/Blockzilla101.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Node.js library to create papers please citations.\n### Installation\nNeeds node.js version `^19.x.x`\u003cbr\u003e\nInstalling with npm `npm i --save @blockzilla101/citation`\u003cbr\u003e\nInstalling with yarn `yarn add @blockzilla101/citation`\n### Usage\n```js\nconst { Citation } = require('citation')\nconst citation = new Citation()\n// Optional: width and height can be set in the constructor too\n// new Citation(\u003cwidth\u003e, \u003cheight\u003e)\n\ncitation.reason = 'reason'\ncitation.penalty = 'penalty'\ncitation.title = 'title'\ncitation.width = 450\ncitation.height = 200\ncitation.barcode = [1, 0, 1, 1, 0, 0, 0, 1] // 0 = dont put a line, 1 = put a line; expands leftwards to fit the barcode\ncitation.resizeReason = true // whether to truncate the reason instead of expanding to fit it\n\ncitation.render('citation.png')\n// for a gif\ncitation.render('citation.gif', true)\n```\n`render()` returns the rendered image or gif as a buffer.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblockzilla101%2Fcitation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblockzilla101%2Fcitation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblockzilla101%2Fcitation/lists"}