# nwjs_loader

> Give methods for getting the path to different application resources in NWjs

Latest version **1.1.0** (published 2017-01-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install nwjs_loader
pnpm add nwjs_loader
yarn add nwjs_loader
bun add nwjs_loader
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2017-01-11 |
| First published | 2017-01-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Andrew Trefethen |
| Maintainers | trapfether |
| Keywords | nwjs, loader, node-webkit, node |

## Links

- npm: https://www.npmjs.com/package/nwjs_loader
- Repository: https://github.com/AndrewTrefethen/nwjs_loader
- Homepage: https://github.com/AndrewTrefethen/nwjs_loader#readme
- Issues: https://github.com/AndrewTrefethen/nwjs_loader/issues
- npm.io page: https://npm.io/package/nwjs_loader

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2017-01-11
- 1.0.0 — 2017-01-11

## README

# nwjs_loader
=========

NWJS has some tricky rules when it comes to requiring other scripts, this module gets around that.

## Installation

  npm install nwjs_loader --save

## Usage

    assumed NWjs app structure

      src/
        app/
          (javascript files)
        styles/
          (css files)
        views/
          (HTML files)
        package.json (nwjs manifest)

----------

    var Loader = require('nwjs_loader');

    Loader.paths is an object that is as follows
      {
        base:  (absolute path to folder containing nwjs manifest - src in above example),
        app:   (absolute path to src/app),
        views: (absolute path to src/views)
      }

    Loader.ScriptRequire("filename.js") requires "filename.js" from the src/app directory using node's require method

## Release History

* 1.0.0 Initial release

---
_Source: https://npm.io/package/nwjs_loader · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
