
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
parcel-plugin-assets-list
Advanced tools
This plugin adds a new asset file type handler *.assets
which
reads a file of newline-separated file paths and adds them to the
parcel outputs. Each file referenced in the list will be hashed
by parcel and copied to the output folder (e.g. dist/
)
To use this plugin, install it into your parcel project:
yarn add parcel-plugin-assets-list
# or
npm install parcel-plugin-assets-list
Then create an assets file, for example a file app.assets
:
# HTML templates
templates/a.html
templates/b.html
# Stylesheets
scss/styles.scss
# Javascript
js/whatever.js
Now when you build with parcel it will copy those files into dist
with a hashed name. In addition it will store the mapping of those
files from the original name to the new name in a few ways:
app.js
: A javascript module you can import from your js files to
get a javascript object mapping the name in the file to the resulting
hashed filenameapp.json
: A JSON file with the same mapping as above but in raw JSON,
for consumption on the server side if you don't use JavaScript on the
server.app.assets
: A simple text-based file format with the original file
path, a colon, a space (:
) and the output path. Could be used
instead of JSON if you like.The actual filename depends on the input file name.
FAQs
Support assets list input file type
We found that parcel-plugin-assets-list 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.