Create a file named app/main.js
with "some content goes here":
var writeFile = require('broccoli-file-creator');
var tree = writeFile('/app/main.js', 'some content goes here');
writeFile(filename, content, fileOptions)
filename
{String}
The path of the file to create.
content
{String}
The contents to write into the file.
I know, right?
Running the tests:
npm install
npm test
This project is distributed under the MIT license.
# Broccoli's File Creator [![Build Status](https://travis-ci.org/rwjblue/broccoli-file-creator.svg?branch=master)](https://travis-ci.org/rjackson/broccoli-file-creator) ## Usage Create a file named `app/main.js` with "some content goes here": ```javascript var writeFile = require('broccoli-file-creator'); var tree = writeFile('/app/main.js', 'some content goes here'); ``` ## Documentation ### `writeFile(filename, content, fileOptions)` --- `filename` *{String}* The path of the file to create. --- `content` *{String}* The contents to write into the file. ## ZOMG!!! TESTS?!?!!? I know, right? Running the tests: ```javascript npm install npm test ``` ## License This project is distributed under the MIT license.