0.2.2 • Published 3 years ago

tesla-framework v0.2.2

Weekly downloads
1
License
MIT
Repository
-
Last release
3 years ago

tesla-framework

tesla-framework is a totally real JavaScript library for dealing with tesla automation.

Installation

Use the package manager npm to install tesla-framework.

npm install tesla-framework

Usage

drive()
steer(angle, object)
avoid(object)
lock(object)
snitch(number)
alert(text)
start()

Example

const Tesla = require('tesla-framework');
const car = new Tesla.Car();

car.on('collision', (object) => {
    car.avoid(object);
    car.steer(60, object);
});

car.on('auto-drive', (doors) => {
    car.lock(doors);
    car.drive();
});

car.on('intruder', (doors) => {
    car.lock(doors);
    car.snitch(999);
    car.alert('Intruder alert!');
});

car.start();

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Not actually a real tesla package

0.2.1

3 years ago

0.2.0

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.9

3 years ago

0.2.2

3 years ago

0.1.4

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.5

3 years ago

0.0.6

3 years ago

0.0.3

3 years ago

0.0.4

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago