{"id":18353040,"url":"https://github.com/thecodeholic/vanillajsnotes","last_synced_at":"2025-04-06T11:33:14.404Z","repository":{"id":43564292,"uuid":"206869990","full_name":"thecodeholic/VanillaJsNotes","owner":"thecodeholic","description":"Sticky notes app using vanilla javascript","archived":false,"fork":false,"pushed_at":"2023-01-14T00:54:37.000Z","size":1146,"stargazers_count":22,"open_issues_count":23,"forks_count":25,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-21T22:41:30.149Z","etag":null,"topics":["javascript-notes","sticky-notes","vanilla-javascript"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thecodeholic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-06T20:35:12.000Z","updated_at":"2024-10-13T18:07:34.000Z","dependencies_parsed_at":"2023-02-09T18:10:12.826Z","dependency_job_id":null,"html_url":"https://github.com/thecodeholic/VanillaJsNotes","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodeholic%2FVanillaJsNotes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodeholic%2FVanillaJsNotes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodeholic%2FVanillaJsNotes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodeholic%2FVanillaJsNotes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thecodeholic","download_url":"https://codeload.github.com/thecodeholic/VanillaJsNotes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247478152,"owners_count":20945258,"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-notes","sticky-notes","vanilla-javascript"],"created_at":"2024-11-05T21:38:15.090Z","updated_at":"2025-04-06T11:33:13.493Z","avatar_url":"https://github.com/thecodeholic.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Notes app using plain javascript\n\n### Install in your project\n```\nnpm install @thecodeholic/plainjs-notes\n```\n\n### Usage\n```javascript 1.8\nconst noteManager = new NoteManager({\n  el: document.getElementById('your_wrapper_element_id'),\n  notes: [\n    {\n      title: 'sunt aut facere repellat',\n      body: 'uia et suscipit suscipit recusandae consequuntur expedita et cum reprehenderit molestiae ut ut quas totam nostrum rerum est autem sunt rem eveniet architecto'\n    },\n    // ...\n  ]\n});\n```\n\n### Methods\n\n```javascript 1.8\n// Add the note at the bottom\nnoteManager.addNote({\n  title: '',\n  body: ''\n});\n\n// Add the note at the top\nnoteManager.prependNote({\n  title: '',\n  body: ''\n});\n\n// Remove the first note\nnoteManager.removeNote(noteManager.notes[0]);\n\n// Update all notes and rerender\nnoteManager.notes = [...];\nnoteManager.renderNotes();\n```\n\n### Events\n\n```javascript 1.8\nnoteManager.onNoteAdd = (note) =\u003e {\n  console.log(\"Note added \", note);\n};\nnoteManager.onNoteChange = (note) =\u003e {\n  console.log(\"Note changed \", note);\n};\nnoteManager.onNoteRemove = (note) =\u003e {\n  console.log(\"Note removed \", note);\n};\n```\n\n-------------------------------------------------\n\n\n### Installation and view demo\n1. Clone the project\n2. Go to the project root directory\n3. Run `npm install`\n\n### Running on development using [dev server](https://github.com/webpack/webpack-dev-server)\n\nRun `npm run start` to start to webpack dev server with HMR ready\n\n### Build For production \n\nRun `npm run build` to build project's all assets in `dist` folder.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecodeholic%2Fvanillajsnotes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthecodeholic%2Fvanillajsnotes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecodeholic%2Fvanillajsnotes/lists"}