유용한 NPM 모듈(modules) 리스트

유용한 npm 모듈 리스트

Cuid

1
$ npm install --save cuid

CoffeeScript

1
npm install --save-dev coffeescript

PM2 — Advanced Node.js process manager

1
$ npm install pm2 -g

Pug — template engine for Express

1
$ npm install pug

Mocha — the fun, simple, flexible JavaScript test framework

1
$ npm install --global mocha

Jest

Nodemailer

1
$ npm install nodemailer

Cheerio

1
$ npm install cheerio

Sequelize — The Node.js ORM Mapper

1
$ npm install --save sequelize

Express — Node.js web application framework

1
$ npm install express

Chalk - is a terminal-styling library

1
2
3
4
5
6
log(chalk.blue('Hello') + ' World' + chalk.red('!'));

console.log(chalk`
There are {bold 5280 feet} in a mile.
In {bold ${miles} miles}, there are {green.bold ${calculateFeet(miles)} feet}.
`);

Morgan

jQuery

Nodemon

Dotenv

Mongoose - object-modeling library for MongoDB databases

1
2
3
4
5
6
7
8
const mongoose = require('mongoose');
mongoose.connect('mongodb://localhost:27017/db-url', {useNewUrlParser: true, useUnifiedTopology: true});

const Cat = mongoose.model('Cat', { name: String });

const kitty = new Cat({ name: 'Taco' });

kitty.save().then(() => console.log('Cat added'));

Bootstrap

GraphQL - a query language for HTTP requests

1
2
3
4
5
6
7
8
9
10
11
12
graphql`{
person {
name
}
}`

// Returns:
{
"person": {
"name": "John Doe"
}
}

Lodash

1
2
3
4
5
_.defaults({ 'a': 1 }, { 'a': 3, 'b': 2 });
// → { 'a': 1, 'b': 2 }

_.partition([1, 2, 3, 4], n => n % 2);
// → [[1, 3], [2, 4]]

Axios - async promise-based HTTP request library

GatsbyJS - a framework that follows the JamStack

Luxon

1
2
3
dt.toISOWeekDate();
dt.toMillis();
dt.toLocaleString({ month: 'long', day: 'numeric' });

Faker - supplies that fake data

ESLint

UUID