An open API service indexing awesome lists of open source software.

https://github.com/realcyguy/iwanttocountfromone.js

A lightweight? (~20kb minfied), dependency-free, javascript library so you can count from 1.
https://github.com/realcyguy/iwanttocountfromone.js

count javascript javascript-library js js-library library

Last synced: 8 months ago
JSON representation

A lightweight? (~20kb minfied), dependency-free, javascript library so you can count from 1.

Awesome Lists containing this project

README

          

# iWantToCountFromOne.js

[![Codacy grade](https://img.shields.io/codacy/grade/6721e441781d481bad5876140ab99e19?style=for-the-badge)](https://app.codacy.com/manual/RealCyGuy/iwanttocountfromone.js/dashboard)
[![GitHub license](https://img.shields.io/github/license/RealCyGuy/iwanttocountfromone.js?style=for-the-badge)](https://github.com/RealCyGuy/iwanttocountfromone.js/blob/master/LICENSE)
[![GitHub issues](https://img.shields.io/github/issues/RealCyGuy/iwanttocountfromone.js?style=for-the-badge)](https://github.com/RealCyGuy/iwanttocountfromone.js/issues)
[![GitHub forks](https://img.shields.io/github/forks/RealCyGuy/iwanttocountfromone.js?style=for-the-badge)](https://github.com/RealCyGuy/iwanttocountfromone.js/network)

*A lightweight? (~20kb minfied), dependency-free, javascript library so you can count from 1.*

## Installation

Link into html:

```html

```

Now you're good to go!

## Usage

Just count by 1!

```js
// Start of code block.
var array = ["hi", "bye"];
console.log(array[0]); // Normal way (counting by zero (bad (like very (very) bad))).
>> "hi"
console.log(array[iwanttocountfromone(1)]); // Very good and cool way.
>> "hi"
console.log(array[iwanttocountfromone(2)]);
>> "bye"
```

Don't count from 0!

```js
console.log(array[iwanttocountfromone(0)]);
>> NO COUNTING BY ZERO!!!
```

## Features

- [x] Count from 1!
- [ ] Cat gifs. (In progress)

## Notes

- Index may not exceed 1000.
- Don't take this too seriously.

## License
Licensed under [MIT](https://github.com/RealCyGuy/iwanttocountfromone.js/blob/master/LICENSE)