atom-nodejs-snippets

A collection of Nodejs, JavaScript snippets.

amandeepmittal

62,494

23

2.1.1

MIT

GitHub

Nodejs Snippets for Atom

apm apm apm

A collection of Nodejs, JavaScript snippets.

This package also support some of the ES6 syntax half-heartedly.

Install

Go to Settings > Install & then search for atom-nodejs-snippets under Packages. After installation, restart Atom.

Snippets

These snippets are for daily use to avoid writing as much as it could the boilerplate code. If you like, to add yours, feel free to contribute.

To use, please press tab after shortkeys expressed as following.

Nodejs Commonly used entities:

path Module

fs Module

event Module

stream Module

Process & Global Variables

boilerplate code for importing core modules

For ES6:

Eg: const util = require('util');

Consoles Shorthand

assert Module

Promise

timer functions

BDD Testing

BDD Chai expect Library

Common JS Syntax

ES6 Syntax

process.nextTick()

JSON


TODO

Contribute

Pull requests for more snippets are welcome.

License

MIT Copyright (c) 2016 Aman Mittal