Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/realtux/nocamel
Don't want camelCase in your JS & Node? Good, me neither.
https://github.com/realtux/nocamel
Last synced: 5 days ago
JSON representation
Don't want camelCase in your JS & Node? Good, me neither.
- Host: GitHub
- URL: https://github.com/realtux/nocamel
- Owner: realtux
- Created: 2016-11-02T22:48:38.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2021-02-20T22:54:32.000Z (over 3 years ago)
- Last Synced: 2024-09-18T09:14:06.766Z (2 months ago)
- Language: JavaScript
- Size: 9.77 KB
- Stars: 8
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## 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.![](https://user-images.githubusercontent.com/4989650/77862290-1bb9dd00-71e0-11ea-8a7e-592e397dd212.png)
### Installation
```
npm install nocamel
```### Include (preferably line 1 of your script or the entry point to your application)
```js
require('nocamel');
```### Use
```js
// 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());
});
```