Socket
Socket
Sign inDemoInstall

cocoify

Package Overview
Dependencies
2
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    cocoify

browserify v2 plugin for coco with support for mixed .js and .co files


Version published
Weekly downloads
2
Maintainers
1
Install size
295 kB
Created
Weekly downloads
 

Readme

Source

cocoify

browserify v2 plugin for coco

mix and match .co and .js files in the same project

important: when using require('path/to/file.co') remember to use .co extension

build status

example

given some files written in a mix of js and co:

foo.co:

console.log(require './bar.js')

bar.js:

module.exports = require('./baz.co')(5)

baz.co:

module.exports = (n) -> n * 111

install cocoify into your app:

$ npm install cocoify

when you compile your app, just pass -t cocoify to browserify:

$ browserify -t cocoify foo.co > bundle.js
$ node bundle.js
555

install

With npm do:

npm install cocoify

license

MIT

maintainers wanted

I am no longer a coco user so if you use this plugin regularly and want to take it over I will gladly add you as a maintainer on npm.

Keywords

FAQs

Last updated on 24 Jun 2013

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc