Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tarna/mclogs
https://github.com/tarna/mclogs
Last synced: 28 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/tarna/mclogs
- Owner: tarna
- License: mit
- Created: 2024-11-04T05:02:06.000Z (3 months ago)
- Default Branch: master
- Last Pushed: 2024-11-04T05:07:53.000Z (3 months ago)
- Last Synced: 2024-12-23T05:12:14.896Z (28 days ago)
- Language: TypeScript
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# mclogs
TypeScript library for the [mclo.gs](https://mclo.gs) HTTP [API](https://api.mclo.gs)## Installation
Install mclogs with [NPM](https://npmjs.com)```bash
npm install mclogs
```## Basic Usage
```ts
import mclogs from 'mclogs';async function main() {
const data = await mclogs.create('Hello, world!');
console.log(data);const raw = await mclogs.getRaw('qLHAQBz');
console.log(raw);const insights = await mclogs.getInsights('bs47Bij');
console.log(insights.analysis);const limits = await mclogs.getStorageLimits();
console.log(limits);
}main();
```For more examples, visit [example.ts](https://github.com/tarna/mclogs/blob/master/src/example.ts).
## Contributing
Contributions are always welcome!See [contributing.md](CONTRIBUTING.md) for ways to get started.
## License
[MIT](https://choosealicense.com/licenses/mit)## Contributors
- [@tarna](https://www.github.com/tarna)