0.1.1 • Published 6 years ago

diograph-store v0.1.1

Weekly downloads
-
License
ISC
Repository
-
Last release
6 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

6 years ago

0.0.10

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago