get-static-root

1.0.1 • Public • Published

get-static-root

Calculate static root for JavaScript assets at runtime from HTML.

Usage

var getStaticRoot = require('get-static-root');
// get static root based on script src of bundle.js
var staticRoot = getStaticRoot('bundle.js');

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    1
  • 1.0.0
    0

Package Sidebar

Install

npm i get-static-root

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • byondreal