Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
arc-plugin-file-copy
Advanced tools
Readme
Copy files into your functions. Works for sandbox and built functions.
Arc serverless framework plugin for compiling your functions with ESBuild Bundler
npm i --save-dev arc-plugin-file-copy
After installing add @plugins
and @file-copy
pragmas to your app.arc
file:
app.arc
@app
myapp
@file-copy
config/config.json config.json
@http
get /
@plugins
arc-plugin-file-copy
File listing;
myapp/app.arc
myapp/config.json
myapp/package.json
myapp/tsconfig.json
myapp/src/http/get-index/index.js
When running sandbox your functions will be able to find your file symlinked, when deploying the symlinks will be shipped as files. Since these are symbolic links file changes are immediate, however changes to your app.arc won't be picked up without a restart.
myapp/src/http/get-index/config.json
Copy as many files as you like, directories, and give them any new path.
@file-copy
config/settings.json config.json
config fullconfig
data.csv data/root.csv
The options are simply source and destination. Both are required.
The source is relative to the .arc file. The destination is relative to the function directory. The target directory structure will be created and a symlink will be created. While the sandbox symlinks will be cleaned up, target directories will not be removed as it is generally not safe.
FAQs
Use Typescript and esbuild with arc.codes!
The npm package arc-plugin-file-copy receives a total of 0 weekly downloads. As such, arc-plugin-file-copy popularity was classified as not popular.
We found that arc-plugin-file-copy 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.