stringify-package

WebJar for stringify-package

License

License

ISC
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

stringify-package
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

stringify-package
WebJar for stringify-package
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/npm/stringify-package

Download stringify-package

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/stringify-package/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>stringify-package</artifactId>
    <version>1.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/stringify-package/
implementation 'org.webjars.npm:stringify-package:1.0.1'
// https://jarcasting.com/artifacts/org.webjars.npm/stringify-package/
implementation ("org.webjars.npm:stringify-package:1.0.1")
'org.webjars.npm:stringify-package:jar:1.0.1'
<dependency org="org.webjars.npm" name="stringify-package" rev="1.0.1">
  <artifact name="stringify-package" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='stringify-package', version='1.0.1')
)
libraryDependencies += "org.webjars.npm" % "stringify-package" % "1.0.1"
[org.webjars.npm/stringify-package "1.0.1"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

stringify-package npm version license Travis AppVeyor Coverage Status

stringify-package is a standalone library for writing out package data as a JSON file. It is extracted from npm.

Install

$ npm install stringify-package

Table of Contents

Example

const fs = require('fs')
const pkg = { /* ... */ }

fs.writeFile('package.json', stringifyPackage(pkg), 'utf8', cb(err) => {
    // ...
})

Features

  • Ensures consistent file indentation
    To match existing file indentation, detect-indent is recommended.

  • Ensures consistent newlines
    To match existing newline characters, detect-newline is recommended.

Contributing

The npm team enthusiastically welcomes contributions and project participation! There's a bunch of things you can do if you want to contribute! The Contributor Guide has all the information you need for everything from reporting bugs to contributing entire new features. Please don't hesitate to jump in if you'd like to, or even ask us questions if something isn't clear.

API

> stringifyPackage(data, indent, newline) -> String

Arguments

  • data - the package data as an object to be stringified
  • indent - the number of spaces to use for each level of indentation (defaults to 2)
  • newline - the character(s) to be used as a line terminator
org.webjars.npm

npm

node package manager

Versions

Version
1.0.1
1.0.0