Simple email application for Android. Original source code: https://framagit.org/dystopia-project/simple-email
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
2.0 KiB

  1. npm-init(1) -- create a package.json file
  2. =======================================================
  3. ## SYNOPSIS
  4. npm init [--force|-f|--yes|-y|--scope]
  5. npm init <@scope> (same as `npx <@scope>/create`)
  6. npm init [<@scope>/]<name> (same as `npx [<@scope>/]create-<name>`)
  7. ## EXAMPLES
  8. Create a new React-based project using [`create-react-app`](https://npm.im/create-react-app):
  9. ```
  10. $ npm init react-app ./my-react-app
  11. ```
  12. Create a new `esm`-compatible package using [`create-esm`](https://npm.im/create-esm):
  13. ```
  14. $ mkdir my-esm-lib && cd my-esm-lib
  15. $ npm init esm --yes
  16. ```
  17. Generate a plain old package.json using legacy init:
  18. ```
  19. $ mkdir my-npm-pkg && cd my-npm-pkg
  20. $ git init
  21. $ npm init
  22. ```
  23. Generate it without having it ask any questions:
  24. ```
  25. $ npm init -y
  26. ```
  27. ## DESCRIPTION
  28. `npm init <initializer>` can be used to set up a new or existing npm package.
  29. `initializer` in this case is an npm package named `create-<initializer>`, which
  30. will be installed by [`npx(1)`](https://npm.im/npx), and then have its main bin
  31. executed -- presumably creating or updating `package.json` and running any other
  32. initialization-related operations.
  33. The init command is transformed to a corresponding `npx` operation as follows:
  34. * `npm init foo` -> `npx create-foo`
  35. * `npm init @usr/foo` -> `npx @usr/create-foo`
  36. * `npm init @usr` -> `npx @usr/create`
  37. Any additional options will be passed directly to the command, so `npm init foo
  38. --hello` will map to `npx create-foo --hello`.
  39. If the initializer is omitted (by just calling `npm init`), init will fall back
  40. to legacy init behavior. It will ask you a bunch of questions, and then write a
  41. package.json for you. It will attempt to make reasonable guesses based on
  42. existing fields, dependencies, and options selected. It is strictly additive, so
  43. it will keep any fields and values that were already set. You can also use
  44. `-y`/`--yes` to skip the questionnaire altogether. If you pass `--scope`, it
  45. will create a scoped package.
  46. ## SEE ALSO
  47. * <https://github.com/isaacs/init-package-json>
  48. * package.json(5)
  49. * npm-version(1)
  50. * npm-scope(7)