json-type

0.2.0 • Public • Published

json-type

Build Status

Check what datatype is the json. The reason of making this repository is that you can't know if the data is a geojson or topojson or normal json. And this repository help you to find out.

Install

npm install json-type

API

JsonType.isObject(str or json)

return true if it is object.

JsonType.isArray(str or json)

return true if it is a array.

JsonType.isJson(str or json)

return true if it is a json.

JsonType.isGeojson(str or json)

return true if it is a geojson.

JsonType.isTopojson(str or json)

return true if it is a topojson.

License

MIT @chilijung

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.0
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i json-type

Weekly Downloads

0

Version

0.2.0

License

MIT

Last publish

Collaborators

  • chilijung