https://github.com/fluse/mote-css
css responsive framework
https://github.com/fluse/mote-css
Last synced: 6 months ago
JSON representation
css responsive framework
- Host: GitHub
- URL: https://github.com/fluse/mote-css
- Owner: fluse
- Created: 2014-05-12T14:56:07.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2016-04-21T14:03:05.000Z (about 10 years ago)
- Last Synced: 2025-07-09T15:44:44.063Z (11 months ago)
- Language: JavaScript
- Homepage:
- Size: 4.38 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bin-wrapper [](https://travis-ci.org/kevva/bin-wrapper)
> Binary wrapper for Node.js that makes your programs seamlessly available as local dependencies
## Install
```sh
$ npm install --save bin-wrapper
```
## Usage
```js
var BinWrapper = require('bin-wrapper');
var bin = new BinWrapper()
.src('https://raw.github.com/yeoman/node-jpegtran-bin/0.2.4/vendor/win/x64/jpegtran.exe', 'win32', 'x64')
.src('https://raw.github.com/yeoman/node-jpegtran-bin/0.2.4/vendor/win/x64/libjpeg-62.dll', 'win32', 'x64')
.dest('vendor')
.use('jpegtran.exe')
.version('>=1.3.0');
bin.run(['--version'], function (err) {
if (err) {
throw err;
}
console.log('jpegtran is working');
});
```
Get the path to your binary with `bin.path()`:
```js
console.log(bin.path()); // => path/to/vendor/jpegtran.exe
```
## API
### new BinWrapper()
Creates a new `BinWrapper` instance.
### .src(url, os, arch)
Accepts a URL pointing to a file to download.
### .dest(dest)
Accepts a path which the files will be downloaded to.
### .use(bin)
Define which file to use as the binary.
### .path()
Get the full path to your binary.
### .version(range)
Define a [semver range](https://github.com/isaacs/node-semver#ranges) to check
the binary against.
### .run(cmd, cb)
Runs the search for the binary. If no binary is found it will download the file using the URL
provided in `.src()`. It will also check that the binary is working by running it using `cmd`
and checking it's exit code.
## License
MIT © [Kevin Mårtensson](http://kevinmartensson.com)