Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anthonyshort/duoify
Browserify transform to allow bundles to be loaded by Duo
https://github.com/anthonyshort/duoify
Last synced: 24 days ago
JSON representation
Browserify transform to allow bundles to be loaded by Duo
- Host: GitHub
- URL: https://github.com/anthonyshort/duoify
- Owner: anthonyshort
- Created: 2015-08-05T18:02:34.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-05T18:02:49.000Z (over 9 years ago)
- Last Synced: 2024-08-31T19:38:26.255Z (2 months ago)
- Language: JavaScript
- Size: 97.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Duoify
[![version](https://img.shields.io/npm/v/duoify.svg?style=flat-square)](https://www.npmjs.com/package/duoify) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)
Allows Browserify bundles to be used by Duo by rewriting the `require` statements. This is useful when you have a module that is written using modules from npm and you want your package to be consumed by both npm and Duo.
```
npm install duoify
```## Usage
```
browserify index.js -t duoify > build.js
```You'll probably need to add a `component.json` file to your project so that Duo loads the correct file.
```json
{
"name": "my-module",
"main": "build.js"
}
```