An open API service indexing awesome lists of open source software.

https://github.com/gulpjs/hacker

Hack on your project easily. A liftoff proof-of-concept.
https://github.com/gulpjs/hacker

cli flags liftoff nodejs proof-of-concept

Last synced: about 2 months ago
JSON representation

Hack on your project easily. A liftoff proof-of-concept.

Awesome Lists containing this project

README

          





# hacker

[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][ci-image]][ci-url] [![Coveralls Status][coveralls-image]][coveralls-url]

Hack on your project easily. A [liftoff](https://github.com/gulpjs/liftoff) proof-of-concept.

### How to use it

1. Install globally with `npm install -g hacker`.
2. Write your `Hackerfile`.
3. Run `hacker` in your project directory.
4. The rest is up to you.

#### Options

- `--cwd` specify the working directory to run hacker
- `--hackerfile` specify an exact hackerfile path
- `--require` require an external module before loading your hackerfile
- `--verbose` show some debugging info about how hacker is working

### Examples

#### Hackerfile.js

```js
var fs = require('fs');
fs.writeFileSync('tmp', 'i will be written relative to this file, always.');
```

To run:
`hacker`

#### Hackerfile.coffee

```coffeescript
fs = require 'fs'
fs.writeFileSync 'tmp', 'i will be written relative to this file, always.'
```

To run:
`hacker`

## License

MIT

[downloads-image]: https://img.shields.io/npm/dm/hacker.svg?style=flat-square
[npm-url]: https://www.npmjs.com/package/hacker
[npm-image]: https://img.shields.io/npm/v/hacker.svg?style=flat-square

[ci-url]: https://github.com/gulpjs/hacker/actions?query=workflow:dev
[ci-image]: https://img.shields.io/github/workflow/status/gulpjs/hacker/dev?style=flat-square

[coveralls-url]: https://coveralls.io/r/gulpjs/hacker
[coveralls-image]: https://img.shields.io/coveralls/gulpjs/hacker/master.svg?style=flat-square