Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
assets-expander
Advanced tools
Readme
assets-expander is a node.js library for expanding list(s) of files defined in YAML file into a flat list(s) of files.
npm install assets-expander
var AssetsExpander = require('assets-expander');
var expander = new AssetsExpander('assets.yml', { root: 'path/to/public/dir' });
expander.processGroup('stylesheets', 'public') // gets a flat list of assets in public group
It depends what files you want to have in public group, but in general the file should look something like this.
stylesheets:
public:
- 'reset,shared,base,home'
Then if you have the following directory structure:
stylesheets
- reset.css
- shared.css
- base.css
- home.css
executing the code above will get you a list of full paths to these 4 files:
['.../stylesheets/reset.css', '.../stylesheets/shared.css', '.../stylesheets/base.css', '.../stylesheets/home.css']
Assets-expander is released under the MIT license.
FAQs
A well-tested tool for expanding any files structure defined in YAML file into a flat list of files
The npm package assets-expander receives a total of 0 weekly downloads. As such, assets-expander popularity was classified as not popular.
We found that assets-expander 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.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.