https://github.com/pro/fswin-binary
Use fswin without Visual C++ (Node.js)
https://github.com/pro/fswin-binary
Last synced: over 1 year ago
JSON representation
Use fswin without Visual C++ (Node.js)
- Host: GitHub
- URL: https://github.com/pro/fswin-binary
- Owner: Pro
- Created: 2014-08-27T18:19:31.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-08-29T12:52:20.000Z (almost 12 years ago)
- Last Synced: 2025-01-07T12:19:52.375Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 641 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fswin-binary [](http://badge.fury.io/js/fswin-binary) [](http://travis-ci.org/stevenvachon/fswin-binary) [](https://ci.appveyor.com/project/stevenvachon/fswin-binary) [](https://david-dm.org/stevenvachon/fswin-binary)
> Use [fswin](https://npmjs.org/package/fswin) without Visual C++ (Node.js)
## Getting Started
[Node.js](http://nodejs.org/) `~0.10` is required. To install, type this at the command line:
```
npm install fswin-binary --save-dev
```
### Usage
```js
var fsWin = require("fswin-binary");
if (process.platform.indexOf("win") == 0) {
fsWin.setAttributes(pathToFileOrDir, attributes, function(success) {
console.log(success);
});
} else {
console.log(fsWin); //=> null
}
```