Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cough

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cough

coffee_script is better in snake_case

  • 1.0.6
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
4
Maintainers
1
Weekly downloads
 
Created
Source

cough Build Status

It's pleasant to write CoffeeScript in snake case style, but module consumers are more than likely using plain JavaScript and expecting camel cased method names.

This module requires an environment supporting Proxies.

CoffeeScript

cough = require "cough"
fs = cough require "fs"

# this works
data = fs.read_file_sync "some-file.json"

# or maybe export something snake cased, wrapped with cough
module.exports = cough
  some_method_here: -> # ...
  another_method_here: -> # ...

JavaScript (importing the exported object above)

var theModule = require("coffee-script-file-above");

// these work
theModule.someMethodHere();
theModule.anotherMethodHere();

Alternately, you might use it in a constructor

class Something
  constructor: ->
    return cough @

  instance_method_one: ->

Instances will respond to instance_method_one() or instanceMethodOne().

FAQs

Package last updated on 04 Apr 2015

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc