Instant Node Package Manager - Juzer Ali - E-Book

Instant Node Package Manager E-Book

Juzer Ali

0,0
20,39 €

-100%
Sammeln Sie Punkte in unserem Gutscheinprogramm und kaufen Sie E-Books und Hörbücher mit bis zu 100% Rabatt.

Mehr erfahren.
Beschreibung

Node.js is the new buzz in town and has a vibrant community.It ships with npm, which is a tool that helps automate various development, deployment, and installation of node modules, and makes the process much easier.

Instant Node Package Module is a practical guide to authoring and distributing node modules, and also for creating and managing private, standalone node.js projects.

Starting with getting node.js installed and running on a variety of platforms, we then proceed to learn about code modularization and achieving it in node.js. Picking up a practical example, we will then explore the whole process and life cycle of conceiving, writing, and publishing a node module. We will also learn how to exploit a toolsincluded with npm to automate various development and deployment steps.

Later on, we will discover the power of npm and how its different features and configurations can save large amounts of time by providing a helping hand for automating repetitive tasks between writing and publishing your modules.

Das E-Book können Sie in Legimi-Apps oder einer beliebigen App lesen, die das folgende Format unterstützen:

EPUB
MOBI

Seitenzahl: 64

Veröffentlichungsjahr: 2013

Bewertungen
0,0
0
0
0
0
0
Mehr Informationen
Mehr Informationen
Legimi prüft nicht, ob Rezensionen von Nutzern stammen, die den betreffenden Titel tatsächlich gekauft oder gelesen/gehört haben. Wir entfernen aber gefälschte Rezensionen.



Table of Contents

Instant Node Package Manager
Credits
About the Author
Acknowledgement
About the Reviewer
www.PacktPub.com
Support files, eBooks, discount offers and more
PacktLib.PacktPub.com
Why Subscribe?
Free Access for Packt account holders
1. Instant Node Package Manager
So, what is Node Package Manager?
Installation
Step 1 – what do I need?
Step 2 – downloading node.js
Windows or Mac
Step 1 – downloading Windows/MAC installer
Step 2 – running the installer
Step 3 – testing
Linux and other Unices
One step installation
Foolproof installation
Step 1 – getting the binary
Step 2 – extracting the file
Step 3 – testing
Step 4 – symlink
Step 5 – testing symlink
Installing via nvm and nave (recommended)
Building and installing from source
And that's it!
Quick start – creating your first npm module
simplemath library
Step 1 – learning to use require()
Native modules
Importing folders
require cache
Step 2 – writing tests
Step 3 – writing the actual code
Step 4 – writing the glue code
Step 5 – creating package.json
Step 6 – adding dependencies
The node_modules folder
Step 7 – publishing
Register and login
Publish
Top 10 features you need to know about
Tag
Install
Related commands
Binaries and global installs
Related commands
Linking
.npmignore
Global .npmignore
Scripts
Config
Command-line flag
Environment variables
User config file
Global config file
Defaults
Shrinkwrap
Pruning
Publishing
Help
People and places you should get to know
Official sites
Articles and tutorials
Community
Blogs
Twitter

Instant Node Package Manager

Instant Node Package Manager

Copyright © 2013 Packt Publishing

All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.

Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.

Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.

Second Published: October 2013

Production Reference: 1230913

Published by Packt Publishing Ltd.

Livery Place

35 Livery Street

Birmingham B3 2PB, UK..

ISBN 978-1-78328-333-0

www.packtpub.com

Credits

Author

Juzer Ali

Reviewer

Tim Oxley

Acquisition Editor

Owen Roberts

Commissioning Editor

Subho Gupta

Technical Editors

Tanvi Bhatt

Akashdeep Kundu

Project Coordinator

Akash Poojary

Proofreader

Lucy Rowland

Production Coordinator

Prachali Bhiwandkar

Cover Work

Prachali Bhiwandkar

Cover Image

Ronak Dhruv

About the Author

Juzer Ali was born and brought up in a small Indian town of Mhow near Indore, Madhya Pradesh. After finishing school in Mhow he took up an Electronics and Telecommunication Engineering course at Devi Ahilya Vishwa Vidyalaya, Indore. During his college days, irrespective of his branch of study, he was always interested in learning computer programming.

After graduating he worked for two and a half years at Tata Consultancy Services (TCS) as a full stack engineer. It was during this tenure that Juzer came across node.js technology and started exploring it. Juzer has made some open source contributions and is a co-maintainer of node-elasticsearch-client project and the author of crawl.js and expressive-router node modules. He tried to spread JavaScript best practices and evangelize node.js at TCS. Currently he is working as a node.js consultant with a multinational company.

Although he was inclined towards writing since childhood, he never undertook serious writing on a technical subject before this book. He has been writing short fiction stories on his blog since adolescence.

Acknowledgement

A book never belongs to a single person. For this short crisp book, there were more than a dozen people responsible and each person's contribution was critical for its completion. First of all I am grateful to my family; my parents, my fiancée Fatema, and my brother and friend Yusuf for constantly believing in me and in many aspects of my life. Because of this I was able to undertake and execute this project confidently. My nieces Zainab, Tasneem, and little Sakina are the apples of my eye and remain major sources of inspiration to me.

I am ever so thankful to Ankit Jain for his critical reviews, which stood in my way of submitting a poorly structured draft. Harendra and Sahil's constant encouragement and deep interest in the progress of this book kept me going when things were rough. I want to extend this gratitude to Nikhar, Udit, Priyank, Mohit, Mayur, and all those friends and family members who shared my joy and pleasure in writing this book. Each little pat on the back meant a lot to me.

My seniors at Tata Consultancy Services, Nikunj and Niraj's contributions were also instrumental in that they constantly reinforced beliefs in my technical understanding and permitted me to concentrate on this book more than the chores at work during my last few days at TCS.

Lastly, I am thankful to Packt Publishing crew, especially Priyanka and Akash who suggested to me the idea of writing this book and gave me a chance to contribute to the growing node.js community with this humble effort. Their contributions were significant in managing the schedule and the process of exchanging and correcting the drafts. This wouldn't have been possible without their efforts.

There might have been more people behind the scenes who have contributed to this book in more subtle ways. I want to thank them all for putting effort into this book.

About the Reviewer

Tim Oxley is currently working for an Australian node.js-powered hardware company, Ninja Blocks. He runs the SingaporeJS meetup and Australian JavaScript conference. He was an enterprise Flex developer and is now an open source Flex developer. He also works as a node.js freelancer.

www.PacktPub.com

Support files, eBooks, discount offers and more

You might want to visit www.PacktPub.com for support files and downloads related to your book.

Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at <[email protected]> for more details.

At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.

PacktLib.PacktPub.com

Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can access, read and search across Packt's entire library of books. 

Why Subscribe?

Fully searchable across every book published by PacktCopy and paste, print and bookmark contentOn demand and accessible via web browser

Free Access for Packt account holders

If you have an account with Packt at www.PacktPub.com, you can use this to access PacktLib today and view nine entirely free books. Simply use your login credentials for immediate access.

Chapter 1. Instant Node Package Manager

Welcome to Instant Node Package Manager