to-buffer

WebJar for to-buffer

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

to-buffer
Last Version

Last Version

1.1.1
Release Date

Release Date

Type

Type

jar
Description

Description

to-buffer
WebJar for to-buffer
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/mafintosh/to-buffer

Download to-buffer

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/to-buffer/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>to-buffer</artifactId>
    <version>1.1.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/to-buffer/
implementation 'org.webjars.npm:to-buffer:1.1.1'
// https://jarcasting.com/artifacts/org.webjars.npm/to-buffer/
implementation ("org.webjars.npm:to-buffer:1.1.1")
'org.webjars.npm:to-buffer:jar:1.1.1'
<dependency org="org.webjars.npm" name="to-buffer" rev="1.1.1">
  <artifact name="to-buffer" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='to-buffer', version='1.1.1')
)
libraryDependencies += "org.webjars.npm" % "to-buffer" % "1.1.1"
[org.webjars.npm/to-buffer "1.1.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.

to-buffer

Pass in a string, get a buffer back. Pass in a buffer, get the same buffer back.

npm install to-buffer

build status

Usage

var toBuffer = require('to-buffer')
console.log(toBuffer('hi')) // <Buffer 68 69>
console.log(toBuffer(Buffer('hi'))) // <Buffer 68 69>
console.log(toBuffer('6869', 'hex')) // <Buffer 68 69>
console.log(toBuffer(43)) // throws

License

MIT

Versions

Version
1.1.1