Skip to content

Commit 78160d6

Browse files
committed
Update README.md
Epic gamer moment.
1 parent 7da447c commit 78160d6

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

README.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,26 @@
1-
Okay I promise I'll do this next commit I promise
1+
Danii's Tools
2+
=============
3+
Danii's Tools is a set of functions, types, better typings and extra methods to help improve your coding experience. Feel free to take whatever you like and leave the rest.
4+
5+
Usage
6+
-----
7+
Simply import the file that corresponds to your environments module manager and enjoy extended prototypes and types in TypeScript.
8+
9+
```TypeScript
10+
import "./tools";
11+
12+
let numberNames: Of<number> = {"one": 1, "two": 2, "three": 3};
13+
```
14+
```JavaScript
15+
require("./tools");
16+
17+
let strings = {
18+
"en": "You have ${count} new messages.",
19+
"cn": "您有${count}条新消息。"
20+
}
21+
22+
alert(strings.en.interpolate({"count": 5}));
23+
```
24+
25+
### Modifications
26+
This project is licensed under the GNU General Public License v3.0, meaning you can modify it as much as you'd like, as long as you state your changes and keep a copy of the license public. So if you don't want / can't have object's prototype's to be extended, then you can edit them into functions or take them out and use them as you wish.

0 commit comments

Comments
 (0)