slant-api
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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.

Package Sidebar

Install

npm i slant-api

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

19.5 kB

Total Files

19

Last publish

Collaborators

  • juro-oravec