0.1.1 • Published 7 years ago

diograph-store v0.1.1

Weekly downloads
-
License
ISC
Repository
-
Last release
7 years ago

Diograph-store

Usage

npm install diograph-store
// example.ts

import { DiographStore } from "./app/diograph-store"

DiographStore.setAuthToken("my-dev-token");

try {
  DiographStore.getDiory("1234").then((diory) => {
    console.log(diory)
  })
} catch(e) {
  console.log(e)
}

Output:

Diory {
  id: '1234',
  name: 'Test diory',
  url: 'http://google.com/',
  type: 'webpage',
  background: undefined,
  date: undefined,
  geo: {
    latitude: undefined,
    longitude: undefined
  },
  connectedDiories = []
}

Compile

npm run compile

Compiles Typescript into Javascript starting from app/index.ts. Compiled Javascript is placed into lib/.

Tests

npm test

Jasmine tests are placed in spec/ folder. With npm test Typescript is compiled to Javascript and tests run with jasmine:

0.1.1

7 years ago

0.0.10

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago