Trait/Object

io.scalajs.npm.express

Express

Related Docs: object Express | package express

Permalink

trait Express extends Object with IEventEmitter

Fast, unopinionated, minimalist web framework

Annotations
@RawJSType() @native()
Version

4.14.0

See also

https://www.npmjs.com/package/express

Linear Supertypes
IEventEmitter, Object, Any, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Express
  2. IEventEmitter
  3. Object
  4. Any
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def Router(options: |[RouterOptions, RawOptions] = js.native): Router

    Permalink

    Creates a new router object.

    Creates a new router object.

    Example:
    1. express.Router([options])
  5. def addListener(eventName: String, listener: Function): Express.this.type

    Permalink
    Definition Classes
    IEventEmitter
  6. def apply(): Application

    Permalink

    Creates an Express application.

    Creates an Express application. The express() function is a top-level function exported by the express module.

    Example:
    1. var app = express()
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. var domain: String

    Permalink
    Definition Classes
    IEventEmitter
  10. def emit(name: String, args: Any*): Any

    Permalink
    Definition Classes
    IEventEmitter
  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def getMaxListeners(): Int

    Permalink
    Definition Classes
    IEventEmitter
  16. def hasOwnProperty(v: String): Boolean

    Permalink
    Definition Classes
    Object
  17. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. def isPrototypeOf(v: Object): Boolean

    Permalink
    Definition Classes
    Object
  20. def listenerCount(eventName: String): Int

    Permalink
    Definition Classes
    IEventEmitter
  21. def listeners(eventName: String): Array[Function]

    Permalink
    Definition Classes
    IEventEmitter
  22. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. def on(eventName: String, listener: Function): Express.this.type

    Permalink
    Definition Classes
    IEventEmitter
  26. def once(eventName: String, listener: Function): Express.this.type

    Permalink
    Definition Classes
    IEventEmitter
  27. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  28. def removeAllListeners(): Express.this.type

    Permalink
    Definition Classes
    IEventEmitter
  29. def removeAllListeners(eventName: String): Express.this.type

    Permalink
    Definition Classes
    IEventEmitter
  30. def removeListener(eventName: String, listener: Function): Express.this.type

    Permalink
    Definition Classes
    IEventEmitter
  31. def setMaxListeners(n: Int): Express.this.type

    Permalink
    Definition Classes
    IEventEmitter
  32. def static(root: String, options: |[StaticOptions, RawOptions] = js.native): Router

    Permalink

    This is the only built-in middleware function in Express.

    This is the only built-in middleware function in Express. It serves static files and is based on serve-static. The root argument refers to the root directory from which the static assets are to be served. The file to serve will be determined by combining req.url with the provided root directory. When a file is not found, instead of sending a 404 response, this module will instead call next() to move on to the next middleware, allowing for stacking and fall-backs.

    The following table describes the properties of the options object.

    Example:
    1. express.static(root, [options])

  33. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  34. def toLocaleString(): String

    Permalink
    Definition Classes
    Object
  35. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  36. var usingDomains: Boolean

    Permalink
    Definition Classes
    IEventEmitter
  37. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  38. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def bodyParser(): Router

    Permalink

    bodyParser() middleware has been deprecated; use BodyParser.json() and BodyParser.urlencoded() as needed

    bodyParser() middleware has been deprecated; use BodyParser.json() and BodyParser.urlencoded() as needed

    Annotations
    @deprecated
    Deprecated

    (Since version 4.0) Use BodyParser.json() and BodyParser.urlencoded() as needed

    See also

    https://github.com/expressjs/body-parser/commit/b7420f8dc5c8b17a277c9e50d72bbaf3086a3900

Inherited from IEventEmitter

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped