UNPKG
easybit
Version:
latest (0.0.1)
0.0.1
Library for simple register and bit manipulations.
github.com/BioBoost/easybit
BioBoost/easybit
easybit
/
demo.js
10 lines
(7 loc)
•
273 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
const
easybit =
require
(
'./src/easybit'
);
console
.
log
(easybit.
set
(
0x00
,
1
));
console
.
log
(easybit.
set
(
0xFF
,
1
));
console
.
log
(easybit.
clear
(
0x00
,
1
));
console
.
log
(easybit.
clear
(
0xFF
,
1
));
console
.
log
(easybit.
toggle
(
0x00
,
1
));
console
.
log
(easybit.
toggle
(
0xFF
,
1
));