service-core/core/test.mjs

8 lines
230 B
JavaScript
Raw Normal View History

2020-09-07 00:47:53 +00:00
import * as client from './client.mjs'
client.request('https://api.github.com/repos/thething/sc-helloworld/releases')
.then(
a => console.log('res:', a),
err => console.error('err', err)
).then(() => process.exit(0))