Sun calculation js library which is fully based on formula from http://aa.quae.nl/en/reken/zonpositie.html
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
352 B
12 lines
352 B
const MiniPass = require('./')
|
|
const butterfly = '🦋'
|
|
var mp = new MiniPass({ encoding: 'utf8' })
|
|
mp.on('data', chunk => {
|
|
console.error('data %s', chunk)
|
|
})
|
|
var butterbuf = new Buffer([0xf0, 0x9f, 0xa6, 0x8b])
|
|
mp.write(butterbuf.slice(0, 1))
|
|
mp.write(butterbuf.slice(1, 2))
|
|
mp.write(butterbuf.slice(2, 3))
|
|
mp.write(butterbuf.slice(3, 4))
|
|
mp.end()
|
|
|