@angular-builders/timestamp

[![npm version](https://img.shields.io/npm/v/@angular-builders/timestamp.svg) ![npm (tag)](https://img.shields.io/npm/v/@angular-builders/timestamp/next.svg) ![npm](https://img.shields.io/npm/dm/@angular-builders/timestamp.svg)](https://www.npmjs.com/pack

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
88252Jun 8, 2021Jul 3, 2018Minified + gzip package size for @angular-builders/timestamp in KB

Readme

Timestamp builder for Angular build facade

npm version npm (tag) npm

This builder is an example from the Medium article Angular CLI under the hood — builders demystified.

Usage

  1. In the root of your Angular application:

    npm i -D @angular-builders/timestamp
    
  2. In your angular.json add the following to architect section of the relevant project:

    "timestamp": {
      "builder": "@angular-builders/timestamp:file",
      "options": {}
    },
    
  3. Run: ng run [relevant-project]:timestamp Where [relevant-project] is the project to which you've added the target

Options

  • path - path to the file with timestamp, defaults to ./timestamp
  • format - timestamp date format, defaults to dd/mm/yyyy

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.