JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 27
  • Score
    100M100P100Q45710F
  • License MIT

A simple js library for astrology.

Package Exports

  • astro-lib

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (astro-lib) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

astro-lib

A simple js library for astrology.

Examples

See examples folder in the repository.

Or check out this Codepen for basic usage.

Documentation

See the documentation here in the docs folder.

Use in browser

When using in browser you need to add moment.js before using the library.

Also please note that while the name of the package is astro-lib, in code you must use astro_lib please see the example folder.

Date format

Under the hood, this uses the moment.js library to handle all sorts of edge cases regarding dates, by default it uses the YYYY-MM-DD format, but you can send any date format moment.js allows and it should use it

License

MIT, see accompaning license file.

TODO

  • Investigate adding function to get Moon sign.