0.3.0 • Published 7 years ago
medium-fetcher v0.3.0
medium-fetcher
medium-fetcher provides a simple interface to get user and post data from medium
Install
yarn add medium-fetcher
or
npm install -S medium-fetcher
Usage
import medium from 'medium-fetcher'
// to fetch a user
const username = 'uesteibar'
medium.fetchUser({ username }).then(
(user) => console.log({ user })
)
Contributing
The project uses standard-version
to update the CHANGELOG with each commit message and upgrade the package version. For that reason every contribution should have a title and body that follows the conventional-changelog-standard conventions.
So this is a step by step guide to contributing to the project (mostly extracted from the standard-version
docs):
- when you land commits on your
master
branch, select the Squash and Merge option. - add a title and body that follows the conventional-changelog-standard conventions.
- when you're ready to release to npm:
git checkout master; git pull origin master
- run
npm run release
Helpers/Tools
- commitzen: A cli that will prompt the author to fill out any required commit fields at commit time. For this project we would use the cz-conventional-changelog adapter.