[Pkg-javascript-commits] [node-raw-loader] 01/02: Import Upstream version 0.5.1

Daniel Ring techwolf-guest at moszumanska.debian.org
Sat May 27 23:09:59 UTC 2017


This is an automated email from the git hooks/post-receive script.

techwolf-guest pushed a commit to branch master
in repository node-raw-loader.

commit ce102932b010a24c4d11ffe0a22119ed92a87335
Author: Daniel Ring <dring at wolfishly.me>
Date:   Sat May 27 16:07:50 2017 -0700

    Import Upstream version 0.5.1
---
 LICENSE      |  20 +++++++++++
 README.md    | 109 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 index.js     |   9 +++++
 package.json |  11 ++++++
 4 files changed, 149 insertions(+)

diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..8c11fc7
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,20 @@
+Copyright JS Foundation and other contributors
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+'Software'), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..4fdb7ba
--- /dev/null
+++ b/README.md
@@ -0,0 +1,109 @@
+[![npm][npm]][npm-url]
+[![node][node]][node-url]
+[![deps][deps]][deps-url]
+[![chat][chat]][chat-url]
+
+<div align="center">
+  <img width="200" height="200"
+    src="https://cdn3.iconfinder.com/data/icons/lexter-flat-colorfull-file-formats/56/raw-256.png">
+  <a href="https://github.com/webpack/webpack">
+    <img width="200" height="200"
+      src="https://webpack.js.org/assets/icon-square-big.svg">
+  </a>
+  <h1>Raw Loader</h1>
+  <p>A loader for webpack that lets you import files as a string.</p>
+</div>
+
+<h2 align="center">Install</h2>
+
+```bash
+npm install --save-dev raw-loader
+```
+
+<h2 align="center">Usage</h2>
+
+Use the loader either via your webpack config, CLI or inline.
+
+### Via webpack config (recommended)
+
+**webpack.config.js**
+```js
+module.exports = {
+  module: {
+    rules: [
+      {
+        test: /\.txt$/,
+        use: 'raw-loader'
+      }
+    ]
+  }
+}
+```
+
+**In your application**
+```js
+import txt from 'file.txt';
+```
+
+### CLI
+
+```bash
+webpack --module-bind 'txt=raw-loader'
+```
+
+**In your application**
+```js
+import txt from 'file.txt';
+```
+
+### Inline
+
+**In your application**
+```js
+import txt from 'raw-loader!./file.txt';
+```
+
+<h2 align="center">Maintainers</h2>
+
+<table>
+  <tbody>
+    <tr>
+      <td align="center">
+        <img width="150" height="150"
+        src="https://avatars3.githubusercontent.com/u/166921?v=3&s=150">
+        </br>
+        <a href="https://github.com/bebraw">Juho Vepsäläinen</a>
+      </td>
+      <td align="center">
+        <img width="150" height="150"
+        src="https://avatars2.githubusercontent.com/u/8420490?v=3&s=150">
+        </br>
+        <a href="https://github.com/d3viant0ne">Joshua Wiens</a>
+      </td>
+      <td align="center">
+        <img width="150" height="150"
+        src="https://avatars3.githubusercontent.com/u/533616?v=3&s=150">
+        </br>
+        <a href="https://github.com/SpaceK33z">Kees Kluskens</a>
+      </td>
+      <td align="center">
+        <img width="150" height="150"
+        src="https://avatars3.githubusercontent.com/u/3408176?v=3&s=150">
+        </br>
+        <a href="https://github.com/TheLarkInn">Sean Larkin</a>
+      </td>
+    </tr>
+  <tbody>
+</table>
+
+[npm]: https://img.shields.io/npm/v/raw-loader.svg
+[npm-url]: https://npmjs.com/package/raw-loader
+
+[node]: https://img.shields.io/node/v/raw-loader.svg
+[node-url]: https://nodejs.org
+
+[deps]: https://david-dm.org/webpack/raw-loader.svg
+[deps-url]: https://david-dm.org/webpack/raw-loader
+
+[chat]: https://badges.gitter.im/webpack/webpack.svg
+[chat-url]: https://gitter.im/webpack/webpack
diff --git a/index.js b/index.js
new file mode 100644
index 0000000..a59e712
--- /dev/null
+++ b/index.js
@@ -0,0 +1,9 @@
+/*
+	MIT License http://www.opensource.org/licenses/mit-license.php
+	Author Tobias Koppers @sokra
+*/
+module.exports = function(content) {
+	this.cacheable && this.cacheable();
+	this.value = content;
+	return "module.exports = " + JSON.stringify(content);
+}
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..a27d997
--- /dev/null
+++ b/package.json
@@ -0,0 +1,11 @@
+{
+	"name": "raw-loader",
+	"version": "0.5.1",
+	"author": "Tobias Koppers @sokra",
+	"description": "raw loader module for webpack",
+	"repository": {
+		"type": "git",
+		"url": "git at github.com:webpack/raw-loader.git"
+	},
+	"license": "MIT"
+}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-raw-loader.git



More information about the Pkg-javascript-commits mailing list