@1chi/fml.js 中文文档教程

发布于 3年前 浏览 12 项目主页 更新于 3年前

fml.js

https://fmylife.com 的 API 包装器

NPM 版本NPM 下载Dependencies

NPM 信息

Features

  • Actually maintained
  • Uses async/await
  • Has support for ESM and CJS

Install

npm i @1chi/fml.js # NPM
yarn add @1chi/fml.js # Yarn
pnpm add @1chi/fml.js # PNPM

Usage

import fml from '@1chi/fml.js'; // import syntax
const fml = require('@1chi/fml.js').default; // require()

// Async/Await
async () => {
    const quote = await fml();

    console.log(quote);
};

// .then()
fml().then((quote) => console.log(quote));

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

fml.js © Yoshida Tomio,在 Apache-2.0 许可证。
由 1chiSensei 创作和维护。

GitHub @1chiSensei 不和谐 https://discord.gg/zGvtAnGhdP

fml.js

API Wrapper for https://fmylife.com

NPM versionNPM downloadsDependencies

NPM info

Features

  • Actually maintained
  • Uses async/await
  • Has support for ESM and CJS

Install

npm i @1chi/fml.js # NPM
yarn add @1chi/fml.js # Yarn
pnpm add @1chi/fml.js # PNPM

Usage

import fml from '@1chi/fml.js'; // import syntax
const fml = require('@1chi/fml.js').default; // require()

// Async/Await
async () => {
    const quote = await fml();

    console.log(quote);
};

// .then()
fml().then((quote) => console.log(quote));

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

fml.js © Yoshida Tomio, Released under the Apache-2.0 License.
Authored and maintained by 1chiSensei.

GitHub @1chiSensei Discord https://discord.gg/zGvtAnGhdP

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文