{"id":17724367,"url":"https://github.com/jjgonecrypto/node-keyboard-shapes","last_synced_at":"2025-10-14T22:32:06.080Z","repository":{"id":65460796,"uuid":"89544132","full_name":"jjgonecrypto/node-keyboard-shapes","owner":"jjgonecrypto","description":"Object shape mapper for node-keyboard - converts objects into chords","archived":false,"fork":false,"pushed_at":"2017-06-10T21:01:06.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-22T04:59:51.058Z","etag":null,"topics":["chords","music","node-keyboard","shapes"],"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/jjgonecrypto.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":"2017-04-27T01:54:25.000Z","updated_at":"2023-04-19T19:15:27.000Z","dependencies_parsed_at":"2023-01-24T15:05:12.129Z","dependency_job_id":null,"html_url":"https://github.com/jjgonecrypto/node-keyboard-shapes","commit_stats":null,"previous_names":["justinjmoses/node-keyboard-shapes"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/jjgonecrypto/node-keyboard-shapes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jjgonecrypto%2Fnode-keyboard-shapes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jjgonecrypto%2Fnode-keyboard-shapes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jjgonecrypto%2Fnode-keyboard-shapes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jjgonecrypto%2Fnode-keyboard-shapes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jjgonecrypto","download_url":"https://codeload.github.com/jjgonecrypto/node-keyboard-shapes/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jjgonecrypto%2Fnode-keyboard-shapes/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279021785,"owners_count":26087056,"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","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["chords","music","node-keyboard","shapes"],"created_at":"2024-10-25T15:46:39.141Z","updated_at":"2025-10-14T22:32:06.065Z","avatar_url":"https://github.com/jjgonecrypto.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-keyboard-shapes\n\n[![npm version](https://badge.fury.io/js/node-keyboard-shapes.svg)](https://badge.fury.io/js/node-keyboard-shapes)\n\nObject shape mapper for [node-keyboard](http://github.com/justinjmoses/node-keyboard) - coverts objects into chords!\n\n![](https://media0.giphy.com/media/3o7ZeTKcoYYyfSKSzu/giphy.gif)\n\n## Installation\n\n### As Global\nIf you installed node-keyboard globally, then install this plugin via `npm i -g node-keyboard-shapes`\n\nThen start node keyboard via `node-keyboard`, and import this plugin via `const shapes = requireg('node-keyboard-shapes')`\n\n### As Local\nIf instead you cloned node-keyboard, then install locally in that folder via `npm i node-keyboard-shapes`\n\nThen start node keyboard via `node keyboard` and import this plugin via `const shapes = require('node-keyboard-shapes')`\n\n## API\n\n```javascript\nshapes.objToChord(key = 'C3', intervalMap = (key, value, object) =\u003e ['1P', '3m'])(inputObject)\n// returns { intervals: [...], notes: [...], chords: [...] }\n```\n\n`intervalMap` takes the `key`, `value` and `object` and must return `intervals`.\n`intervals` may be a string or an array of strings. Should map to a string representation of a musical interval. See [tonal docs](http://danigb.github.io/tonal/api/module-harmonizer.html).\n\nProvided maps:\n* `shapes.map.byType.standard` (Default)\n\n```javascript\nshapes.createObjectListener(handler = (key, value) =\u003e {}, obj = {})\n// returns new object that will invoke the handler every time a property is set\n```\n\n## Examples\n\n* [type mapping](./examples/01_typeMapper.js)\n* [custom mapping](./examples/02_customMapper.js)\n* [object listener](./examples/03_listener.js)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjjgonecrypto%2Fnode-keyboard-shapes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjjgonecrypto%2Fnode-keyboard-shapes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjjgonecrypto%2Fnode-keyboard-shapes/lists"}