1.0.12 • Published 2 years ago

path-loader v1.0.12

Weekly downloads
616,316
License
MIT
Repository
github
Last release
2 years ago

path-loader

Utility that provides a single API for loading the content of a path/URL. This module works in the browser and in io.js/Node.js. Right now this module supports the following loaders:

  • http/https: This loader is used by default in the browser and will also be used in io.js/Node.js if the location being loaded starts with http: or https:
  • file: This loader is the used by default in io.js/Node.js and will throw an error in the browser (Due to how locations are mapped to loaders, the only way to use the file loader in the browser is to attempt to load a file using the URL-version of its location. (Example: file:///Users/not-you/projects/path-loader/package.json))

In the future, there will likely be a pluggable infrastructure for altering this list or overriding the loaders provided by the project but for now that is not an option.

Project Badges

  • Build status: Build Status
  • Downloads: NPM Downloads Per Month
  • Gitter: Join the chat at https://gitter.im/whitlockjc/path-loader
  • License: License
  • Version: NPM Version

Installation

path-loader is available for both Node.js and the browser. Installation instructions for each environment are below.

Browser

path-loader binaries for the browser are available in the dist/ directory:

Node.js

Installation for Node.js applications can be done via NPM.

npm install path-loader --save

Documentation

The documentation for this project can be found here: https://github.com/whitlockjc/path-loader/blob/master/docs/README.md

The path-loader project's API documentation can be found here: https://github.com/whitlockjc/path-loader/blob/master/docs/API.md

Dependencies

Below is the list of projects being used by path-loader and the purpose(s) they are used for:

1.0.11

2 years ago

1.0.12

2 years ago

1.0.10

5 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.3.2

8 years ago

0.3.1

8 years ago

0.3.0

8 years ago

0.2.1

8 years ago

0.2.0

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago