Socket
Book a DemoInstallSign in
Socket

helloworld-es6

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

helloworld-es6

Boilerplate for an ES6 node package/cli

1.0.10
latest
Source
npmnpm
Version published
Weekly downloads
2
-50%
Maintainers
1
Weekly downloads
 
Created
Source

helloworld-es6

Coverage Status Known Vulnerabilities npm version

This is a simple example module that returns a "Hello world" greeting in 6 different languages. To be used as a example/boilerplate for quickly getting started with developing a node package/cli using ES6 & babel.

English, Spanish, French, Swedish, Chinese, Turkish

Installation

Local: npm install helloworld-es6 --save
Global (cli): npm install helloworld-es6 -g

Example Usage

As module:
import helloWorld from 'helloworld-es6';
console.log(helloWorld()); // => "Hello world"
console.log(helloWorld('Swedish')); // => "Hej Världen"
console.log(helloWorld('french')); // => "Bonjour le monde"
console.log(helloWorld('Parseltongue')); // => "Sorry, I don´t know how to say "Hello World" in Parseltongue yet." 

As cli:
helloworld-es6
helloworld-es6 --language swedish

Use as boilerplate

# clone it
mkdir my-awsome-package
cd my-awsome-package
git clone git@github.com:ollelauribostrom/helloworld-es6.git .

# Make it your own
rm -rf .git && git init && npm init

# Install dependencies
npm install

# Start babel file watch
npm start

Available commands

  • npm start: Start babel file watch
  • npm run build: Build to /dist folder
  • npm test: Run tests
  • npm run coverage: Run test coverage using nyc, outputs report to /test/coverage
  • npm run coveralls: Run test coverage using nyc & send report to coveralls (must have specified repo_token in .coveralls.yml)
  • npm run lint: Run eslint

License

MIT

Keywords

es6

FAQs

Package last updated on 11 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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.