faunadna
v0.0.5
Published
🗺 Useful operations for working with US states and their abbreviations.
Downloads
2
Readme
Goals
File based management
- Create a
fauna
directory at the root of your project. - Create a
functions
directory inside of that. - Any file inside of functions can export functions.
CommonJS
module.exports = {
hello: q.Query(q.Lambda("_", "hello")),
moreOptions: {
name: 'goodbye',
body: q.Lambda("_", "goodbye")
}
}
ESM
export const hello = q.Query(q.Lambda("_", "hello"));
export const moreOptions = {
name: 'goodbye',
body: q.Lambda("_", "goodbye")
}
Command Line Arguments
You can also choose to pass in arguments to specific directories or files
--path
: The path to the directory or single file where functions are exported.--force
: Force overwrite functions