Current collected state Current
Observed since 20 Oct, 21:13 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
7x-sdk
The 7x JavaScript SDK
To use this SDK, you will need an API Key. Sign up on https://7x.ax to get started.
npm i 7x-sdk
const Timezone = require('7x-sdk').Timezone;
let tz = new Timezone(API_KEY);
let data = tz.get(30.0444, 31.2357);
// data is an instance of the Timezone DTO
console.log(data.timezones);
const Distance = require('7x-sdk').Distance;
let d = new Distance(API_KEY);
let data = d.getByCoordinates(22.22, 33.33, 44.44, 55.55, 'km');
// data is an instance of the Distance DTO.
data.distance;
data.unit; // km if you specified km, or mi if you specified mi. Defaults to km if not specified.
const Distance = require('7x-sdk').Distance;
let d = new Distance(API_KEY);
let data = d.getByAddress('London, UK', 'Paris, France', 'km');
// data is an instance of the Distance DTO.
$data.distance;
$data.unit; // km if you specified km, or mi if you specified mi. Defaults to km if not specified.
const Geocode = require('7x-sdk').Geocode;
let g = new Geocode(API_KEY);
let data = g.get('Trafalgar Square, London, UK');
// data is an instance of GeocodeCollection. This contains an array of objects.
for (let obj of data.objects) {
obj.coordinates; // Instance of Coordinates
obj.location; // Instance of Location}
}
const Geocode = require('7x-sdk').Geocode;
let g = new Geocode(API_KEY);
let data = g.search('Lon');
// data is an instance of the GeocodeCollection DTO. This contains an array of objects.
for (let obj of data.objects) {
obj.coordinates; // Instance of Coordinates
obj.location; // Instance of Location
}
const Geocode = require('7x-sdk').Geocode;
let g = new Geocode(API_KEY);
let data = g.reverse(22.223232, 33.343443);
// data is an instance of the GeocodeCollection DTO. This contains an array of objects.
for (let obj of data.objects) {
obj.coordinates; // Instance of Coordinates
obj.location; // Instance of Location
}
const Numbers = require('7x-sdk').Numbers;
let g = new Numbers(API_KEY);
let data = g.latinToArabic(22.223232);
// data is an instance of the Arabic DTO. This contains an array of objects.
data.arabic;
data.latin
let data = g.arabicToLatin('١٢٣٤٥٦٧٨٩٠');
// data is an instance of the Arabic DTO. This contains an array of objects.
data.arabic;
data.html
let data = g.arabicToHtml('١٢٣٤٥٦٧٨٩٠');
// data is an instance of the Arabic DTO. This contains an array of objects.
data.arabic;
data.html
const Dt = require('7x-sdk').DateAndTime;
let g = new Dt(API_KEY);
let data = g.byTimezone('Africa/Cairo');
// or
let data = g.byCoordinates(22.223232, 33.343443);
// or
let data = g.byAddress('Trafalgar Square, London, UK');
// data is an instance of the DateAndTime DTO.
data.time;
data.timezone;
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
@types/jestEnvironment{
"local_name": "@types/jest",
"alias": false,
"peer_metadata": null
} | ^29.5.1 | development |
jestEnvironment{
"local_name": "jest",
"alias": false,
"peer_metadata": null
} | ^29.5.0 | development |
ts-jestEnvironment{
"local_name": "ts-jest",
"alias": false,
"peer_metadata": null
} | ^29.1.0 | development |
typescriptEnvironment{
"local_name": "typescript",
"alias": false,
"peer_metadata": null
} | ^5.0.4 | development |
Source distribution
{
"integrity": "sha512-D2pCEn2hbHk4mhKQ54s+TIy5t4CdFGG/9lBTadqwB3Y5p2ivfJvnv1VX23CXdbw0Gmcb+7cKH8M7b4G8X/+2Fw==",
"shasum": "81bda4e105091e6a622d7e6a607b231b816a328c",
"tarball": "https://registry.npmjs.org/7x-sdk/-/7x-sdk-1.0.3.tgz",
"fileCount": 42,
"unpackedSize": 26782,
"signatures": [
{
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
"sig": "MEUCIHWAhXFThR3DyVCtiqf1b0nz0/iFR4NFVgyAc7+/yWdPAiEA9NM9lASABovqFtRnv4z/bYzma45P+Jovp5SltM+qeFM="
}
]
}Observed since 20 Oct, 21:13 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:bd2723f2d8f151d5bf50a9911d8e4eade24e5e26eb1162fd5564241789b5e1a5