{"id":18396633,"url":"https://github.com/ideyuta/ghost-writer","last_synced_at":"2025-04-07T04:32:44.501Z","repository":{"id":57250956,"uuid":"51962560","full_name":"ideyuta/ghost-writer","owner":"ideyuta","description":":ghost: Ghost Writer outputs the sentence like typewriter","archived":false,"fork":false,"pushed_at":"2016-04-20T04:35:24.000Z","size":297,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-22T13:23:10.764Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://ideyuta.com/ghost-writer/","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/ideyuta.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":"2016-02-17T23:13:19.000Z","updated_at":"2023-07-15T13:19:50.000Z","dependencies_parsed_at":"2022-08-24T16:52:11.036Z","dependency_job_id":null,"html_url":"https://github.com/ideyuta/ghost-writer","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ideyuta%2Fghost-writer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ideyuta%2Fghost-writer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ideyuta%2Fghost-writer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ideyuta%2Fghost-writer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ideyuta","download_url":"https://codeload.github.com/ideyuta/ghost-writer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247595073,"owners_count":20963939,"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-11-06T02:14:26.679Z","updated_at":"2025-04-07T04:32:44.214Z","avatar_url":"https://github.com/ideyuta.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cbr\u003e\n\u003ch1 align=\"center\"\u003eGhost Writer\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\u003cem\u003eGhost Writer outputs the sentence like typewriter.\u003c/em\u003e\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n\u003cbr\u003e\n|\n\u003cb\u003e\u003ca href=\"#installation\"\u003e Installation \u003c/a\u003e\u003c/b\u003e|\n\u003cb\u003e\u003ca href=\"#usage\"\u003e Usage \u003c/a\u003e\u003c/b\u003e|\n\u003cb\u003e\u003ca href=\"#advanced-use\"\u003e Advanced Use \u003c/a\u003e\u003c/b\u003e|\n\u003cb\u003e\u003ca href=\"#types\"\u003e Types \u003c/a\u003e\u003c/b\u003e|\n\u003cb\u003e\u003ca href=\"#license\"\u003e License \u003c/a\u003e\u003c/b\u003e|\n\u003cb\u003e\u003ca href=\"http://ideyuta.com/ghost-writer/\" target=\"_blank\"\u003e Demo → \u003c/a\u003e\u003c/b\u003e|\n\u003c/p\u003e\n\u003cbr\u003e\n\u003cbr\u003e\n\n## Installation\n\n```\nnpm install ghost-writer\n```\n\n## Usage\n\n#### Japanese Typewriting\n\n![Demo - Ghostruct](./demo-ghostruct.gif)\n\n```js\nimport ghostWriter from 'ghost-writer';\n\nconst struct = [{\n  i: 'anoiーhatoーvono',\n  o: 'あのイーハトーヴォの'\n}, {\n  i: 'sukitoottakaze',\n  o: 'すきとおった風、'\n}, {\n  i: 'natsudemo',\n  o: '夏でも'\n}, {\n  i: 'sokoni',\n  o: '底に'\n}, {\n  i: 'tsumetasawomotsu',\n  o: '冷たさをもつ'\n}, {\n  i: 'aoisora',\n  o: '青いそら'\n}];\nconst writer = ghostWriter(struct);\n\nlet text = '';\nwriter(t =\u003e text = t);\n```\n\n#### Simple Typewriting\n\n![Demo - Simple Text](./demo-simple-text.gif)\n\n```js\nimport ghostWriter from 'ghost-writer';\n\nconst writer = ghostWriter('あのイーハトーヴォのすきとおった風');\n\nlet text = '';\nwriter(t =\u003e text = t);\n```\n\n![Demo - English](./demo-en.gif)\n\n```js\nimport ghostWriter from 'ghost-writer';\n\nconst struct = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit';\nconst writer = ghostWriter(struct);\n\nlet text = '';\nwriter(t =\u003e text = t, 50);\n```\n\n## Advanced Use\n\n```js\nimport {ghost} from 'ghost-writer';\n\nghost([{i: 'anoiーhatoーvono', o: 'あのイーハトーヴォの'}]);\n\n/* return\n  [\n    'あ',\n    'あn',\n    'あの',\n    'あのい',\n    'あのいー',\n    'あのいーh',\n    'あのいーは',\n    'あのいーはt',\n    'あのいーはと',\n    'あのいーはとー',\n    'あのいーはとーv',\n    'あのいーはとーゔぉ',\n    'あのいーはとーゔぉn',\n    'あのいーはとーゔぉの',\n    'あのイーハトーヴォの'\n  ]\n*/\n```\n\n\n## Types\n\n```js\nghostWriter: (struct: RawGhostruct|string) =\u003e writer\n```\n\n```js\nwriter: (\n  callbackFunction: (string) =\u003e void,\n  msec: number\n) =\u003e string\n```\n\n```js\nghost: (struct: RawGhostruct|string) =\u003e string[]\n```\n\n```js\nRawGhostruct: [{\n  i: RawGhostruct | string,\n  o: string\n}]\n```\n\n## License\n\n[MIT](https://github.com/ideyuta/ghost-writer/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fideyuta%2Fghost-writer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fideyuta%2Fghost-writer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fideyuta%2Fghost-writer/lists"}