slant-api

Unofficial API for Slant.co

Usage no npm install needed!

<script type="module">
  import slantApi from 'https://cdn.skypack.dev/slant-api';
</script>

README

slant-api

Latest Version Documentation contributions welcome License: MIT Package Size

Build Status Dependencies codecov Total alerts Language grade: JavaScript Maintainability


The first JS client for Slant.co API (unofficial)

🏠 Homepage | πŸ—ƒ Repository | πŸ“¦ NPM | πŸ“š Documentation | πŸ› Issue Tracker

πŸͺ‘ Table of Content

🧰 Features

This library allows you to access these parts of Slant.co:

  • tags

πŸ‘Ά Install

npm install slant-api

Basic usage

import { Slant } from 'slant-api';

const slant = new Slant();

// Get all tags
const tags = await slant.tags();

⚠️ NOTE: Slant.co does not provide an official client for interacting with the website programatically. As such, we cannot guarantee the client will work 100% of the time.

We do our best. To check the integrity with Slant.co endpoints, see and run the integration tests in test/integration.

πŸ€– API

TypeDoc documentation can be found here.

new Slant()

Initialize a new slant client instance.

slant.tags(): Tag[]

Get a list of all tags.

slant.tag(query): Tag

Get a single tag matching the query.

query can be either a function, object or array, and is passed to Lodash.find as a predicate.

⏳ Changelog

This projects follows semantic versioning. The changelog can be found here.

πŸ›  Developing

If you want to contribute to the project or have forked it, this guide will get you up and going.

🀝 Contributing

Contributions, issues and feature requests are welcome! Thank you ❀️

Feel free to dive in! See current issues, open an issue, or submit PRs.

How to report bugs, feature requests, and how to contribute and what conventions we use is all described in the contributing guide.

When contributing we follow the Contributor Covenant. See our Code of Conduct.

πŸ§™ Contributors

Contributions of any kind are welcome. Thanks goes to these wonderful people ❀️

Recent and Top Contributors

Hall of Fame Contributor 1 Hall of Fame Contributor 2 Hall of Fame Contributor 3 Hall of Fame Contributor 4 Hall of Fame Contributor 5 Hall of Fame Contributor 6 Hall of Fame Contributor 7 Hall of Fame Contributor 8

Generated using Hall of Fame.

All Contributors

Contribution type emoji legend

No additional contributors. Be the first one!

This project follows the all-contributors specification.

⭐ Show your support

Give a ⭐️ if this project helped you!

πŸ™ Community

πŸ‘¨β€πŸ”§ Maintainers

πŸ‘€ Juro Oravec

πŸ“ License

Copyright Β© 2020 Juro Oravec.

This project is MIT licensed.