Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

asset-assistant

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

asset-assistant

The "assets" program is motivated by the need to automate the copying of assets from npm modules. The typical use case is for images and css files that need to be moved to a location accessible by the web server. It is assumed that javascript code will

  • 0.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

The "assets" program is motivated by the need to automate the copying of assets from npm modules. The typical use case is for images and css files that need to be moved to a location accessible by the web server. It is assumed that javascript code will be packed and run from a single 'root' location.

The program will look for an "assets" field in the package.json file. This field can contain the following fields:

  • src: A string, or array of string, listing the file locations to copy files from. Uses 'glob' format.
  • dest: The destination directory to copy files to, only relevant to the top level project. Defaults to "build".
  • flat: Defaults to false. if true, copy only the files, not the full directory paths. This overrides up.
  • up: Defaults to n=1. Omit the first 'n' directories in the tree. Typically this will be the 'src' directory.
  • inject-css: Defaults to not set. If set, to either a string or an array, set 'style' nodes in the specified html file(s).

Keywords

FAQs

Package last updated on 15 Aug 2018

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc