Skip to content

Commit

Permalink
v1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeongho Nam committed Aug 10, 2016
1 parent 6aebf71 commit 0d2a980
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 30 deletions.
3 changes: 1 addition & 2 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,4 @@ ts
wiki

*.bat
*.*ignore
*.d.ts
*.*ignore
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,23 @@ You can learn and explore about TypeScript-STL more deeply with such below:


## Installation
Installing *TypeScript-STL* in **node** is very easy. Just install with **npm**.
Installing *TypeScript-STL* in **node** is very easy. Just install with **npm** and **tsd**.

#### Node
``` npm install -g typescript-stl ```
``` bash
# Install TypeScript-STL from NPM modules
npm install -g typescript-stl

# Fetch definition (header) file from TSD
# If TSD is not installed, then type "npm install -g tsd"
tsd install typescript-stl
```

#### TypeScript
Don't forget to referencing header files, ```typescript-stl.d.ts```.

``` typescript
/// <reference path="typescript-stl.d.ts" />
/// <reference path="typings/typescript-stl/typescript-stl.d.ts" />

import std = require("typescript-stl");
let map: std.TreeMap<string, number> = new std.TreeMap<string, number>();
Expand Down
55 changes: 30 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,34 @@
{
"name": "typescript-stl",
"description": "TypeScript-STL (Standard Template Library, migrated from C++)",
"author": {
"name": "Jeongho Nam",
"email": "[email protected]",
"url": "http://samchon.org"
},
"version": "1.0.0-rc.6",
"name": "typescript-stl",
"description": "TypeScript-STL (Standard Template Library, migrated from C++)",
"author":
{
"name": "Jeongho Nam",
"email": "[email protected]",
"url": "http://samchon.org"
},
"version": "1.0.0-rc.8",

"main": "./lib/typescript-stl.js",
"homepage": "https://github.com/samchon/typescript-stl",
"repository": {
"type": "git",
"url": "https://github.com/samchon/typescript-stl.git"
},
"bugs": { "url": "https://github.com/samchon/typescript-stl/issues" },
"main": "./lib/typescript-stl.js",
"typings": "./lib/typescript-stl.d.ts",

"licenses": [
{
"type": "BSD-3-Clause",
"url": "https://opensource.org/licenses/BSD-3-Clause"
}
],
"keywords": [
"stl", "standard template library",
"typescript", "standard", "template", "container", "library",
"vector", "deque", "list", "queue", "stack", "hash", "tree", "map", "set", "iterator"]
"homepage": "https://github.com/samchon/typescript-stl",
"repository":
{
"type": "git",
"url": "https://github.com/samchon/typescript-stl.git"
},
"bugs": { "url": "https://github.com/samchon/typescript-stl/issues" },

"licenses":
[{
"type": "BSD-3-Clause",
"url": "https://opensource.org/licenses/BSD-3-Clause"
}],
"keywords":
[
"stl", "standard template library",
"typescript", "standard", "template", "container", "library",
"vector", "deque", "list", "queue", "stack", "hash", "tree", "map", "set", "iterator"
]
}

0 comments on commit 0d2a980

Please sign in to comment.