-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v4.0.7: Add dist file to npm package.
- Loading branch information
Showing
7 changed files
with
24 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,9 +2,6 @@ | |
*.reapeaks | ||
*.DS_Store | ||
|
||
# minified browser version | ||
dist/ | ||
|
||
# Development folders | ||
.nyc_output/ | ||
docs/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,17 @@ Read and write the chunks of RIFF and RIFX files. | |
npm install riff-chunks | ||
``` | ||
|
||
## Browser | ||
Use the compiled file in the */dist* folder: | ||
```html | ||
<script src="riff-chunks-min.js"></script> | ||
``` | ||
|
||
Or get it from the [jsDelivr](https://www.jsdelivr.com) CDN: | ||
```html | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script> | ||
``` | ||
|
||
## Use | ||
```javascript | ||
const riffChunks = require("riff-chunks"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,7 +49,9 @@ <h2><a href="index.html">Home</a></h2><h3>Global</h3><ul><li><a href="global.htm | |
<article><h1>riff-chunks</h1><p>Copyright (c) 2017-2018 Rafael da Silva Rocha.<br>https://github.com/rochars/riff-chunks</p> | ||
<p><a href="https://www.npmjs.com/package/riff-chunks"><img src="https://img.shields.io/npm/v/riff-chunks.svg?style=for-the-badge" alt="NPM version"></a> <a href="https://rochars.github.io/riff-chunks/index.html"><img src="https://img.shields.io/badge/docs-online-blue.svg?style=for-the-badge" alt="Docs"></a><br><a href="https://codecov.io/gh/rochars/riff-chunks"><img src="https://img.shields.io/codecov/c/github/rochars/riff-chunks.svg?style=flat-square" alt="Codecov"></a> <a href="https://travis-ci.org/rochars/riff-chunks"><img src="https://img.shields.io/travis/rochars/riff-chunks.svg?style=flat-square" alt="Unix Build"></a> <a href="https://ci.appveyor.com/project/rochars/riff-chunks"><img src="https://img.shields.io/appveyor/ci/rochars/riff-chunks.svg?style=flat-square&logo=appveyor" alt="Windows Build"></a> <a href="https://scrutinizer-ci.com/g/rochars/riff-chunks/"><img src="https://img.shields.io/scrutinizer/g/rochars/riff-chunks.svg?style=flat-square&logo=scrutinizer" alt="Scrutinizer"></a></p> | ||
<h2>About</h2><p>Read and write the chunks of RIFF and RIFX files.</p> | ||
<h2>Install</h2><pre class="prettyprint source"><code>npm install riff-chunks</code></pre><h2>Use</h2><pre class="prettyprint source lang-javascript"><code>const riffChunks = require("riff-chunks"); | ||
<h2>Install</h2><pre class="prettyprint source"><code>npm install riff-chunks</code></pre><h2>Browser</h2><p>Use the compiled file in the <em>/dist</em> folder:</p> | ||
<pre class="prettyprint source lang-html"><code><script src="riff-chunks-min.js"></script></code></pre><p>Or get it from the <a href="https://www.jsdelivr.com">jsDelivr</a> CDN:</p> | ||
<pre class="prettyprint source lang-html"><code><script src="https://cdn.jsdelivr.net/npm/[email protected]"></script></code></pre><h2>Use</h2><pre class="prettyprint source lang-javascript"><code>const riffChunks = require("riff-chunks"); | ||
const fs = require("fs"); | ||
|
||
let chunks = riffChunks.read(fs.readFileSync("file.wav")); | ||
|
@@ -105,7 +107,7 @@ <h2>riffChunks.write()</h2><pre class="prettyprint source lang-javascript"><code | |
<br class="clear"> | ||
|
||
<footer> | ||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Mon Jun 11 2018 01:48:14 GMT-0300 (Hora oficial do Brasil) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme. | ||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Mon Jun 11 2018 16:21:29 GMT-0300 (Hora oficial do Brasil) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme. | ||
</footer> | ||
|
||
<script>prettyPrint();</script> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "riff-chunks", | ||
"version": "4.0.6", | ||
"version": "4.0.7", | ||
"description": "Read and write the chunks of RIFF and RIFX files.", | ||
"homepage": "https://github.com/rochars/riff-chunks", | ||
"author": "Rafael da Silva Rocha <[email protected]>", | ||
|
@@ -44,8 +44,9 @@ | |
"string-replace-loader": "^1.3.0", | ||
"webpack": "^3.8.1" | ||
}, | ||
"main": "index.js", | ||
"dependencies": { | ||
"byte-data": "^8.0.0" | ||
} | ||
}, | ||
"main": "index.js", | ||
"browser": "./dist/riff-chunks-min.js" | ||
} |