{"id":17474173,"url":"https://github.com/ghostffcode/fireaction","last_synced_at":"2025-07-29T14:10:32.847Z","repository":{"id":57236532,"uuid":"107628831","full_name":"ghostffcode/fireaction","owner":"ghostffcode","description":"🔥🔨 Easy copy and move actions within firebase","archived":false,"fork":false,"pushed_at":"2017-10-23T14:57:26.000Z","size":63,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-04T15:47:26.390Z","etag":null,"topics":["actions","copy","firebase","move"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/fireaction","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/ghostffcode.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-10-20T03:39:43.000Z","updated_at":"2020-02-08T16:56:28.000Z","dependencies_parsed_at":"2022-08-26T15:11:22.563Z","dependency_job_id":null,"html_url":"https://github.com/ghostffcode/fireaction","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ghostffcode/fireaction","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostffcode%2Ffireaction","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostffcode%2Ffireaction/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostffcode%2Ffireaction/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostffcode%2Ffireaction/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ghostffcode","download_url":"https://codeload.github.com/ghostffcode/fireaction/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostffcode%2Ffireaction/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267701286,"owners_count":24130447,"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-07-29T02:00:12.549Z","response_time":2574,"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":["actions","copy","firebase","move"],"created_at":"2024-10-18T18:08:38.440Z","updated_at":"2025-07-29T14:10:32.803Z","avatar_url":"https://github.com/ghostffcode.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"fireaction\n========\nEasy copy and move actions within a firebase database\n\n[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com) [![Build Status](https://travis-ci.org/ghostffcode/fireaction.svg?branch=master)](https://travis-ci.org/ghostffcode/fireaction)\n\nWhy?\n-------\nI simply got tired of rewriting the same copy (and remove) code for every firebase project.\n\nInstallation\n----------------\n```bash\n# with npm\nnpm install --save fireaction\n\n# with yarn\nyarn add fireaction\n```\n\nFor browsers, use the build in `dist/fireaction.js`\n\nUsage\n--------\nIn nodejs:\n```js\nvar Fireaction = require('fireaction')\n\n// ...\n// require and setup firebase\n//...\n// get firebase database ref\nconst ref = firebase.database().ref()\n\n// configure fireaction with firebase database ref\nconst fireaction = new Fireaction(ref)\n\n// copy from one path to the other\n// async with either callback\nfireaction.copy(src, dest, function (err, data) {/*  */})\n// or promise\nfireaction.copy(src, dest)\n\t.then(function (sourceData) {/* ... */})\n```\n\nOptions\n-----------\nFireaction `copy` and `move` methods can take in a third object argument instead of a callback:\n```js\nconst options = { withKey: true }\n\nfireaction(src, dest, options, callback)\n```\n| Option | Type (default) | Description |\n| --- | --- | -- |\n| withKey | boolean (**true**) | Copies parent key with value into destination path |\n| override | boolean (**false**) | Overrides existing data in destination path |\n\n### Running Tests\n- `npm run lint`: runs the linter ([standard](http://standardjs.com/))\n- `npm run unit`: runs the unit tests\n- `npm test`: runs both the linter and the tests\n\n### Creating a build for browser\nBuild is run by webpack, so install dependencies:\n```bash\n# with npm\nnpm install\n\n# with yarn\nyarn\n```\nThen run build:\n```bash\nnpm run build\n```\n**NB**: It is better to build using `npm start` which will lint and test before building.\n\n### Contributing\nTo contribute:\n- Take a look at existing issues.\n- Create fixes/updates.\n- Write tests.\n- Lint, run tests and build.\n- Send detailed PR.\n\nLicense\n-------\nLicensed under MIT\n\nCopyright (c) 2017 [ghostffcode](https://github.com/ghostffcode)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghostffcode%2Ffireaction","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fghostffcode%2Ffireaction","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghostffcode%2Ffireaction/lists"}