1.2.13 • Published 4 years ago

@latel88/job v1.2.13

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

Job

how to use

  • install
npm install @latel88/job
- CJS
```javascript
const { Job, Child, Collection } = require( "@latel88/job" ).default;
  • ESM
import { Job, Child, Collection } from "@latel88/job";

exsample

  • extend
class Entity extends Job
{
	constructor ()
	{
		super( "enemy" );

	}

};

const entity = new Entity();

entity.begin();
	
getFile( () =>
{
	entity.done();

} );

const id = setInterval( () =>
{
	if (entity.hasComplete())
	{
		callback();

		clearInterval( id );

	}
	else
	{
		if (hasError())
		{
			entity.skip();

		}
		else
		{
			sleep();

		}

	}

} );
class Entity extends Child
{
	constructor ()
	{
		super( "child#enemy.entity" );//css query selector

	}

};

const collection = new Collection();
const entity = new Entity();

collection.set( entity );
collection.find( ".entity" );
1.2.12

4 years ago

1.2.13

4 years ago

1.2.11

4 years ago

1.2.10

4 years ago

1.2.9

4 years ago

1.2.8

4 years ago

1.2.7

4 years ago

1.2.6

4 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.15

4 years ago

1.1.14

4 years ago

1.1.13

4 years ago

1.1.12

4 years ago

1.1.11

4 years ago

1.1.10

4 years ago

1.1.9

4 years ago

1.1.8

4 years ago

1.1.7

5 years ago

1.1.6

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.20

5 years ago

1.0.19

5 years ago

1.0.18

5 years ago

1.0.17

5 years ago

1.0.16

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

1.0.8

6 years ago