nocamel

1.0.2 • Public • Published

nocamel.js

Introduction

This was a project that started because there's no choice in language grammar for the end user. The intent of this project is to offer non-camelCase aliases for all Javascript and Node.js object methods, instance methods, prototype methods, object properties, and globals. I love Javascript and Node.js, but hate camelCase, and with this library, I am happy again. This is a work in progress.

Installation

npm install nocamel

Include (preferably line 1 of your script or the entry point to your application)

require('nocamel');

Use

// built-in prototype aliases!
[1,2,3].for_each(num => {
    console.log(num);
});
 
// built-in object method aliases!
Array.is_array([]); // true
 
// built-in global function aliases!
is_nan(NaN); // true
 
// node module aliases!
const fs = require('fs');
fs.read_file('a.txt', (err, data) => {
    console.log(data.to_string());
});

Readme

Keywords

none

Package Sidebar

Install

npm i nocamel

Weekly Downloads

36

Version

1.0.2

License

ISC

Unpacked Size

4 kB

Total Files

3

Last publish

Collaborators

  • ebrian