
org.scalajs.nodejs.filed.Filed.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scalajs-npm-filed_sjs0.6_2.11 Show documentation
Show all versions of scalajs-npm-filed_sjs0.6_2.11 Show documentation
npm/filed binding for Scala.js
The newest version!
package org.scalajs.nodejs
package filed
import org.scalajs.nodejs.stream.Writable
import scala.scalajs.js
/**
* filed - Simplified file library.
* @version 0.1.0
* @see [[https://www.npmjs.com/package/filed]]
* @author [email protected]
*/
@js.native
trait Filed extends NodeModule {
/**
* Filed does a lazy stat call so you can actually open a file and begin writing to it and if the file isn't
* there it will just be created.
*/
def apply(file: String): Writable = js.native
}
/**
* Filed Companion
* @author [email protected]
*/
object Filed {
/**
* Convenience method for retrieving the 'filed' module
* @param require the implicit [[NodeRequire require function]]
* @return the Filed instance
*/
def apply()(implicit require: NodeRequire) = require[Filed]("filed")
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy