require-from-string

WebJar for require-from-string

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

require-from-string
Last Version

Last Version

2.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

require-from-string
WebJar for require-from-string
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/floatdrop/require-from-string

Download require-from-string

How to add to project

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

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.

require-from-string Build Status

Load module from string in Node.

Install

$ npm install --save require-from-string

Usage

var requireFromString = require('require-from-string');

requireFromString('module.exports = 1');
//=> 1

API

requireFromString(code, [filename], [options])

code

Required
Type: string

Module code.

filename

Type: string
Default: ''

Optional filename.

options

Type: object

appendPaths

Type: Array

List of paths, that will be appended to module paths. Useful, when you want to be able require modules from these paths.

prependPaths

Type: Array

Same as appendPaths, but paths will be prepended.

License

MIT © Vsevolod Strukchinsky

Versions

Version
2.0.2
1.2.1
1.2.0
1.1.0