Socket
Socket
Sign inDemoInstall

static-reference

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    static-reference

Annotate file references within the source code of your node packages. These references can be scanned for using the dependency graph of a module.


Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Install size
1.93 kB
Created
Weekly downloads
 

Readme

Source

static-reference

Annotate file references within the source code of your node packages. These references can be scanned for using the dependency graph of a module. This package only defines the reference itself, other modules are used to scan your source code for this annotation (such as module-references npm github ).

usage

require('static-reference')('./foo.css');
require('static-reference')("./foo.less");
require('static-reference')('./foo-mobile.css', 'mobile');

Only a string literal will work properly, for example require('static-reference')('./foo' + '.css'); will be ignored. The require call is looked for while parsing your source code, the call has no effect at runtime. require('static-reference') will always return a dummy function that performs no operations.

Keywords

FAQs

Last updated on 04 Sep 2014

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc