Skip to content

Better exports name #89

@mrleblanc101

Description

@mrleblanc101

Hi,
Why is called forward and toPoint ?
When using esm import, the function name are not clear at all.
Shouldn't it use clearer name like: mgrsToLatlong and latlongtoMgrs ?

So instead of this:

import { forward, toPoint } from 'mgrs';

mgrs = forward([form.value.local.lat, form.value.local.long]);
const [lat, long] = toPoint(form.value.local.mgrs);

We would have this:

import { latlongtoMgrs, mgrsToLatlong } from 'mgrs';

mgrs = latlongtoMgrs([form.value.local.lat, form.value.local.long]);
const [lat, long] = mgrsToLatlong(form.value.local.mgrs);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions