Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hapiness/date

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hapiness/date

Date module for Hapiness framework based on moment

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source
Hapiness
build coveralls dependencies devDependencies

Date Module

Date module for the Hapiness framework.

Table of contents

Using your module inside Hapiness application

yarn or npm it in your package.json

$ npm install --save @hapiness/core @hapiness/date

or

$ yarn add @hapiness/core @hapiness/date
"dependencies": {
    "@hapiness/core": "^1.3.0",
    "@hapiness/date": "^1.0.0",
    //...
}
//...

import DateModule from the library

import { Hapiness, HapinessModule } from '@hapiness/core';
import { DateModule, DateService } from '@hapiness/date';

@HapinessModule({
    version: '1.0.0',
    imports: [
        DateModule
    ]
})
class HapinessModuleApp {
    constructor(private date: DateService) {
        this.date.getTimezoneInfos();
        this.date.helper(); // momentjs object
    }
}

Hapiness.bootstrap(HapinessModuleApp);


Back to top

Contributing

To set up your development environment:

  1. clone the repo to your workspace,
  2. in the shell cd to the main folder,
  3. hit npm or yarn install,
  4. run npm or yarn run test.
    • It will lint the code and execute all tests.
    • The test coverage report can be viewed from ./coverage/lcov-report/index.html.

Back to top

Change History

  • v1.0.0 (2017-12-19)
    • Module initialization.
    • Moment.js helper + timezone.
    • Documentation.

Back to top

Maintainers

tadaweb
Julien FauvilleAntoine GomezSébastien RitzNicolas Jessel

Back to top

License

Copyright (c) 2017 Hapiness Licensed under the MIT license.

Back to top

Keywords

FAQs

Package last updated on 19 Dec 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc