0.4.9 • Published 6 years ago

@make-mjs/main v0.4.9

Weekly downloads
130
License
MIT
Repository
github
Last release
6 years ago

@make-mjs/main

Main program

APIs Documentation

Go to the GitHub page

Usage

import main, { EventType } from '@make-mjs/main'

// main() returns an async iterator
const events = main({
  dirname: 'src',
  /* ...and more options... */
})

for await (const event of events) {
  if (event.type === EventType.BeforeWrite) {
    console.log('Writing to file:', event.file.path)
  }

  if (event.type === EventType.AfterWrite) {
    console.log('Complete writing:', event.file.path)
  }
}

License

MIT © Hoàng Văn Khải

0.4.9

6 years ago

0.4.8

6 years ago

0.4.7

6 years ago

0.4.6

6 years ago

0.4.5

6 years ago

0.4.4

6 years ago

0.4.3

6 years ago

0.4.2

6 years ago

0.4.1

6 years ago

0.4.0

6 years ago

0.3.0

6 years ago

0.2.0

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago

0.0.0

6 years ago