1.1.8 • Published 1 year 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
1 year ago
1.1.7
1 year ago
1.1.6
2 years ago
1.1.5
2 years ago
1.1.4
2 years ago
1.1.3
2 years ago
1.1.2
2 years ago
1.1.1
2 years ago
1.1.0
2 years ago
1.0.0
2 years ago
0.0.9
2 years ago
0.0.8
2 years ago
0.0.7
2 years ago
0.0.6
2 years ago
0.0.5
2 years ago
0.0.4
2 years ago
0.0.3
2 years ago
0.0.2
2 years ago
0.0.1
2 years ago