Skip to content

Commit

Permalink
Get rid of Travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
zewish committed Jan 30, 2021
1 parent 24f6464 commit 7c8eb22
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
21 changes: 9 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
[![NPM version](https://img.shields.io/npm/v/vmod.svg?style=flat-square)](https://www.npmjs.com/package/vmod)
[![Build Status](https://travis-ci.org/zewish/vmod.svg?branch=master)](https://travis-ci.org/zewish/vmod)
[![Downloads](https://img.shields.io/npm/dm/vmod.svg?style=flat-square)](https://www.npmjs.com/package/vmod)

Virtual module for node.js - vmod
Expand All @@ -23,24 +22,22 @@ $ npm install vmod --save
Simple
------
```js
'use strict';
const vmod = require('vmod');

console.log(
vmod('module.exports = 123;')
vmod('module.exports = 123;')
); // 123
```

Export function
---------------
```js
'use strict';
const vmod = require('vmod');

console.log(
vmod(
'module.exports = () => "yay!";'
)()
vmod(
'module.exports = () => "yay!";'
)()
); // "yay!"
```

Expand All @@ -56,9 +53,9 @@ module.exports = "test file data";
const vmod = require('vmod');

console.log(
vmod(
'module.exports = require("./_test-file.js")'
)()
vmod(
'module.exports = require("./_test-file.js")'
)()
); // "test file data"
```

Expand All @@ -69,7 +66,7 @@ Override sandbox variable
const vmod = require('vmod');

vmod(
'module.exports = require("./_test-file.js")',
{ require: null }
'module.exports = require("./_test-file.js")',
{ require: null }
); // TypeError: require is not a function
```
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vmod",
"version": "1.1.0",
"version": "1.1.1",
"description": "Virtual module for node.js",
"main": "vmod.js",
"typings": "vmod.d.ts",
Expand Down

0 comments on commit 7c8eb22

Please sign in to comment.