1.0.1 • Published 5 years ago

@icncsx/nocode v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

No Code

Kelsey Hightower said it best: "No code is the best way to write secure and reliable applications."

How to use?

Jokes aside, this package is used as a template to help others publish their first package on npm. The process is dumb simple. I'll assume you will have already installed Node.

(1) Create an npm account

Go create your npm account. Here is the signup link.

(2) Login to the npm account

Run this command in the command line, and you will be prompted to provide your username, password, and email address.

npm login

(3) Create your package

Go ahead and create your own mimalistic package. It can be like mine which functionally speaking does absolutely nothing. That's why it's called nocode. 😅

Create an empty folder and cd into it.

mkdir my-first-pkg
cd my-first-pkg

Initialize the project with npm init. This command will prompt you to answer some questions. Feel free to skip any questions that don’t make sense. Your package.json should look similar to mine.

npm init

Then publish!

npm publish

Afterwards, You might get an error saying that you don't have permissions to publish X. That means that there is a package of the same name that has already been published. Consider "namespacing" your package like this: @<username>/<package-name>. So mine would be @icncsx/my-first-pkg.

1.0.1

5 years ago