Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@coast/qrcode-svg
Advanced tools
Generates a QRCode in SVG with an integrated Coast logo at the bottom.
Generates a QRCode in SVG with an integrated Coast logo at the bottom.
Append the /upload
path to the base app URL to upload the CSV file.
Due to memory constraints, the app will only process 100 rows at a time. If you try to process more than 100 rows at once, the app will likely be killed due to violating the memory constraint. See the Heroku section for more information on dyno size and how to manually restart the app.
The CSV MUST include the following columns:
The CSV can OPTIONALLY include the following columns:
All other columns will be ignored.
Run yarn generate:pdfs path/to/data.csv
.
PDFs will be output in the top-level pdfs
folder, as numbered files. Note:
any existing files in this folder will be removed when the script is run.
If the CSV format is incorrect, the app will say that it processed the file, but it will not display an error nor generate/display a link to a zip file containing the PDFs. You will need to follow the instructions in the section further down to tail the Heroku logs to see any error messages.
import { createQRCode } from '@coast-app/qrcode-svg';
const url = 'https://shared.coastapp.com/r/d634c3d2-4708-42f3-8dbe-a987696a8bb3';
const width = 400;
const showBorder = true;
const svg = createQRCode({ url, width, showBorder });
yarn build && git add dist && git commit -m "Update distribution"
npm version
(this will create a vXXX
tag)main
branchgit push --tags
This project includes a dev environment for modifying the output of the createQRCode SVG generator. It uses a SvelteKit server to show the rendered SVG in a browser.
yarn
yarn dev
Then open http://localhost:5173
Tests run in vitest.
yarn test
Note: the SVG fixtures are read in as files at the beginning of the test run, so any changes to the fixtures will require restarting the tests. (Press R while in watch mode.)
Access at https://dashboard.heroku.com/apps/qrcode-svg
Install the Heroku CLI and sign in by running heroku login
At the moment the primary app constraint is memory. We are currently limited to using a 2x dyno size with 1 GB memory. After we have an invoice for at least $30 for a month, we can use larger dyno sizes with more memory.
https://dashboard.heroku.com/apps/qrcode-svg/resources
PUPPETEER_EXECUTABLE_PATH: /app/.chrome-for-testing/chrome-linux64/chrome
NODE_ENV: production
Add heroku-community/chrome-for-testing
heroku logs -a qrcode-svg --tail
heroku builds:cache:purge -a qrcode-svg
heroku ps:restart -a qrcode-svg
FAQs
Generates a QRCode in SVG with an integrated Coast logo at the bottom.
The npm package @coast/qrcode-svg receives a total of 54 weekly downloads. As such, @coast/qrcode-svg popularity was classified as not popular.
We found that @coast/qrcode-svg demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.