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.
- Host: GitHub
- URL: https://github.com/realcyguy/iwanttocountfromone.js
- Owner: RealCyGuy
- License: mit
- Created: 2020-05-05T17:33:28.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-04T18:35:37.000Z (over 3 years ago)
- Last Synced: 2025-05-30T15:05:59.485Z (about 1 year ago)
- Topics: count, javascript, javascript-library, js, js-library, library
- Language: JavaScript
- Homepage: https://iwanttocountfromone.js.org
- Size: 81.1 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# iWantToCountFromOne.js
[](https://app.codacy.com/manual/RealCyGuy/iwanttocountfromone.js/dashboard)
[](https://github.com/RealCyGuy/iwanttocountfromone.js/blob/master/LICENSE)
[](https://github.com/RealCyGuy/iwanttocountfromone.js/issues)
[](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)