Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Easy copy and move actions within a firebase database
I simply got tired of rewriting the same copy (and remove) code for every firebase project.
# with npm
npm install --save fireaction
# with yarn
yarn add fireaction
For browsers, use the build in dist/fireaction.js
In nodejs:
var Fireaction = require('fireaction')
// ...
// require and setup firebase
//...
// get firebase database ref
const ref = firebase.database().ref()
// configure fireaction with firebase database ref
const fireaction = new Fireaction(ref)
// copy from one path to the other
// async with either callback
fireaction.copy(src, dest, function (err, data) {/* */})
// or promise
fireaction.copy(src, dest)
.then(function (sourceData) {/* ... */})
Fireaction copy
and move
methods can take in a third object argument instead of a callback:
const options = { withKey: true }
fireaction(src, dest, options, callback)
Option | Type (default) | Description |
---|---|---|
withKey | boolean (true) | Copies parent key with value into destination path |
override | boolean (false) | Overrides existing data in destination path |
npm run lint
: runs the linter (standard)npm run unit
: runs the unit testsnpm test
: runs both the linter and the testsBuild is run by webpack, so install dependencies:
# with npm
npm install
# with yarn
yarn
Then run build:
npm run build
NB: It is better to build using npm start
which will lint and test before building.
To contribute:
Licensed under MIT
Copyright (c) 2017 ghostffcode
FAQs
Easy copy and move actions within a firebase database
The npm package fireaction receives a total of 1 weekly downloads. As such, fireaction popularity was classified as not popular.
We found that fireaction demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.