1.1.8 • Published 3 years ago
strapi-client-core v1.1.8
Strapi Client - Integration with Strapi-CMS
A strapi-client
library to fetch data from Strapi-CMS
for static sites.
Example Usgae
const client = require('strapi-client');
const dataPath = './data'
const mediaPath = './media'
const url = process.env.GATEWAY_URL
const token = process.env.GATEWAY_TOKEN
client.fetch(`${url}/graphql`, token)
/** Write data to target dir **/
.then((res) => client.write(url, token, res, dataPath, mediaPath)
.catch(err => {
console.log('Failed to fetch data: ', error?.message || error)
}));
1.1.8
3 years ago
1.1.7
3 years ago
1.1.6
3 years ago
1.1.5
3 years ago
1.1.4
3 years ago
1.1.3
3 years ago
1.1.2
3 years ago
1.1.1
3 years ago
1.1.0
3 years ago
1.0.0
3 years ago
0.0.9
3 years ago
0.0.8
3 years ago
0.0.7
3 years ago
0.0.6
3 years ago
0.0.5
3 years ago
0.0.4
3 years ago
0.0.3
3 years ago
0.0.2
3 years ago
0.0.1
3 years ago