i4countries
Interface to a slim country dataset
Last updated 6 years ago by andreineculau .
Unlicense · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install i4countries 
SYNC missed versions from official npm registry.

i4countries

Interface to a slim country dataset

An experiment serving these purposes:

  • provide a CLI
  • provide an "API" (HTTP server)
    • enacting proper HTTP usage
    • creating/using some vendor media-types (targeting a future media-type registration)

Install

npm install i4countries

Usage

CLI

i4countries name,lang:RO

NodeJS

i4countries = require 'i4countries'

i4countries.search {keys: ['name', 'lang'], which: 'RO'}, (err, res) ->
  throw err  if err?
  if res.headers['Content-Type'] is 'application/vnd.hyperrest.countries-v1+json'
    console.log res.body.items
    consoel.log res.body.links

HTTP API

"TODO"

License

UNLICENSE

Current Tags

  • 0.1.1                                ...           latest (6 years ago)

5 Versions

  • 0.1.1                                ...           6 years ago
  • 0.1.0                                ...           6 years ago
  • 0.0.2                                ...           6 years ago
  • 0.0.1                                ...           6 years ago
  • 0.0.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 6
Dependencies (7)
Dev Dependencies (5)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |