1.0.6 • Published 8 years ago

national-high-school v1.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

NationalHighSchoolData-cn

National high school data of China

Install

$ npm install national-high-school --save

Use

import NationalHighSchoolData from 'national-high-school'

API

  • Get all schools
/**
* get all schools
* @return {array} schools - school list
*/
NationalHighSchoolData.schools()
  • Get school by school code
/**
* get school by school code
* @param  {string || number} code - school code
* @return {object} school - school instance
*/
NationalHighSchoolData.getByCode(code)
  • Get school by area code
/**
* get schools by area code
* @param  {string || number} areaCode - area code
* @return {array} schools - school list
*/
NationalHighSchoolData.getByAreaCode(areaCode)
  • Search school by name
/**
* search school by name
* @param  {string} name - school name
* @return {array} schools - school list
*/
NationalHighSchoolData.searchByName(name)
1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago