Skip to content

Commit 67bfa5d

Browse files
committed
Cleanup all not needed things
1 parent a46116c commit 67bfa5d

File tree

2 files changed

+31
-108
lines changed

2 files changed

+31
-108
lines changed

README.md

Lines changed: 18 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,37 @@
1-
# Locutus
1+
# Locutus.sprintf
22

3-
All your standard libraries will be assimilated into our JavaScript collective. Resistance is futile.
3+
Locutus's version of sprintf and vsprintf in an NPM package
44

5-
More info at: https://locutus.io/
5+
More info at: https://locutus.io/php/strings/sprintf/
6+
7+
This project is a fork of https://github.com/locutusjs/locutus and [@code-lts](https://github.com/code-lts) will do it's best to keep this up to date.
68

79
## Install
810

11+
You can use the [locutus](https://www.npmjs.com/package/locutus) package is you only want the Node version
12+
913
```bash
10-
npm install locutus
14+
npm install locutus.sprintf
1115
```
1216

13-
## Use
17+
or
1418

1519
```bash
16-
vim index.js
20+
yarn add locutus.sprintf
1721
```
1822

23+
## Use for Node
24+
1925
```javascript
2026
var sprintf = require('locutus/php/strings/sprintf')
21-
var echo = require('locutus/php/strings/echo')
2227
var effectiveness = 'futile'
23-
echo(sprintf('Resistance is %s', effectiveness))
28+
console.log(sprintf('Resistance is %s', effectiveness))
2429
```
2530

26-
```javascript
27-
var strings = require('locutus/golang/strings')
28-
console.log(strings.Contains('Locutus', 'cut'))
29-
```
31+
## Use for a browser
3032

31-
```bash
32-
$ node index.js
33-
Resistance is futile
34-
true
33+
```javascript
34+
<script type="text/javascript" src="vendor/js/locutus.sprintf/sprintf.js"></script>
35+
var effectiveness = 'futile'
36+
console.log(sprintf('Resistance is %s', effectiveness))
3537
```
36-
37-
## Development
38-
39-
Some guidelines and instructions can be found in [CONTRIBUTING.md](CONTRIBUTING.md)
40-
41-
## Sponsors
42-
43-
:sparkles: thanks to <https://jetbrains.com> for providing a free license to their development tools :heart:

package.json

Lines changed: 13 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -1,98 +1,27 @@
11
{
2-
"name": "locutus",
2+
"name": "locutus.sprintf",
33
"version": "2.0.14",
44
"license": "MIT",
5-
"description": "Locutus other languages' standard libraries to JavaScript for fun and educational purposes",
6-
"homepage": "https://locutus.io",
5+
"description": "Locutus sprintf and vsprintf for browsers and node",
6+
"homepage": "https://locutus.io/php/strings/sprintf/",
77
"author": "Kevin van Zonneveld <[email protected]>",
8-
"engines": {
9-
"node": ">= 10"
10-
},
11-
"devDependencies": {
12-
"async": "2.0.0-rc.3",
13-
"babel-cli": "6.23.0",
14-
"babel-core": "6.23.1",
15-
"babel-eslint": "10.1.0",
16-
"babel-plugin-add-module-exports": "0.2.1",
17-
"babel-plugin-es6-promise": "1.1.1",
18-
"babel-plugin-syntax-async-functions": "6.13.0",
19-
"babel-plugin-transform-async-to-generator": "6.22.0",
20-
"babel-plugin-transform-object-assign": "6.22.0",
21-
"babel-preset-es2015": "6.22.0",
22-
"babel-register": "6.26.0",
23-
"browserify": "13.0.0",
24-
"budo": "11.3.2",
25-
"chai": "3.5.0",
26-
"cross-env": "1.0.7",
27-
"depurar": "0.3.0",
28-
"es6-promise": "4.2.5",
29-
"eslint": "7.13.0",
30-
"eslint-config-standard": "16.0.2",
31-
"eslint-plugin-import": "2.22.1",
32-
"eslint-plugin-node": "11.1.0",
33-
"eslint-plugin-promise": "4.2.1",
34-
"eslint-plugin-standard": "4.1.0",
35-
"esprima": "4.0.1",
36-
"fakefile": "1.0.0",
37-
"globby": "4.0.0",
38-
"indent-string": "2.1.0",
39-
"invig": "0.0.22",
40-
"js-yaml": "3.6.0",
41-
"lodash": "4.17.10",
42-
"mkdirp": "0.5.1",
43-
"mocha": "5.2.0",
44-
"npm-run-all": "1.8.0",
45-
"rimraf": "2.5.2",
46-
"strip-indent": "2.0.0"
47-
},
488
"keywords": [
499
"php",
50-
"golang",
51-
"c",
52-
"ruby",
53-
"python",
5410
"js",
55-
"locutus"
11+
"locutus",
12+
"sprintf"
5613
],
5714
"bugs": {
58-
"url": "https://github.com/locutusjs/locutus/issues"
15+
"url": "https://github.com/code-lts/locutus.sprintf/issues",
16+
"email": "[email protected]"
5917
},
6018
"repository": {
6119
"type": "git",
62-
"url": "https://github.com/locutusjs/locutus.git"
20+
"url": "https://github.com/code-lts/locutus.sprintf.git"
6321
},
64-
"readmeFilename": "README.md",
65-
"scripts": {
66-
"beautify": "env INVIG_PRETTIER=1 invig --src src",
67-
"browser:bundle": "browserify test/browser/app.js --outfile test/browser/bundle.js",
68-
"browser:watch": "budo test/browser/app.js --live --serve test/browser/bundle.js",
69-
"build:dist": "babel src --out-dir dist --source-maps && cp package.json dist/",
70-
"build:indices": "babel-node src/_util/cli.js reindex",
71-
"build:tests:noskip": "rimraf test/languages && babel-node src/_util/cli.js writetests --noskip",
72-
"build:tests": "rimraf test/languages && babel-node src/_util/cli.js writetests",
73-
"build": "npm-run-all build:*",
74-
"fix": "eslint src --fix",
75-
"injectweb": "rimraf website/source/{c,golang,php,python,ruby} && babel-node src/_util/cli.js injectweb",
76-
"lint": "eslint src",
77-
"playground:start": "cd test/browser && babel-node server.js",
78-
"release:major": "cross-env SEMANTIC=major yarn release",
79-
"release:minor": "cross-env SEMANTIC=minor yarn release",
80-
"release:patch": "cross-env SEMANTIC=patch yarn release",
81-
"release": "git commit CHANGELOG.md -m 'Update CHANGELOG.md' && npm version ${SEMANTIC:-patch} -m \"Release %s\" && git push --tags && git push && yarn build:dist && cd dist && npm publish",
82-
"test:languages:noskip": "yarn build:tests:noskip && cross-env DEBUG=locutus:* mocha --compilers js:babel-register --reporter spec --recursive test/languages --grep \"${TEST_GREP:-}\"",
83-
"test:languages": "yarn build:tests && cross-env DEBUG=locutus:* mocha --compilers js:babel-register --reporter spec --recursive test/languages --grep \"${TEST_GREP:-}\"",
84-
"test:module": "babel-node test/module/module.js",
85-
"test:util": "mocha --compilers js:babel-register --reporter spec test/util/",
86-
"test": "npm-run-all test:languages test:util test:module",
87-
"website:install": "cd website && yarn",
88-
"website:deploy": "cd website && yarn deploy",
89-
"website:start": "cd website && yarn server",
90-
"website:build": "cd website && yarn generate",
91-
"website:clean": "cd website && yarn clean"
22+
"directories": {
23+
"lib": "src"
9224
},
93-
"dependencies": {},
94-
"browser": {
95-
"fs": false,
96-
"child_process": false
97-
}
98-
}
25+
"readmeFilename": "README.md",
26+
"main": "src/php/index.js"
27+
}

0 commit comments

Comments
 (0)