firebase-cloud-merge
Last updated 3 years ago by shailen .
ISC · Original npm · Tarball · package.json
$ cnpm install firebase-cloud-merge 
SYNC missed versions from official npm registry.

Firebase Cloud Functions Merger


Overview


Programmers are lazy by nature and working with the index.js file is a nightmare. Spliting up your functions can be make your project more manageable but importing all those files are tedious.

This small library will generate a object based on the .js files in a directory where your files are

Folder structure:

figure

index.js

const merge = require("firebase-cloud-merge");

module.exports = merge(__dirname + "/api");

/*
  Once executed an object containing the names of your functions will be exported 
*/
/*
module.exports = {
  email,
  users,
  users_id
}
*/

Your cloud function names assumes the names of your files!!!

Current Tags

  • 1.0.2                                ...           latest (3 years ago)

3 Versions

  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 4
Last Day 0
Last Week 3
Last Month 0
Dependencies (1)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2021 © npmmirror.com |