{"id":15654436,"url":"https://github.com/sugiruu/anitomy-js","last_synced_at":"2025-04-30T23:48:38.032Z","repository":{"id":45902435,"uuid":"57343665","full_name":"sugiruu/anitomy-js","owner":"sugiruu","description":"Native Node.js wrapper for Anitomy","archived":false,"fork":false,"pushed_at":"2024-04-11T14:01:50.000Z","size":470,"stargazers_count":25,"open_issues_count":2,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-30T23:48:31.384Z","etag":null,"topics":["anime","anitomy","anitomy-js","native","node-wrapper","nodejs"],"latest_commit_sha":null,"homepage":"","language":"C++","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/sugiruu.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-04-29T00:51:23.000Z","updated_at":"2025-01-31T19:36:52.000Z","dependencies_parsed_at":"2024-06-21T07:10:52.661Z","dependency_job_id":"65a5f14a-6a6b-4a7d-b497-31d171b444a9","html_url":"https://github.com/sugiruu/anitomy-js","commit_stats":null,"previous_names":["sugiruu/anitomy-js","skiptirengu/anitomy-js"],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sugiruu%2Fanitomy-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sugiruu%2Fanitomy-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sugiruu%2Fanitomy-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sugiruu%2Fanitomy-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sugiruu","download_url":"https://codeload.github.com/sugiruu/anitomy-js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251801086,"owners_count":21645968,"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":["anime","anitomy","anitomy-js","native","node-wrapper","nodejs"],"created_at":"2024-10-03T12:51:47.865Z","updated_at":"2025-04-30T23:48:38.002Z","avatar_url":"https://github.com/sugiruu.png","language":"C++","readme":"# anitomy-js\n\n[![Actions Status](https://github.com/skiptirengu/anitomy-js/workflows/Node%20CI/badge.svg)](https://github.com/skiptirengu/anitomy-js/actions)\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/nevermnd/anitomy-js/master/LICENSE)\n\n_anitomy-js_ is a Node.js wrapper for [Anitomy](https://github.com/erengy/anitomy) - a C++ library for parsing anime video filenames.\n\n## Requirements\n\n+ Linux: gcc/g++ \u003e= 5\n+ Windows: Visual Studio \u003e= 2015 (With C++ build tools)\n+ Mac OS \u003e= 10.9 (with Xcode installed, of course)\n\n## Installation\n\nWith [npm](http://npmjs.org) do:\n\n```\nnpm install anitomy-js\n```\n\n_anitomy-js_ builds it's dependencies upon installation. Please refer to the [node-gyp documentation](https://github.com/nodejs/node-gyp#installation) if you're having problems with the build.\n\n### Version 1.x\n\nStarting with version 1.0 the minimum supported Node version is 0.12\n\n### Changes from version 2.x\n\nStarting with version 2.0, _anitomy-js_ requires C++ 14 and at least Node 4:\n\n- Linux: GCC/G++ \u003e= 5\n- Windows: Visual Studio \u003e= 2015\n- Mac OS \u003e= 10.9\n\nIf you can't update your build tools, all versions from 1.x are compatible with C++ 11.\n\n### Changes from version 3.x\n\nStarting with version 3.0 the old callback style with a single argument is deprecated. You should switch to either use the Promise API or a node style callback (err, data).\nThe minimum supported Node version is 6.\n\n### Changes from version 4.x\n\n4.x is a complete rewrite from scratch and requires at least Node 8. The old callback style API was completely removed and now the _async_ methods (parse and parseAsync) exposes only the [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) API.\n\n### Changes from version 5.x\n\nOn version 5.x, _anitomy-js_ switched from using [NAN](https://github.com/nodejs/nan), to the newer [NAPI](https://github.com/nodejs/node-addon-api).\nWith this change, all context-related issues should be fixed.\n\n## Usage\n\n_anitomy-js_ provides two methods: `parse` and `parseSync`.\nBoth methods accept single filename input or an array of filenames for batch parsing.\n\nAdditionally you can pass an object as the last parameter to change Anitomy's original parsing options. The options are:\n\n- `allowed_delimiters` - defaults to `\" _.\u0026+,|\"`\n- `ignored_strings` - defaults to `[]`\n- `parse_episode_number` - defaults to `true`\n- `parse_episode_title` - defaults to `true`\n- `parse_file_extension` - defaults to `true`\n- `parse_release_group` - defaults to `true`\n\n### parse(data, [options]) -\u003e Promise\\\u003cAnitomyResult | AnitomyResult[]\u003e\n\n```js\nvar anitomy = require('anitomy-js')\nanitomy\n  .parse('[tlacatlc6] Natsume Yuujinchou Shi Vol. 1v2 \u0026 Vol. 2 (BD 1280x720 x264 AAC)')\n  .then((data) =\u003e console.log(data))\n```\n\n... would be parsed into\n\n```json\n{\n  \"anime_title\": \"Natsume Yuujinchou Shi\",\n  \"audio_term\": \"AAC\",\n  \"file_name\": \"[tlacatlc6] Natsume Yuujinchou Shi Vol. 1v2 \u0026 Vol. 2 (BD 1280x720 x264 AAC)\",\n  \"release_group\": \"tlacatlc6\",\n  \"release_version\": \"2\",\n  \"source\": \"BD\",\n  \"video_term\": \"x264\",\n  \"video_resolution\": \"1280x720\",\n  \"volume_number\": [\"1\", \"2\"]\n}\n```\n\n### parseSync(data, [options]) -\u003e AnitomyResult | AnitomyResult[]\n\n```js\nvar anitomy = require('anitomy-js')\nvar filenames = [\n  '[DmonHiro] Magi - The Labyrinth Of Magic - Vol.1v2 (BD, 720p)',\n  '[KLF]_D.Gray-man_04V2.avi',\n]\nconsole.log(anitomy.parseSync(filenames))\n```\n\n... would be parsed into\n\n```json\n[\n  {\n    \"anime_title\": \"Magi - The Labyrinth Of Magic\",\n    \"file_name\": \"[DmonHiro] Magi - The Labyrinth Of Magic - Vol.1v2 (BD, 720p)\",\n    \"release_group\": \"DmonHiro\",\n    \"release_version\": \"2\",\n    \"source\": \"BD\",\n    \"video_resolution\": \"720p\",\n    \"volume_number\": \"1\"\n  },\n  {\n    \"anime_title\": \"D.Gray-man\",\n    \"episode_number\": \"04\",\n    \"file_extension\": \"avi\",\n    \"file_name\": \"[KLF]_D.Gray-man_04V2\",\n    \"release_group\": \"KLF\",\n    \"release_version\": \"2\"\n  }\n]\n```\n\n## License\n\nLicensed under the incredibly [permissive](http://en.wikipedia.org/wiki/Permissive_free_software_licence) [MIT license](http://creativecommons.org/licenses/MIT/)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsugiruu%2Fanitomy-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsugiruu%2Fanitomy-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsugiruu%2Fanitomy-js/lists"}